drivers: serial: stm32 restore uart after lowpower

This adds a function to control the uart device during lowpower modes

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2021-01-27 10:27:33 +01:00 committed by Anas Nashif
commit 3c18bcbf77
2 changed files with 68 additions and 1 deletions

View file

@ -69,6 +69,9 @@ struct uart_stm32_data {
uint8_t *rx_next_buffer;
size_t rx_next_buffer_len;
#endif
#ifdef CONFIG_PM_DEVICE
uint32_t pm_state;
#endif
};
#endif /* ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_ */