Lines Matching refs:line
78 static inline int stm32_exti_is_pending(stm32_gpio_irq_line_t line) in stm32_exti_is_pending() argument
81 return (LL_EXTI_IsActiveRisingFlag_0_31(line) || in stm32_exti_is_pending()
82 LL_EXTI_IsActiveFallingFlag_0_31(line)); in stm32_exti_is_pending()
84 return LL_C2_EXTI_IsActiveFlag_0_31(line); in stm32_exti_is_pending()
86 return LL_EXTI_IsActiveFlag_0_31(line); in stm32_exti_is_pending()
95 static inline void stm32_exti_clear_pending(stm32_gpio_irq_line_t line) in stm32_exti_clear_pending() argument
98 LL_EXTI_ClearRisingFlag_0_31(line); in stm32_exti_clear_pending()
99 LL_EXTI_ClearFallingFlag_0_31(line); in stm32_exti_clear_pending()
101 LL_C2_EXTI_ClearFlag_0_31(line); in stm32_exti_clear_pending()
103 LL_EXTI_ClearFlag_0_31(line); in stm32_exti_clear_pending()
118 static inline gpio_pin_t ll_exti_line_to_linenum(stm32_gpio_irq_line_t line) in ll_exti_line_to_linenum() argument
120 return LOG2(line); in ll_exti_line_to_linenum()
135 stm32_gpio_irq_line_t line; in stm32_exti_isr() local
141 line = linenum_to_ll_exti_line(line_num); in stm32_exti_isr()
144 if (stm32_exti_is_pending(line) != 0) { in stm32_exti_isr()
146 stm32_exti_clear_pending(line); in stm32_exti_isr()
154 data->cb[line_num].cb(line, data->cb[line_num].data); in stm32_exti_isr()
258 void stm32_gpio_intc_enable_line(stm32_gpio_irq_line_t line) in stm32_gpio_intc_enable_line() argument
261 uint32_t line_num = ll_exti_line_to_linenum(line); in stm32_gpio_intc_enable_line()
271 LL_C2_EXTI_EnableIT_0_31(line); in stm32_gpio_intc_enable_line()
273 LL_EXTI_EnableIT_0_31(line); in stm32_gpio_intc_enable_line()
280 void stm32_gpio_intc_disable_line(stm32_gpio_irq_line_t line) in stm32_gpio_intc_disable_line() argument
283 LL_C2_EXTI_DisableIT_0_31(line); in stm32_gpio_intc_disable_line()
285 LL_EXTI_DisableIT_0_31(line); in stm32_gpio_intc_disable_line()
289 void stm32_gpio_intc_select_line_trigger(stm32_gpio_irq_line_t line, uint32_t trg) in stm32_gpio_intc_select_line_trigger() argument
295 LL_EXTI_DisableRisingTrig_0_31(line); in stm32_gpio_intc_select_line_trigger()
296 LL_EXTI_DisableFallingTrig_0_31(line); in stm32_gpio_intc_select_line_trigger()
299 LL_EXTI_EnableRisingTrig_0_31(line); in stm32_gpio_intc_select_line_trigger()
300 LL_EXTI_DisableFallingTrig_0_31(line); in stm32_gpio_intc_select_line_trigger()
303 LL_EXTI_EnableFallingTrig_0_31(line); in stm32_gpio_intc_select_line_trigger()
304 LL_EXTI_DisableRisingTrig_0_31(line); in stm32_gpio_intc_select_line_trigger()
307 LL_EXTI_EnableRisingTrig_0_31(line); in stm32_gpio_intc_select_line_trigger()
308 LL_EXTI_EnableFallingTrig_0_31(line); in stm32_gpio_intc_select_line_trigger()
317 int stm32_gpio_intc_set_irq_callback(stm32_gpio_irq_line_t line, stm32_gpio_irq_cb_t cb, void *user) in stm32_gpio_intc_set_irq_callback() argument
321 uint32_t line_num = ll_exti_line_to_linenum(line); in stm32_gpio_intc_set_irq_callback()
338 void stm32_gpio_intc_remove_irq_callback(stm32_gpio_irq_line_t line) in stm32_gpio_intc_remove_irq_callback() argument
342 uint32_t line_num = ll_exti_line_to_linenum(line); in stm32_gpio_intc_remove_irq_callback()
348 void stm32_exti_set_line_src_port(gpio_pin_t line, uint32_t port) in stm32_exti_set_line_src_port() argument
350 uint32_t ll_line = stm32_exti_linenum_to_src_cfg_line(line); in stm32_exti_set_line_src_port()
378 uint32_t stm32_exti_get_line_src_port(gpio_pin_t line) in stm32_exti_get_line_src_port() argument
380 uint32_t ll_line = stm32_exti_linenum_to_src_cfg_line(line); in stm32_exti_get_line_src_port()