diff options
Diffstat (limited to 'stmhal/main.c')
-rw-r--r-- | stmhal/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/main.c b/stmhal/main.c index f39a86b7ae..b5d0916f3a 100644 --- a/stmhal/main.c +++ b/stmhal/main.c @@ -372,9 +372,9 @@ int main(void) { // The STM32F746 doesn't really have CCM memory, but it does have DTCM, // which behaves more or less like normal SRAM. __HAL_RCC_DTCMRAMEN_CLK_ENABLE(); - #else + #elif defined(CCMDATARAM_BASE) // enable the CCM RAM - __CCMDATARAMEN_CLK_ENABLE(); + __HAL_RCC_CCMDATARAMEN_CLK_ENABLE(); #endif #endif |