aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-11-12 09:46:25 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-11-12 09:46:25 +0000
commit26a6a598bf2b73bb93ea86bfa62cf3e170fa2687 (patch)
tree11ffe456dff713c27a83c39d3b85440ae7614168 /os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c
parent72be4434be159cfa106c79fa200c33a67dc3549d (diff)
downloadChibiOS-26a6a598bf2b73bb93ea86bfa62cf3e170fa2687.tar.gz
ChibiOS-26a6a598bf2b73bb93ea86bfa62cf3e170fa2687.tar.bz2
ChibiOS-26a6a598bf2b73bb93ea86bfa62cf3e170fa2687.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8470 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c')
-rw-r--r--os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c b/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c
index 9a0e88f22..1961eb0d6 100644
--- a/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c
+++ b/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c
@@ -224,7 +224,7 @@ 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) !defined(STM32F070)
+#if !defined(STM32F030) || !defined(STM32F070)
nvicEnableVector(PVD_IRQn, STM32_EXT_EXTI16_IRQ_PRIORITY);
nvicEnableVector(ADC1_COMP_IRQn, STM32_EXT_EXTI21_22_IRQ_PRIORITY);
#endif
@@ -241,7 +241,7 @@ void ext_lld_exti_irq_disable(void) {
nvicDisableVector(EXTI0_1_IRQn);
nvicDisableVector(EXTI2_3_IRQn);
nvicDisableVector(EXTI4_15_IRQn);
-#if !defined(STM32F030) !defined(STM32F070)
+#if !defined(STM32F030) || !defined(STM32F070)
nvicDisableVector(PVD_IRQn);
nvicDisableVector(ADC1_COMP_IRQn);
#endif