boards: nxp/frdm_mcxn947: Support lpadc for NXP frdm_mcxn947
Support lpadc for NXP frdm_mcxn947 Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
This commit is contained in:
parent
979d90bb95
commit
85087e2d5d
6 changed files with 26 additions and 0 deletions
|
@ -210,6 +210,11 @@ static int frdm_mcxn947_init(void)
|
|||
SPC_EnableActiveModeAnalogModules(SPC0, kSPC_controlVref);
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpadc0), okay)
|
||||
CLOCK_SetClkDiv(kCLOCK_DivAdc0Clk, 1U);
|
||||
CLOCK_AttachClk(kFRO_HF_to_ADC0);
|
||||
#endif
|
||||
|
||||
/* Set SystemCoreClock variable. */
|
||||
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue