git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8338 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
Giovanni Di Sirio 2015-10-01 08:47:23 +00:00
parent 735c461aa1
commit f011b5da61
3 changed files with 10 additions and 1 deletions

View File

@ -345,6 +345,7 @@ void ext_lld_exti_irq_enable(void) {
nvicEnableVector(OTG_HS_WKUP_IRQn, STM32_EXT_EXTI20_IRQ_PRIORITY);
nvicEnableVector(TAMP_STAMP_IRQn, STM32_EXT_EXTI21_IRQ_PRIORITY);
nvicEnableVector(RTC_WKUP_IRQn, STM32_EXT_EXTI22_IRQ_PRIORITY);
nvicEnableVector(LPTIM1_IRQn, STM32_EXT_EXTI23_IRQ_PRIORITY);
}
/**
@ -368,6 +369,7 @@ void ext_lld_exti_irq_disable(void) {
nvicDisableVector(OTG_HS_WKUP_IRQn);
nvicDisableVector(TAMP_STAMP_IRQn);
nvicDisableVector(RTC_WKUP_IRQn);
nvicDisableVector(LPTIM1_IRQn);
}
#endif /* HAL_USE_EXT */

View File

@ -136,6 +136,13 @@
#if !defined(STM32_EXT_EXTI22_IRQ_PRIORITY) || defined(__DOXYGEN__)
#define STM32_EXT_EXTI22_IRQ_PRIORITY 6
#endif
/**
* @brief EXTI23 interrupt priority level setting.
*/
#if !defined(STM32_EXT_EXTI23_IRQ_PRIORITY) || defined(__DOXYGEN__)
#define STM32_EXT_EXTI23_IRQ_PRIORITY 6
#endif
/** @} */
/*===========================================================================*/

View File

@ -145,7 +145,7 @@
/* EXTI attributes.*/
#define STM32_EXTI_NUM_LINES 24
#define STM32_EXTI_IMR_MASK 0
#define STM32_EXTI_IMR_MASK 0xFF000000
/* GPIO attributes.*/
#define STM32_HAS_GPIOA TRUE