Skip to content

Commit 329cffd

Browse files
authored
inital commit for FRDM-MCXA346 support (#10604)
* inital commit for FRDM-MCXA346 support * format file * add frdm-mcxa456 into bsp comople ci * add some file according to copliot commments
1 parent 235bbef commit 329cffd

File tree

24 files changed

+9058
-2
lines changed

24 files changed

+9058
-2
lines changed

.github/ALL_BSP_COMPILE.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@
246246
"nxp/mcx/mcxc/frdm-mcxc444",
247247
"nxp/mcx/mcxa/frdm-mcxa153",
248248
"nxp/mcx/mcxa/frdm-mcxa156",
249+
"nxp/mcx/mcxa/frdm-mcxa346",
249250
"renesas/ebf_qi_min_6m5",
250251
"renesas/ra6m4-cpk",
251252
"renesas/ra6m4-iot",

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)