From 8e5eb1732de26ae81ef3fc8f0c8fb28b376691b2 Mon Sep 17 00:00:00 2001 From: Yuriy Vynnychek Date: Fri, 8 Oct 2021 15:59:36 +0300 Subject: [PATCH] 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 --- include/drivers/uart.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/drivers/uart.h b/include/drivers/uart.h index 4418f676162..3b0f3848d62 100644 --- a/include/drivers/uart.h +++ b/include/drivers/uart.h @@ -903,7 +903,8 @@ static inline void z_impl_uart_irq_tx_disable(const struct device *dev) * * @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 -ENOSYS if this function is not supported. * @retval -ENOTSUP if API is not enabled.