aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F30x
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-12 10:12:53 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-12 10:12:53 +0000
commit0b8d0695f4c6524220cb5e7f7a9d00e046c5fb56 (patch)
treea145bbe0b2a9e7a85c62a338b054f8eb6f861065 /os/hal/platforms/STM32F30x
parent094c01df0b684cd350210e434c5d810b1c25c30e (diff)
downloadChibiOS-0b8d0695f4c6524220cb5e7f7a9d00e046c5fb56.tar.gz
ChibiOS-0b8d0695f4c6524220cb5e7f7a9d00e046c5fb56.tar.bz2
ChibiOS-0b8d0695f4c6524220cb5e7f7a9d00e046c5fb56.zip
Fixed missing vector in STM32F3xx EXT ISRs.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5414 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F30x')
-rw-r--r--os/hal/platforms/STM32F30x/ext_lld_isr.c5
-rw-r--r--os/hal/platforms/STM32F30x/ext_lld_isr.h11
2 files changed, 13 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32F30x/ext_lld_isr.c b/os/hal/platforms/STM32F30x/ext_lld_isr.c
index 7017293a1..4603a0f81 100644
--- a/os/hal/platforms/STM32F30x/ext_lld_isr.c
+++ b/os/hal/platforms/STM32F30x/ext_lld_isr.c
@@ -383,8 +383,10 @@ void ext_lld_exti_irq_enable(void) {
CORTEX_PRIORITY_MASK(STM32_EXT_EXTI18_IRQ_PRIORITY));
nvicEnableVector(TAMPER_STAMP_IRQn,
CORTEX_PRIORITY_MASK(STM32_EXT_EXTI19_IRQ_PRIORITY));
+ nvicEnableVector(RTC_WKUP_IRQn,
+ CORTEX_PRIORITY_MASK(STM32_EXT_EXTI20_IRQ_PRIORITY));
nvicEnableVector(COMP1_2_3_IRQn,
- CORTEX_PRIORITY_MASK(STM32_EXT_EXTI20_23_IRQ_PRIORITY));
+ CORTEX_PRIORITY_MASK(STM32_EXT_EXTI21_23_IRQ_PRIORITY));
nvicEnableVector(COMP4_5_6_IRQn,
CORTEX_PRIORITY_MASK(STM32_EXT_EXTI30_32_IRQ_PRIORITY));
nvicEnableVector(COMP7_IRQn,
@@ -409,6 +411,7 @@ void ext_lld_exti_irq_disable(void) {
nvicDisableVector(RTC_Alarm_IRQn);
nvicDisableVector(USBWakeUp_IRQn);
nvicDisableVector(TAMPER_STAMP_IRQn);
+ nvicDisableVector(RTC_WKUP_IRQn);
nvicDisableVector(COMP1_2_3_IRQn);
nvicDisableVector(COMP4_5_6_IRQn);
nvicDisableVector(COMP7_IRQn);
diff --git a/os/hal/platforms/STM32F30x/ext_lld_isr.h b/os/hal/platforms/STM32F30x/ext_lld_isr.h
index 6fc84bf6a..1ca3be565 100644
--- a/os/hal/platforms/STM32F30x/ext_lld_isr.h
+++ b/os/hal/platforms/STM32F30x/ext_lld_isr.h
@@ -123,8 +123,15 @@
/**
* @brief EXTI20 interrupt priority level setting.
*/
-#if !defined(STM32_EXT_EXTI20_23_IRQ_PRIORITY) || defined(__DOXYGEN__)
-#define STM32_EXT_EXTI20_23_IRQ_PRIORITY 6
+#if !defined(STM32_EXT_EXTI20_IRQ_PRIORITY) || defined(__DOXYGEN__)
+#define STM32_EXT_EXTI20_IRQ_PRIORITY 6
+#endif
+
+/**
+ * @brief EXTI21..23 interrupt priority level setting.
+ */
+#if !defined(STM32_EXT_EXTI21_23_IRQ_PRIORITY) || defined(__DOXYGEN__)
+#define STM32_EXT_EXTI21_23_IRQ_PRIORITY 6
#endif
/**