Reputation: 9169
I would like to enable a GPIO interrupt whenever a user presses the user button on the STM32F4DISCOVERY board.
Steps I am following:
Note that PA0 -> B1 [Blue Push Button]
.
My understanding is that PA0
should be mapped to EXTI0
interrupt.
PA0
is set to External Event Mode with Rising edge trigger detectionBut I don't see a way to enable EXTI0
interrupt:
Upvotes: 0
Views: 1973
Reputation: 7271
Click on PA0 and select Reset_State
, then select GPIO_EXTI0
. After that, under GPIO configuration select "External Interrupt Mode ...".
Now EXTI line0 interrupt should be visible under NVIC configuration.
Upvotes: 1