hw/h7rs: Enable D-Cache in BSP
Signed-off-by: HiFiPhile <admin@hifiphile.com>
This commit is contained in:
@@ -78,6 +78,11 @@ void OTG_HS_IRQHandler(void) {
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
|
||||||
void board_init(void) {
|
void board_init(void) {
|
||||||
|
SCB_EnableICache();
|
||||||
|
SCB_EnableDCache();
|
||||||
|
|
||||||
|
HAL_Init();
|
||||||
|
|
||||||
board_clock_init();
|
board_clock_init();
|
||||||
|
|
||||||
// Enable All GPIOs clocks
|
// Enable All GPIOs clocks
|
||||||
|
@@ -98,6 +98,11 @@ static void trace_etm_init(void) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void board_init(void) {
|
void board_init(void) {
|
||||||
|
SCB_EnableICache();
|
||||||
|
SCB_EnableDCache();
|
||||||
|
|
||||||
|
HAL_Init();
|
||||||
|
|
||||||
// Implemented in board.h
|
// Implemented in board.h
|
||||||
SystemClock_Config();
|
SystemClock_Config();
|
||||||
|
|
||||||
|
@@ -124,9 +124,13 @@ void log_swo_init(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void board_init(void) {
|
void board_init(void) {
|
||||||
|
SCB_EnableICache();
|
||||||
|
SCB_EnableDCache();
|
||||||
|
|
||||||
HAL_Init();
|
HAL_Init();
|
||||||
|
|
||||||
HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
|
HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
|
||||||
|
|
||||||
// Implemented in board.h
|
// Implemented in board.h
|
||||||
SystemClock_Config();
|
SystemClock_Config();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user