7#ifndef ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_GD32_EXTI_H_
8#define ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_GD32_EXTI_H_
21#define GD32_EXTI_TRIG_NONE 0U
23#define GD32_EXTI_TRIG_RISING BIT(0)
25#define GD32_EXTI_TRIG_FALLING BIT(1)
27#define GD32_EXTI_TRIG_BOTH (GD32_EXTI_TRIG_RISING | GD32_EXTI_TRIG_FALLING)
int gd32_exti_configure(uint8_t line, gd32_exti_cb_t cb, void *user)
Configure EXTI interrupt callback.
void gd32_exti_disable(uint8_t line)
Disable EXTI interrupt for the given line.
void(* gd32_exti_cb_t)(uint8_t line, void *user)
Callback for EXTI interrupt.
Definition gd32_exti.h:32
void gd32_exti_trigger(uint8_t line, uint8_t trigger)
Configure EXTI interrupt trigger mode for the given line.
void gd32_exti_enable(uint8_t line)
Enable EXTI interrupt for the given line.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88