STM32 Traffic Control
Loading...
Searching...
No Matches
exti.h File Reference

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.

Detailed Description

Public API for external interrupt (EXTI) configuration.

Function Documentation

◆ exti_init()

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.

Note
Global interrupts are temporarily disabled during configuration to prevent spurious interrupt execution.