|
STM32 Traffic Control
|
Public API for external interrupt (EXTI) configuration. More...
#include "stm32f446xx.h"Go to the source code of this file.
Functions | |
| void | exti_init (void) |
| Initializes external interrupt inputs for vehicle detection buttons. | |
Public API for external interrupt (EXTI) configuration.
| void exti_init | ( | void | ) |
Initializes external interrupt inputs for vehicle detection buttons.
This function configures GPIOC pins PC10–PC13 as input signals with internal pull-up resistors and maps them to EXTI lines 10–13. Falling edge triggers are enabled to detect button press events.
The EXTI lines are unmasked and routed through the NVIC using the EXTI15_10 interrupt channel.