aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-07-13 11:07:20 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-07-13 11:07:20 +0000
commitd4940ccd2699958f3612575cc919266a07751b88 (patch)
tree88e67b4773d5d3aa7907cd1a1569146096f4f6b8
parent7350cf2998058828b7d578687e0b8844379c6c36 (diff)
downloadChibiOS-d4940ccd2699958f3612575cc919266a07751b88.tar.gz
ChibiOS-d4940ccd2699958f3612575cc919266a07751b88.tar.bz2
ChibiOS-d4940ccd2699958f3612575cc919266a07751b88.zip
Fixed bug #514.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7032 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c4
1 files changed, 4 insertions, 0 deletions
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);
}