diff --git a/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c b/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c index fb5100e8c..624f82adf 100644 --- a/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c +++ b/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c @@ -174,7 +174,9 @@ void ext_lld_exti_irq_enable(void) { nvicEnableVector(EXTI0_1_IRQn, STM32_EXT_EXTI0_1_IRQ_PRIORITY); nvicEnableVector(EXTI2_3_IRQn, STM32_EXT_EXTI2_3_IRQ_PRIORITY); nvicEnableVector(EXTI4_15_IRQn, STM32_EXT_EXTI4_15_IRQ_PRIORITY); +#if !defined(STM32F030) nvicEnableVector(PVD_IRQn, STM32_EXT_EXTI16_IRQ_PRIORITY); +#endif nvicEnableVector(RTC_IRQn, STM32_EXT_EXTI17_IRQ_PRIORITY); } @@ -188,7 +190,9 @@ void ext_lld_exti_irq_disable(void) { nvicDisableVector(EXTI0_1_IRQn); nvicDisableVector(EXTI2_3_IRQn); nvicDisableVector(EXTI4_15_IRQn); +#if !defined(STM32F030) nvicDisableVector(PVD_IRQn); +#endif nvicDisableVector(RTC_IRQn); }