mirror of
https://github.com/hathach/tinyusb.git
synced 2026-08-18 11:02:16 +00:00
bsp/stm32f4: enable flash cache
Signed-off-by: HiFiPhile <admin@hifiphile.com>
This commit is contained in:
@ -109,6 +109,11 @@ void USARTn_IRQHandler(void) {
|
||||
|
||||
void board_init(void) {
|
||||
board_clock_init();
|
||||
|
||||
__HAL_FLASH_INSTRUCTION_CACHE_ENABLE();
|
||||
__HAL_FLASH_DATA_CACHE_ENABLE();
|
||||
__HAL_FLASH_PREFETCH_BUFFER_ENABLE();
|
||||
|
||||
//SystemCoreClockUpdate();
|
||||
|
||||
// Enable All GPIOs clocks
|
||||
|
||||
Reference in New Issue
Block a user