53 #define MCG_PLL_DISABLE 0U 55 #define OSC_ER_CLK_DISABLE 0U 56 #define SIM_OSC32KSEL_LPO_CLK 3U 57 #define SIM_PLLFLLSEL_MCGFLLCLK_CLK 0U 58 #define SIM_PLLFLLSEL_MCGPLLCLK_CLK 1U 76 static void CLOCK_CONFIG_SetFllExtRefDiv(uint8_t frdiv)
78 MCG->C1 = ((MCG->C1 & ~MCG_C1_FRDIV_MASK) | MCG_C1_FRDIV(frdiv));
127 .mcgMode = kMCG_ModePEE,
128 .irclkEnableMode = kMCG_IrclkEnable,
129 .ircs = kMCG_IrcSlow,
133 .dmx32 = kMCG_Dmx32Default,
145 .clkdiv1 = 0x10010000U,
151 .workMode = kOSC_ModeOscLowPower,
154 .enableMode = kOSC_ErClkEnable,
164 CLOCK_SetSimSafeDivs();
171 CLOCK_BootToPeeMode(kMCG_OscselOsc,
220 .mcgMode = kMCG_ModeBLPI,
221 .irclkEnableMode = kMCG_IrclkEnable,
222 .ircs = kMCG_IrcFast,
226 .dmx32 = kMCG_Dmx32Default,
244 .workMode = kOSC_ModeOscLowPower,
257 CLOCK_SetSimSafeDivs();
265 SMC_SetPowerModeProtection(
SMC, kSMC_AllowPowerModeAll);
266 #if (defined(FSL_FEATURE_SMC_HAS_LPWUI) && FSL_FEATURE_SMC_HAS_LPWUI) 271 while (SMC_GetPowerModeState(
SMC) != kSMC_PowerStateVlpr)
void BOARD_BootClockVLPR(void)
This function executes configuration of clocks.
status_t SMC_SetPowerModeVlpr(void *arg)
Configures the system to VLPR power mode. API name used from Kinetis family to maintain compatibility...
#define SIM_OSC32KSEL_LPO_CLK
const sim_clock_config_t simConfig_BOARD_BootClockRUN
SIM module set for BOARD_BootClockRUN configuration.
const osc_config_t oscConfig_BOARD_BootClockRUN
OSC set for BOARD_BootClockRUN configuration.
const osc_config_t oscConfig_BOARD_BootClockVLPR
OSC set for BOARD_BootClockVLPR configuration.
#define OSC_ER_CLK_DISABLE
const mcg_config_t mcgConfig_BOARD_BootClockVLPR
MCG set for BOARD_BootClockVLPR configuration.
const sim_clock_config_t simConfig_BOARD_BootClockVLPR
SIM module set for BOARD_BootClockVLPR configuration.
const mcg_config_t mcgConfig_BOARD_BootClockRUN
MCG set for BOARD_BootClockRUN configuration.
void BOARD_BootClockRUN(void)
This function executes configuration of clocks.
#define SIM_PLLFLLSEL_MCGPLLCLK_CLK
#define BOARD_BOOTCLOCKVLPR_CORE_CLOCK
#define SIM_PLLFLLSEL_MCGFLLCLK_CLK
#define BOARD_BOOTCLOCKRUN_CORE_CLOCK