Skip to content

Commit 1be4788

Browse files
committed
[BEETLE] Mbed SDK Init Update
In Beetle systems eFlash and Cache Flash are always enabled by default. This patch updates the Mbed SDK Init procedure to reflect the changes in the eFlash and Cache Flash Drivers provided in a previous patch. Signed-off-by: Vincenzo Frascino <[email protected]>
1 parent 15745a0 commit 1be4788

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/mbed_sdk_init.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ void mbed_sdk_init(void) {
2020
SystemPowerConfig();
2121

2222
/* Config EFlash Controller Clock */
23-
EFlash_Initialize();
23+
EFlash_DriverInitialize();
24+
EFlash_ClockConfig();
2425

25-
/* Initialize Flash Cache */
26-
FCache_Initialize();
26+
/* Enable Flash Cache Stats */
27+
FCache_DriverInitialize();
2728
FCache_Enable(1);
2829
FCache_Invalidate();
2930
}

0 commit comments

Comments
 (0)