We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2496f1d commit 75fb93cCopy full SHA for 75fb93c
targets/TARGET_STM/mbed_overrides.c
@@ -32,7 +32,7 @@ int mbed_sdk_inited = 0;
32
// This function is called after RAM initialization and before main.
33
void mbed_sdk_init()
34
{
35
-#if TARGET_STM32F7
+#if defined(__ICACHE_PRESENT) /* STM32F7 */
36
// The mbed_sdk_init can be called either during cold boot or during
37
// application boot after bootloader has been executed.
38
// In case the bootloader has already enabled the cache,
@@ -43,7 +43,7 @@ void mbed_sdk_init()
43
if ((SCB->CCR & (uint32_t)SCB_CCR_DC_Msk) == 0) { // If DCache is disabled
44
SCB_EnableDCache();
45
}
46
-#endif /* TARGET_STM32F7 */
+#endif /* __ICACHE_PRESENT */
47
48
// Update the SystemCoreClock variable.
49
SystemCoreClockUpdate();
0 commit comments