arch/arm/ameabd_serial.c : Delete txready infinite wait
If a thread checks the txready infinitely, another interrupt cannot be occurred because up_txready is called from uart interrupt handler.
In this case, there can be interrupt missing.
@@ -680,29 +680,8 @@ static bool rtl8721d_up_txready(struct uart_dev_s *dev)
struct rtl8721d_up_dev_s *priv = (struct rtl8721d_up_dev_s *)dev->priv;
DEBUGASSERT(priv);
-#if defined(CONFIG_UART0_SERIAL_CONSOLE)
- if (uart_index_get(priv->tx) == 0){
- while (!serial_writable(sdrv[uart_index_get(priv->tx)]));
- return true;
- }
- else
-#elif defined(CONFIG_UART1_SERIAL_CONSOLE)
- if (uart_index_get(priv->tx) == 3){
- while (!serial_writable(sdrv[uart_index_get(priv->tx)]));
- return true;
- }
- else
-#elif defined(CONFIG_UART2_SERIAL_CONSOLE)
- if (uart_index_get(priv->tx) == 2){
- while (!serial_writable(sdrv[uart_index_get(priv->tx)]));
- return true;
- }
- else
-#endif
- {
return (serial_writable(sdrv[uart_index_get(priv->tx)]));
}
-}
/****************************************************************************
* Name: up_txempty
