Skip to content

Commit 6bd459a

Browse files
committed
inital commit for FRDM-MCXA346 support
1 parent 715334f commit 6bd459a

File tree

23 files changed

+9069
-2
lines changed

23 files changed

+9069
-2
lines changed

bsp/nxp/mcx/mcxa/Libraries/drivers/drv_uart.c

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ static const struct mcx_uart uarts[] =
6060
&serial0,
6161
LPUART0,
6262
LPUART0_IRQn,
63-
kCLOCK_Fro12M,
63+
#if (defined(CPU_MCXA346VLH) || defined(CPU_MCXA346VLL) || defined(CPU_MCXA346VLQ) || defined(CPU_MCXA346VPN))
64+
kFRO_LF_DIV_to_LPUART0,
65+
#else
66+
kFRO12M_to_LPUART0,
67+
#endif
6468
kFRO12M_to_LPUART0,
6569
kCLOCK_GateLPUART0,
6670
kCLOCK_DivLPUART0,
@@ -72,7 +76,11 @@ static const struct mcx_uart uarts[] =
7276
&serial1,
7377
LPUART1,
7478
LPUART1_IRQn,
75-
kCLOCK_Fro12M,
79+
#if (defined(CPU_MCXA346VLH) || defined(CPU_MCXA346VLL) || defined(CPU_MCXA346VLQ) || defined(CPU_MCXA346VPN))
80+
kFRO_LF_DIV_to_LPUART1,
81+
#else
82+
kFRO12M_to_LPUART1,
83+
#endif
7684
kFRO12M_to_LPUART1,
7785
kCLOCK_GateLPUART1,
7886
kCLOCK_DivLPUART1,
@@ -85,7 +93,11 @@ static const struct mcx_uart uarts[] =
8593
LPUART2,
8694
LPUART2_IRQn,
8795
kCLOCK_Fro12M,
96+
#if (defined(CPU_MCXA346VLH) || defined(CPU_MCXA346VLL) || defined(CPU_MCXA346VLQ) || defined(CPU_MCXA346VPN))
97+
kFRO_LF_DIV_to_LPUART2,
98+
#else
8899
kFRO12M_to_LPUART2,
100+
#endif
89101
kCLOCK_GateLPUART2,
90102
kCLOCK_DivLPUART2,
91103
"uart2",

0 commit comments

Comments
 (0)