Skip to content

Commit

Permalink
boards: nxp: frdm_mcxn947: Enable lpmtr for frdm_mcxn947
Browse files Browse the repository at this point in the history
Enabled one instance of lptmr
running from the 16k FRO.

Signed-off-by: Emilio Benavente <[email protected]>
  • Loading branch information
EmilioCBen committed Jun 4, 2024
1 parent c18579d commit 1cdb1db
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/nxp/frdm_mcxn947/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ static int frdm_mcxn947_init(void)
SPC_EnableActiveModeAnalogModules(SPC0, (kSPC_controlCmp0 | kSPC_controlCmp0Dac));
#endif

#if DT_NODE_HAS_STATUS(DT_NODELABEL(lptmr0), okay)
CLOCK_SetupClk16KClocking(kCLOCK_Clk16KToVsys);
#endif

/* Set SystemCoreClock variable. */
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;

Expand Down
3 changes: 3 additions & 0 deletions boards/nxp/frdm_mcxn947/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ The FRDM-MCXN947 board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| LPCMP | on-chip | sensor(comparator) |
+-----------+------------+-------------------------------------+
| LPTMR | on-chip | counter |
+-----------+------------+-------------------------------------+


Targets available
==================
Expand Down
4 changes: 4 additions & 0 deletions boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,7 @@ zephyr_udc0: &usb1 {
&lpcmp0 {
status = "okay";
};

&lptmr0 {
status = "okay";
};

0 comments on commit 1cdb1db

Please sign in to comment.