Skip to content

Commit ec05ead

Browse files
NeilChen93nashif
authored andcommitted
boards: frdm_mcxc444: Add counters support
mcxc444 also has pit and rtc counters, add the counters to board documentation, and enable it explicitly in board dts. Set rtc clock to 32 kHz oscillator. Signed-off-by: Neil Chen <[email protected]>
1 parent 4b49d7c commit ec05ead

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

boards/nxp/frdm_mcxc444/doc/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ The ``frdm_mcxc444`` board target supports the following hardware features:
5757
+-----------+------------+-------------------------------------+
5858
| LPTMR | on-chip | counter |
5959
+-----------+------------+-------------------------------------+
60+
| PIT | on-chip | counter |
61+
+-----------+------------+-------------------------------------+
62+
| RTC | on-chip | counter |
63+
+-----------+------------+-------------------------------------+
6064

6165

6266
Targets available

boards/nxp/frdm_mcxc444/frdm_mcxc444.dts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
&sim {
6464
pllfll-select = <KINETIS_SIM_PLLFLLSEL_MCGPLLCLK>;
65-
er32k-select = <KINETIS_SIM_ER32KSEL_LPO1KHZ>;
65+
er32k-select = <KINETIS_SIM_ER32KSEL_OSC32KCLK>;
6666
};
6767

6868
&cpu0 {
@@ -107,3 +107,19 @@
107107
pinctrl-0 = <&pinmux_uart2>;
108108
pinctrl-names = "default";
109109
};
110+
111+
&rtc {
112+
status = "okay";
113+
};
114+
115+
&pit0 {
116+
status = "okay";
117+
};
118+
119+
&pit0_channel0 {
120+
status = "okay";
121+
};
122+
123+
&pit0_channel1 {
124+
status = "okay";
125+
};

0 commit comments

Comments
 (0)