UM1581
8.
EXTI line 22 is connected to the Comparator 2 wakeup event
9.
EXTI line 23 is connected to the I2C1 wakeup event
10. EXTI line 24 is connected to the I2C2 wakeup event
11. EXTI line 25 is connected to the USART1 wakeup event
12. EXTI line 26 is connected to the USART2 wakeup event
13. EXTI line 27 is reserved
14. EXTI line 28 is connected to the USART3 wakeup event
15. EXTI line 29 is connected to the Comparator 3 event
16. EXTI line 30 is connected to the Comparator 4 event
17. EXTI line 31 is connected to the Comparator 5 event
18. EXTI line 32 is connected to the Comparator 6 event
19. EXTI line 33 is connected to the Comparator 7 event
20. EXTI line 34 is connected for thr UART4 wakeup event
21. EXTI line 35 is connected for the UART5 wakeup event
10.2.2
How to use this driver
In order to use an I/O pin as an external interrupt source, follow steps below:
1.
Configure the I/O in input mode using GPIO_Init().
2.
Select the input source pin for the EXTI line using SYSCFG_EXTILineConfig().
3.
Select the mode(interrupt, event) and configure the trigger selection (Rising, falling or
both) using EXTI_Init(). For the internal interrupt, the trigger selection is not needed
(the active edge is always the rising one).
4.
Configure NVIC IRQ channel mapped to the EXTI line using NVIC_Init().
5.
Optionally, you can generate a software interrupt using the function
EXTI_GenerateSWInterrupt().
10.2.3
Initialization and Configuration functions
EXTI_DeInit()
EXTI_Init()
EXTI_StructInit()
EXTI_GenerateSWInterrupt()
10.2.4
Interrupts and flags management functions
This section provides functions allowing to configure the EXTI Interrupts sources and
check or clear the flags or pending bits status.
EXTI_GetFlagStatus()
EXTI_ClearFlag()
EXTI_GetITStatus()
EXTI_ClearITPendingBit()
SYSCFG APB clock must be enabled to get write access to SYSCFG_EXTICRx
registers using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG,
ENABLE);
DocID023800 Rev 1
External interrupt/event controller (EXTI)
209/584
Need help?
Do you have a question about the STM32F31xx and is the answer not in the manual?