diff --git a/os/hal/platforms/STM32F4xx/ext_lld_isr.c b/os/hal/platforms/STM32F4xx/ext_lld_isr.c index 620d7370d..64731b4c4 100644 --- a/os/hal/platforms/STM32F4xx/ext_lld_isr.c +++ b/os/hal/platforms/STM32F4xx/ext_lld_isr.c @@ -269,7 +269,7 @@ CH_IRQ_HANDLER(TAMPER_STAMP_IRQHandler) { CH_IRQ_EPILOGUE(); } -#endif /* defined(STM32F401xx) */ +#endif /* !defined(STM32F401xx) */ /** * @brief EXTI[22] interrupt handler (RTC_WKUP). @@ -324,7 +324,7 @@ void ext_lld_exti_irq_enable(void) { CORTEX_PRIORITY_MASK(STM32_EXT_EXTI20_IRQ_PRIORITY)); nvicEnableVector(TAMP_STAMP_IRQn, CORTEX_PRIORITY_MASK(STM32_EXT_EXTI21_IRQ_PRIORITY)); -#endif /* defined(STM32F401xx) */ +#endif /* !defined(STM32F401xx) */ nvicEnableVector(RTC_WKUP_IRQn, CORTEX_PRIORITY_MASK(STM32_EXT_EXTI22_IRQ_PRIORITY)); } @@ -350,7 +350,7 @@ void ext_lld_exti_irq_disable(void) { #if !defined(STM32F401xx) nvicDisableVector(OTG_HS_WKUP_IRQn); nvicDisableVector(TAMP_STAMP_IRQn); -#endif /* defined(STM32F401xx) */ +#endif /* !defined(STM32F401xx) */ nvicDisableVector(RTC_WKUP_IRQn); }