drivers: uart: irq_tx_ready info update with TX IRQ dependencies

irq_tx_ready API should return 1 only in case if TX IRQ is enabled.

Signed-off-by: Yuriy Vynnychek <yura.vynnychek@telink-semi.com>
This commit is contained in:
Yuriy Vynnychek 2021-10-08 15:59:36 +03:00 committed by Christopher Friedt
commit 8e5eb1732d

View file

@ -903,7 +903,8 @@ static inline void z_impl_uart_irq_tx_disable(const struct device *dev)
* *
* @param dev UART device structure. * @param dev UART device structure.
* *
* @retval 1 If at least one char can be written to UART. * @retval 1 If TX interrupt is enabled and at least one char can be
* written to UART.
* @retval 0 If device is not ready to write a new byte. * @retval 0 If device is not ready to write a new byte.
* @retval -ENOSYS if this function is not supported. * @retval -ENOSYS if this function is not supported.
* @retval -ENOTSUP if API is not enabled. * @retval -ENOTSUP if API is not enabled.