drivers: uart: Use the register define instead of enum define

The enum define is not implemented with the same name on all SoC's.
Use the register define instead.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
Mahesh Mahadevan 2024-03-12 13:52:08 -05:00 committed by Fabio Baltieri
commit 61d1a711fc

View file

@ -150,7 +150,7 @@ static void mcux_lpuart_poll_out(const struct device *dev, unsigned char c)
#endif
while (!(LPUART_GetStatusFlags(config->base)
& kLPUART_TxDataRegEmptyFlag)) {
& LPUART_STAT_TDRE_MASK)) {
}
/* Lock interrupts while we send data */
key = irq_lock();
@ -215,7 +215,7 @@ static int mcux_lpuart_fifo_fill(const struct device *dev,
while ((len - num_tx > 0) &&
(LPUART_GetStatusFlags(config->base)
& kLPUART_TxDataRegEmptyFlag)) {
& LPUART_STAT_TDRE_MASK)) {
LPUART_WriteByte(config->base, tx_data[num_tx++]);
}
@ -301,7 +301,7 @@ static int mcux_lpuart_irq_tx_ready(const struct device *dev)
uint32_t flags = LPUART_GetStatusFlags(config->base);
return (LPUART_GetEnabledInterrupts(config->base) & mask)
&& (flags & kLPUART_TxDataRegEmptyFlag);
&& (flags & LPUART_STAT_TDRE_MASK);
}
static void mcux_lpuart_irq_rx_enable(const struct device *dev)