1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

Moved ART Prefetch enabling from library to main code

This commit is contained in:
Andrey Mironov 2018-04-20 10:14:32 +03:00
parent 0306accf6e
commit 397db37709
3 changed files with 5 additions and 4 deletions

View file

@ -158,10 +158,6 @@ HAL_StatusTypeDef HAL_Init(void)
__HAL_FLASH_ART_ENABLE();
#endif /* ART_ACCLERATOR_ENABLE */
#if (PREFETCH_ENABLE != 0U)
__HAL_FLASH_PREFETCH_BUFFER_ENABLE();
#endif /* PREFETCH_ENABLE */
/* Set Interrupt Group Priority */
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);

View file

@ -34,6 +34,7 @@
#include "stm32f7xx_ll_rcc.h"
#include "stm32f7xx_ll_bus.h"
#include "stm32f7xx_ll_tim.h"
#include "stm32f7xx_ll_system.h"
// Chip Unique ID on F7
#if defined(STM32F722xx)

View file

@ -363,6 +363,10 @@ void SystemInit(void)
SCB_EnableDCache();
}
if (PREFETCH_ENABLE) {
LL_FLASH_EnablePrefetch();
}
/* Configure the system clock to specified frequency */
SystemClock_Config();