driver: uart: Fix Modbus data currupted by DE-RE signal
Add UART_UARTFR_BUSY_BITS To fix modbus data was currupted Signed-off-by: sukrit buddeewong <sukrit.omu@gmail.com>
This commit is contained in:
parent
246bd7a290
commit
c5bb959b25
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ static int uart_rpi_irq_tx_complete(const struct device *dev)
|
|||
const struct uart_rpi_config * const config = dev->config;
|
||||
uart_hw_t * const uart_hw = config->uart_regs;
|
||||
|
||||
return !!(uart_hw->fr & UART_UARTFR_TXFE_BITS);
|
||||
return !!(uart_hw->fr & UART_UARTFR_TXFE_BITS) && !(uart_hw->fr & UART_UARTFR_BUSY_BITS);
|
||||
}
|
||||
|
||||
static int uart_rpi_irq_rx_ready(const struct device *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue