Skip to content

Commit 51fa86b

Browse files
fougestephanosio
authored andcommitted
drivers: exti: stm32: expose STM32_EXTI_LINE_NONE
Common STM32_EXTI_LINE_NONE for declaration and setting of wakeup EXTI line when configured. Signed-off-by: Cyril Fougeray <[email protected]>
1 parent f9adaca commit 51fa86b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

drivers/serial/uart_stm32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <zephyr/sys/__assert.h>
2020
#include <soc.h>
2121
#include <zephyr/init.h>
22+
#include <zephyr/drivers/interrupt_controller/exti_stm32.h>
2223
#include <zephyr/drivers/uart.h>
2324
#include <zephyr/drivers/clock_control.h>
2425
#include <zephyr/drivers/reset.h>

drivers/serial/uart_stm32.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
#include <stm32_ll_usart.h>
1818

19-
#define STM32_EXTI_LINE_NONE 0xFFFFFFFFU
20-
2119
/* device config */
2220
struct uart_stm32_config {
2321
/* USART instance */

include/zephyr/drivers/interrupt_controller/exti_stm32.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
#include <zephyr/types.h>
2525

26+
#define STM32_EXTI_LINE_NONE 0xFFFFFFFFU
27+
2628
/**
2729
* @brief enable EXTI interrupt for specific line
2830
*

0 commit comments

Comments
 (0)