Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
Go to the source code of this file.
Typedefs | |
typedef uint32_t | stm32_gpio_irq_line_t |
GPIO interrupt controller API for STM32 MCUs. | |
typedef void(* | stm32_gpio_irq_cb_t) (gpio_port_pins_t pin, void *user) |
GPIO interrupt callback function signature. | |
Enumerations | |
enum | stm32_gpio_irq_trigger { STM32_GPIO_IRQ_TRIG_NONE = 0x0 , STM32_GPIO_IRQ_TRIG_RISING = 0x1 , STM32_GPIO_IRQ_TRIG_FALLING = 0x2 , STM32_GPIO_IRQ_TRIG_BOTH = 0x3 , STM32_GPIO_IRQ_TRIG_HIGH_LEVEL = 0x4 , STM32_GPIO_IRQ_TRIG_LOW_LEVEL = 0x5 } |
GPIO interrupt trigger flags. More... | |
Functions | |
stm32_gpio_irq_line_t | stm32_gpio_intc_get_pin_irq_line (uint32_t port, gpio_pin_t pin) |
Get the GPIO interrupt line value corresponding to specified pin of GPIO port port . | |
void | stm32_gpio_intc_enable_line (stm32_gpio_irq_line_t line) |
Enable GPIO interrupts for specified line. | |
void | stm32_gpio_intc_disable_line (stm32_gpio_irq_line_t line) |
Disable GPIO interrupts for specified line. | |
void | stm32_gpio_intc_select_line_trigger (stm32_gpio_irq_line_t line, uint32_t trg) |
Select trigger for interrupt on specified GPIO line. | |
int | stm32_gpio_intc_set_irq_callback (stm32_gpio_irq_line_t line, stm32_gpio_irq_cb_t cb, void *user) |
Set callback invoked when an interrupt occurs on specified GPIO line. | |
void | stm32_gpio_intc_remove_irq_callback (stm32_gpio_irq_line_t line) |
Removes the interrupt callback of specified EXTI line. | |
typedef void(* stm32_gpio_irq_cb_t) (gpio_port_pins_t pin, void *user) |
GPIO interrupt callback function signature.
pin | GPIO pin on which interrupt occurred |
user | data provided to stm32_gpio_intc_set_irq_callback |
typedef uint32_t stm32_gpio_irq_line_t |
GPIO interrupt controller API for STM32 MCUs.
This API is used to interact with the GPIO interrupt controller of STM32 microcontrollers.
Opaque type representing a GPIO interrupt line
void stm32_gpio_intc_disable_line | ( | stm32_gpio_irq_line_t | line | ) |
Disable GPIO interrupts for specified line.
line | GPIO interrupt line |
void stm32_gpio_intc_enable_line | ( | stm32_gpio_irq_line_t | line | ) |
Enable GPIO interrupts for specified line.
line | GPIO interrupt line |
stm32_gpio_irq_line_t stm32_gpio_intc_get_pin_irq_line | ( | uint32_t | port, |
gpio_pin_t | pin | ||
) |
Get the GPIO interrupt line value corresponding to specified pin
of GPIO port port
.
void stm32_gpio_intc_remove_irq_callback | ( | stm32_gpio_irq_line_t | line | ) |
Removes the interrupt callback of specified EXTI line.
line | EXTI interrupt line |
void stm32_gpio_intc_select_line_trigger | ( | stm32_gpio_irq_line_t | line, |
uint32_t | trg | ||
) |
Select trigger for interrupt on specified GPIO line.
line | GPIO interrupt line |
trg | Interrupt trigger (see stm32_gpio_irq_trigger) |
int stm32_gpio_intc_set_irq_callback | ( | stm32_gpio_irq_line_t | line, |
stm32_gpio_irq_cb_t | cb, | ||
void * | user | ||
) |
Set callback invoked when an interrupt occurs on specified GPIO line.
line | GPIO interrupt line |
cb | Interrupt callback function |
user | Custom user data for usage by the callback |
line