aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32L1xx/ext_lld_isr.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-07-28 14:22:57 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-07-28 14:22:57 +0000
commit5b7d62c5490a3f4662c1ba77ab3f78a80ad6869d (patch)
treedffae619b098255689af0ae2dddfdad4166c4d70 /os/hal/ports/STM32/STM32L1xx/ext_lld_isr.c
parent402bd03481bb1d0b062e72eab2d24d714b846285 (diff)
downloadChibiOS-5b7d62c5490a3f4662c1ba77ab3f78a80ad6869d.tar.gz
ChibiOS-5b7d62c5490a3f4662c1ba77ab3f78a80ad6869d.tar.bz2
ChibiOS-5b7d62c5490a3f4662c1ba77ab3f78a80ad6869d.zip
Updated EXT driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8121 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32L1xx/ext_lld_isr.c')
-rw-r--r--os/hal/ports/STM32/STM32L1xx/ext_lld_isr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32L1xx/ext_lld_isr.c b/os/hal/ports/STM32/STM32L1xx/ext_lld_isr.c
index 148883fcf..727d15891 100644
--- a/os/hal/ports/STM32/STM32L1xx/ext_lld_isr.c
+++ b/os/hal/ports/STM32/STM32L1xx/ext_lld_isr.c
@@ -305,7 +305,11 @@ OSAL_IRQ_HANDLER(Vector98) {
*
* @isr
*/
+#if defined(STM32L1XX_MDP) || defined(__DOXYGEN__)
+OSAL_IRQ_HANDLER(Vector114) {
+#else
OSAL_IRQ_HANDLER(Vector120) {
+#endif
uint32_t pr;
OSAL_IRQ_PROLOGUE();
@@ -342,6 +346,9 @@ void ext_lld_exti_irq_enable(void) {
nvicEnableVector(TAMPER_STAMP_IRQn, STM32_EXT_EXTI19_IRQ_PRIORITY);
nvicEnableVector(RTC_WKUP_IRQn, STM32_EXT_EXTI20_IRQ_PRIORITY);
nvicEnableVector(COMP_IRQn, STM32_EXT_EXTI21_22_IRQ_PRIORITY);
+#if STM32_EXTI_NUM_LINES > 23
+ nvicEnableVector(COMP_ACQ_IRQn, STM32_EXT_EXTI23_IRQ_PRIORITY);
+#endif
}
/**
@@ -364,6 +371,9 @@ void ext_lld_exti_irq_disable(void) {
nvicDisableVector(TAMPER_STAMP_IRQn);
nvicDisableVector(RTC_WKUP_IRQn);
nvicDisableVector(COMP_IRQn);
+#if STM32_EXTI_NUM_LINES > 23
+ nvicDisableVector(COMP_ACQ_IRQn);
+#endif
}
#endif /* HAL_USE_EXT */