32#if defined(EXTI_EXTICR)
33 #define EXTICR_SELECTION_FIELDSIZE EXTI_EXTICR_FIELDSIZE
34 #define EXTICR_SELECTION_REG(x) EXTI_EXTICR(x)
35#elif defined(AFIO_EXTICR)
36 #define EXTICR_SELECTION_FIELDSIZE AFIO_EXTICR_FIELDSIZE
37 #define EXTICR_SELECTION_REG(x) AFIO_EXTICR(x)
39 #include <libopencm3/stm32/syscfg.h>
40 #define EXTICR_SELECTION_FIELDSIZE SYSCFG_EXTICR_FIELDSIZE
41 #define EXTICR_SELECTION_REG(x) SYSCFG_EXTICR(x)
86#if defined(EXTI_RPR1) && defined(EXTI_FPR1)
99#if defined(EXTI_RPR1) && defined(EXTI_FPR1)
102 return EXTI_PR & exti;
115 for (line = 0; line < 16; line++) {
116 if (!(exti & (1 << line))) {
135#if defined(GPIOE) && defined(GPIO_PORT_E_BASE)
140#if defined(GPIOF) && defined(GPIO_PORT_F_BASE)
145#if defined(GPIOG) && defined(GPIO_PORT_G_BASE)
150#if defined(GPIOH) && defined(GPIO_PORT_H_BASE)
155#if defined(GPIOI) && defined(GPIO_PORT_I_BASE)
160#if defined(GPIOJ) && defined(GPIO_PORT_J_BASE)
165#if defined(GPIOK) && defined(GPIO_PORT_K_BASE)
174 uint32_t reg = line / 4;
#define EXTI_FPR1
EXTI Falling Edge Pending Register.
#define EXTI_RPR1
EXTI Rising Edge Pending Register.
void exti_disable_request(uint32_t extis)
#define EXTICR_SELECTION_FIELDSIZE
uint32_t exti_get_flag_status(uint32_t exti)
void exti_select_source(uint32_t exti, uint32_t gpioport)
void exti_set_trigger(uint32_t extis, enum exti_trigger_type trig)
void exti_reset_request(uint32_t extis)
void exti_enable_request(uint32_t extis)
#define EXTICR_SELECTION_REG(x)