diff options
| author | Damien George | 2016-11-21 23:24:24 +1100 |
|---|---|---|
| committer | Damien George | 2016-11-21 23:24:24 +1100 |
| commit | 7e820792dadde74ac283465b9497ad4c313db379 (patch) | |
| tree | a5767677c72aca9abe0528c63dc2f4edfb535aa5 /stmhal/mphalport.c | |
| parent | 1f43d49f9efa22d81e10be7bd20933986b4a3320 (diff) | |
stmhal: Updates to get F411 MCUs compiling with latest ST HAL.
Diffstat (limited to 'stmhal/mphalport.c')
| -rw-r--r-- | stmhal/mphalport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/mphalport.c b/stmhal/mphalport.c index 028756c76..6893701f5 100644 --- a/stmhal/mphalport.c +++ b/stmhal/mphalport.c @@ -104,11 +104,11 @@ void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio) { } else if (gpio == GPIOE) { __GPIOE_CLK_ENABLE(); #endif - #ifdef __GPIOF_CLK_ENABLE + #if defined(GPIOF) && defined(__GPIOF_CLK_ENABLE) } else if (gpio == GPIOF) { __GPIOF_CLK_ENABLE(); #endif - #ifdef __GPIOG_CLK_ENABLE + #if defined(GPIOG) && defined(__GPIOG_CLK_ENABLE) } else if (gpio == GPIOG) { __GPIOG_CLK_ENABLE(); #endif |
