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:
parent
1242f5129d
commit
8e5eb1732d
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue