|
|
@@ -64,12 +64,12 @@ static const struct mcx_uart uarts[] =
|
|
|
&serial0,
|
|
|
LPUART0,
|
|
|
LPUART0_IRQn,
|
|
|
+ kCLOCK_Fro12M,
|
|
|
#if (defined(CPU_MCXA346VLH) || defined(CPU_MCXA346VLL) || defined(CPU_MCXA346VLQ) || defined(CPU_MCXA346VPN))
|
|
|
kFRO_LF_DIV_to_LPUART0,
|
|
|
#else
|
|
|
kFRO12M_to_LPUART0,
|
|
|
#endif
|
|
|
- kFRO12M_to_LPUART0,
|
|
|
kCLOCK_GateLPUART0,
|
|
|
kCLOCK_DivLPUART0,
|
|
|
"uart0",
|
|
|
@@ -80,12 +80,12 @@ static const struct mcx_uart uarts[] =
|
|
|
&serial1,
|
|
|
LPUART1,
|
|
|
LPUART1_IRQn,
|
|
|
+ kCLOCK_Fro12M,
|
|
|
#if (defined(CPU_MCXA346VLH) || defined(CPU_MCXA346VLL) || defined(CPU_MCXA346VLQ) || defined(CPU_MCXA346VPN))
|
|
|
kFRO_LF_DIV_to_LPUART1,
|
|
|
#else
|
|
|
kFRO12M_to_LPUART1,
|
|
|
#endif
|
|
|
- kFRO12M_to_LPUART1,
|
|
|
kCLOCK_GateLPUART1,
|
|
|
kCLOCK_DivLPUART1,
|
|
|
"uart1",
|
|
|
@@ -182,7 +182,7 @@ static int mcx_getc(struct rt_serial_device *serial)
|
|
|
{
|
|
|
struct mcx_uart *uart = (struct mcx_uart *)serial->parent.user_data;
|
|
|
|
|
|
- if (kLPUART_RxDataRegFullInterruptEnable & LPUART_GetStatusFlags(uart->uart_base))
|
|
|
+ if (kLPUART_RxDataRegFullFlag & LPUART_GetStatusFlags(uart->uart_base))
|
|
|
{
|
|
|
return LPUART_ReadByte(uart->uart_base);
|
|
|
}
|