Skip to content
Snippets Groups Projects
Commit 7e820792 authored by Damien George's avatar Damien George
Browse files

stmhal: Updates to get F411 MCUs compiling with latest ST HAL.

parent 1f43d49f
Branches
No related tags found
No related merge requests found
...@@ -372,9 +372,9 @@ int main(void) { ...@@ -372,9 +372,9 @@ int main(void) {
// The STM32F746 doesn't really have CCM memory, but it does have DTCM, // The STM32F746 doesn't really have CCM memory, but it does have DTCM,
// which behaves more or less like normal SRAM. // which behaves more or less like normal SRAM.
__HAL_RCC_DTCMRAMEN_CLK_ENABLE(); __HAL_RCC_DTCMRAMEN_CLK_ENABLE();
#else #elif defined(CCMDATARAM_BASE)
// enable the CCM RAM // enable the CCM RAM
__CCMDATARAMEN_CLK_ENABLE(); __HAL_RCC_CCMDATARAMEN_CLK_ENABLE();
#endif #endif
#endif #endif
......
...@@ -104,11 +104,11 @@ void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio) { ...@@ -104,11 +104,11 @@ void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio) {
} else if (gpio == GPIOE) { } else if (gpio == GPIOE) {
__GPIOE_CLK_ENABLE(); __GPIOE_CLK_ENABLE();
#endif #endif
#ifdef __GPIOF_CLK_ENABLE #if defined(GPIOF) && defined(__GPIOF_CLK_ENABLE)
} else if (gpio == GPIOF) { } else if (gpio == GPIOF) {
__GPIOF_CLK_ENABLE(); __GPIOF_CLK_ENABLE();
#endif #endif
#ifdef __GPIOG_CLK_ENABLE #if defined(GPIOG) && defined(__GPIOG_CLK_ENABLE)
} else if (gpio == GPIOG) { } else if (gpio == GPIOG) {
__GPIOG_CLK_ENABLE(); __GPIOG_CLK_ENABLE();
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment