drivers: serial: stm32: renable IT RXNE as part of graceful disable
async_rx_disable does not re-anable RXNE interrupt, it was disabled during async_rx_enable Signed-off-by: Manojkumar Subramaniam <manoj@electrolance.com>
This commit is contained in:
parent
a35cc75c14
commit
d79d26f1ae
|
@ -977,6 +977,9 @@ static int uart_stm32_async_rx_disable(const struct device *dev)
|
|||
data->rx_next_buffer = NULL;
|
||||
data->rx_next_buffer_len = 0;
|
||||
|
||||
/*when async rx is disabled, enable interruptable instance of uart to function normally*/
|
||||
LL_USART_EnableIT_RXNE(UartInstance);
|
||||
|
||||
LOG_DBG("rx: disabled");
|
||||
|
||||
async_user_callback(data, &disabled_event);
|
||||
|
|
Loading…
Reference in a new issue