Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
exti_stm32.h File Reference
#include <zephyr/types.h>

Go to the source code of this file.

Macros

#define STM32_EXTI_LINE_NONE   0xFFFFFFFFU
 Driver for External interrupt/event controller in STM32 MCUs.
 

Typedefs

typedef void(* stm32_exti_callback_t) (int line, void *user)
 

Enumerations

enum  stm32_exti_trigger { STM32_EXTI_TRIG_NONE = 0x0 , STM32_EXTI_TRIG_RISING = 0x1 , STM32_EXTI_TRIG_FALLING = 0x2 , STM32_EXTI_TRIG_BOTH = 0x3 }
 EXTI trigger flags. More...
 

Functions

void stm32_exti_enable (int line)
 enable EXTI interrupt for specific line
 
void stm32_exti_disable (int line)
 disable EXTI interrupt for specific line
 
void stm32_exti_trigger (int line, int trg)
 set EXTI interrupt line triggers
 
int stm32_exti_set_callback (int line, stm32_exti_callback_t cb, void *data)
 set EXTI interrupt callback
 
void stm32_exti_unset_callback (int line)
 unset EXTI interrupt callback
 

Macro Definition Documentation

◆ STM32_EXTI_LINE_NONE

#define STM32_EXTI_LINE_NONE   0xFFFFFFFFU

Driver for External interrupt/event controller in STM32 MCUs.

Based on reference manuals: RM0008 Reference Manual: STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and STM32F107xx advanced ARM(r)-based 32-bit MCUs and RM0368 Reference manual STM32F401xB/C and STM32F401xD/E advanced ARM(r)-based 32-bit MCUs

Chapter 10.2: External interrupt/event controller (EXTI)

Typedef Documentation

◆ stm32_exti_callback_t

typedef void(* stm32_exti_callback_t) (int line, void *user)

Enumeration Type Documentation

◆ stm32_exti_trigger

EXTI trigger flags.

Enumerator
STM32_EXTI_TRIG_NONE 
STM32_EXTI_TRIG_RISING 
STM32_EXTI_TRIG_FALLING 
STM32_EXTI_TRIG_BOTH 

Function Documentation

◆ stm32_exti_disable()

void stm32_exti_disable ( int  line)

disable EXTI interrupt for specific line

Parameters
lineEXTI# line

◆ stm32_exti_enable()

void stm32_exti_enable ( int  line)

enable EXTI interrupt for specific line

Parameters
lineEXTI# line

◆ stm32_exti_set_callback()

int stm32_exti_set_callback ( int  line,
stm32_exti_callback_t  cb,
void *  data 
)

set EXTI interrupt callback

Parameters
lineEXI# line
cbuser callback
datauser data

◆ stm32_exti_trigger()

void stm32_exti_trigger ( int  line,
int  trg 
)

set EXTI interrupt line triggers

Parameters
lineEXTI# line
trgOR'ed stm32_exti_trigger flags

◆ stm32_exti_unset_callback()

void stm32_exti_unset_callback ( int  line)

unset EXTI interrupt callback

Parameters
lineEXI# line