shell: uart: Add TX disabling in uninitialization

Uninitialization of uart transport was missing disabling of TX
interrupt. It had to be done by the user before using uart.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2021-04-21 09:25:38 +02:00 committed by Carles Cufí
commit c313474cb0
2 changed files with 1 additions and 1 deletions

View file

@ -201,6 +201,7 @@ static int uninit(const struct shell_transport *transport)
if (IS_ENABLED(CONFIG_SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN)) {
const struct device *dev = sh_uart->ctrl_blk->dev;
uart_irq_tx_disable(dev);
uart_irq_rx_disable(dev);
} else {
k_timer_stop(sh_uart->timer);