summaryrefslogtreecommitdiff
path: root/stmhal/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-11-21 23:24:24 +1100
committerDamien George <damien.p.george@gmail.com>2016-11-21 23:24:24 +1100
commit7e820792dadde74ac283465b9497ad4c313db379 (patch)
treea5767677c72aca9abe0528c63dc2f4edfb535aa5 /stmhal/main.c
parent1f43d49f9efa22d81e10be7bd20933986b4a3320 (diff)
stmhal: Updates to get F411 MCUs compiling with latest ST HAL.
Diffstat (limited to 'stmhal/main.c')
-rw-r--r--stmhal/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index f39a86b7a..b5d0916f3 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