ISSDK  1.8
IoT Sensing Software Development Kit
clock_config.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015, Freescale Semiconductor, Inc.
3  * Copyright 2016-2017 NXP
4  * All rights reserved.
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 /*
10  * How to setup clock using clock driver functions:
11  *
12  * 1. CLOCK_SetSimSafeDivs, to make sure core clock, bus clock, flexbus clock
13  * and flash clock are in allowed range during clock mode switch.
14  *
15  * 2. Call CLOCK_Osc0Init to setup OSC clock, if it is used in target mode.
16  *
17  * 3. Set MCG configuration, MCG includes three parts: FLL clock, PLL clock and
18  * internal reference clock(MCGIRCLK). Follow the steps to setup:
19  *
20  * 1). Call CLOCK_BootToXxxMode to set MCG to target mode.
21  *
22  * 2). If target mode is FBI/BLPI/PBI mode, the MCGIRCLK has been configured
23  * correctly. For other modes, need to call CLOCK_SetInternalRefClkConfig
24  * explicitly to setup MCGIRCLK.
25  *
26  * 3). Don't need to configure FLL explicitly, because if target mode is FLL
27  * mode, then FLL has been configured by the function CLOCK_BootToXxxMode,
28  * if the target mode is not FLL mode, the FLL is disabled.
29  *
30  * 4). If target mode is PEE/PBE/PEI/PBI mode, then the related PLL has been
31  * setup by CLOCK_BootToXxxMode. In FBE/FBI/FEE/FBE mode, the PLL could
32  * be enabled independently, call CLOCK_EnablePll0 explicitly in this case.
33  *
34  * 4. Call CLOCK_SetSimConfig to set the clock configuration in SIM.
35  */
36 
37 /* TEXT BELOW IS USED AS SETTING FOR THE CLOCKS TOOL *****************************
38 !!ClocksProfile
39 product: Clocks v1.0
40 processor: MK22FN512xxx12
41 package_id: MK22FN512VLH12
42 mcu_data: ksdk2_0
43 processor_version: 1.0.1
44  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR THE CLOCKS TOOL **/
45 
46 #include "fsl_smc.h"
47 #include "clock_config.h"
48 
49 /*******************************************************************************
50  * Definitions
51  ******************************************************************************/
52 #define MCG_PLL_DISABLE 0U /*!< MCGPLLCLK disabled */
53 #define OSC_CAP0P 0U /*!< Oscillator 0pF capacitor load */
54 #define OSC_ER_CLK_DISABLE 0U /*!< Disable external reference clock */
55 #define SIM_OSC32KSEL_RTC32KCLK_CLK 2U /*!< OSC32KSEL select: RTC32KCLK clock (32.768kHz) */
56 #define SIM_PLLFLLSEL_IRC48MCLK_CLK 3U /*!< PLLFLL select: IRC48MCLK clock */
57 #define SIM_PLLFLLSEL_MCGPLLCLK_CLK 1U /*!< PLLFLL select: MCGPLLCLK clock */
58 
59 /*******************************************************************************
60  * Variables
61  ******************************************************************************/
62 /* System clock frequency. */
63 extern uint32_t SystemCoreClock;
64 
65 /*******************************************************************************
66  * Code
67  ******************************************************************************/
68 /*FUNCTION**********************************************************************
69  *
70  * Function Name : CLOCK_CONFIG_SetFllExtRefDiv
71  * Description : Configure FLL external reference divider (FRDIV).
72  * Param frdiv : The value to set FRDIV.
73  *
74  *END**************************************************************************/
75 static void CLOCK_CONFIG_SetFllExtRefDiv(uint8_t frdiv)
76 {
77  MCG->C1 = ((MCG->C1 & ~MCG_C1_FRDIV_MASK) | MCG_C1_FRDIV(frdiv));
78 }
79 
80 /*******************************************************************************
81  ********************** Configuration BOARD_BootClockRUN ***********************
82  ******************************************************************************/
83 /* TEXT BELOW IS USED AS SETTING FOR THE CLOCKS TOOL *****************************
84 !!Configuration
85 name: BOARD_BootClockRUN
86 outputs:
87 - {id: Bus_clock.outFreq, value: 40 MHz}
88 - {id: Core_clock.outFreq, value: 80 MHz}
89 - {id: Flash_clock.outFreq, value: 20 MHz}
90 - {id: FlexBus_clock.outFreq, value: 80/3 MHz}
91 - {id: LPO_clock.outFreq, value: 1 kHz}
92 - {id: MCGFFCLK.outFreq, value: 250 kHz}
93 - {id: MCGIRCLK.outFreq, value: 32.768 kHz}
94 - {id: OSCERCLK.outFreq, value: 8 MHz}
95 - {id: OSCERCLK_UNDIV.outFreq, value: 8 MHz}
96 - {id: PLLFLLCLK.outFreq, value: 80 MHz}
97 - {id: System_clock.outFreq, value: 80 MHz}
98 settings:
99 - {id: MCGMode, value: PEE}
100 - {id: MCG.FCRDIV.scale, value: '1', locked: true}
101 - {id: MCG.FRDIV.scale, value: '32'}
102 - {id: MCG.IREFS.sel, value: MCG.FRDIV}
103 - {id: MCG.PLLS.sel, value: MCG.PLL}
104 - {id: MCG.PRDIV.scale, value: '4', locked: true}
105 - {id: MCG.VDIV.scale, value: '40', locked: true}
106 - {id: MCG_C1_IRCLKEN_CFG, value: Enabled}
107 - {id: MCG_C2_OSC_MODE_CFG, value: ModeOscLowPower}
108 - {id: MCG_C2_RANGE0_CFG, value: Very_high}
109 - {id: MCG_C2_RANGE0_FRDIV_CFG, value: Very_high}
110 - {id: OSC_CR_ERCLKEN_CFG, value: Enabled}
111 - {id: OSC_CR_ERCLKEN_UNDIV_CFG, value: Enabled}
112 - {id: RTC_CR_OSCE_CFG, value: Enabled}
113 - {id: RTC_CR_OSC_CAP_LOAD_CFG, value: SC12PF}
114 - {id: SIM.LPUARTSRCSEL.sel, value: OSC.OSCERCLK}
115 - {id: SIM.OSC32KSEL.sel, value: RTC.RTC32KCLK}
116 - {id: SIM.OUTDIV2.scale, value: '2'}
117 - {id: SIM.OUTDIV3.scale, value: '3'}
118 - {id: SIM.OUTDIV4.scale, value: '4', locked: true}
119 - {id: SIM.PLLFLLSEL.sel, value: MCG.MCGPLLCLK}
120 sources:
121 - {id: OSC.OSC.outFreq, value: 8 MHz, enabled: true}
122  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR THE CLOCKS TOOL **/
123 
124 /*******************************************************************************
125  * Variables for BOARD_BootClockRUN configuration
126  ******************************************************************************/
127 const mcg_config_t mcgConfig_BOARD_BootClockRUN =
128  {
129  .mcgMode = kMCG_ModePEE, /* PEE - PLL Engaged External */
130  .irclkEnableMode = kMCG_IrclkEnable, /* MCGIRCLK enabled, MCGIRCLK disabled in STOP mode */
131  .ircs = kMCG_IrcSlow, /* Slow internal reference clock selected */
132  .fcrdiv = 0x0U, /* Fast IRC divider: divided by 1 */
133  .frdiv = 0x0U, /* FLL reference clock divider: divided by 32 */
134  .drs = kMCG_DrsLow, /* Low frequency range */
135  .dmx32 = kMCG_Dmx32Default, /* DCO has a default range of 25% */
136  .oscsel = kMCG_OscselOsc, /* Selects System Oscillator (OSCCLK) */
137  .pll0Config =
138  {
139  .enableMode = MCG_PLL_DISABLE, /* MCGPLLCLK disabled */
140  .prdiv = 0x3U, /* PLL Reference divider: divided by 4 */
141  .vdiv = 0x10U, /* VCO divider: multiplied by 40 */
142  },
143  };
144 const sim_clock_config_t simConfig_BOARD_BootClockRUN =
145  {
146  .pllFllSel = SIM_PLLFLLSEL_MCGPLLCLK_CLK, /* PLLFLL select: MCGPLLCLK clock */
147  .er32kSrc = SIM_OSC32KSEL_RTC32KCLK_CLK, /* OSC32KSEL select: RTC32KCLK clock (32.768kHz) */
148  .clkdiv1 = 0x1230000U, /* SIM_CLKDIV1 - OUTDIV1: /1, OUTDIV2: /2, OUTDIV3: /3, OUTDIV4: /4 */
149  };
150 const osc_config_t oscConfig_BOARD_BootClockRUN =
151  {
152  .freq = 8000000U, /* Oscillator frequency: 8000000Hz */
153  .capLoad = (OSC_CAP0P), /* Oscillator capacity load: 0pF */
154  .workMode = kOSC_ModeOscLowPower, /* Oscillator low power */
155  .oscerConfig =
156  {
157  .enableMode = kOSC_ErClkEnable, /* Enable external reference clock, disable external reference clock in STOP mode */
158  .erclkDiv = 0, /* Divider for OSCERCLK: divided by 1 */
159  }
160  };
161 
162 /*******************************************************************************
163  * Code for BOARD_BootClockRUN configuration
164  ******************************************************************************/
166 {
167  /* Set the system clock dividers in SIM to safe value. */
168  CLOCK_SetSimSafeDivs();
169  /* Initializes OSC0 according to board configuration. */
170  CLOCK_InitOsc0(&oscConfig_BOARD_BootClockRUN);
171  CLOCK_SetXtal0Freq(oscConfig_BOARD_BootClockRUN.freq);
172  /* Configure the Internal Reference clock (MCGIRCLK). */
173  CLOCK_SetInternalRefClkConfig(mcgConfig_BOARD_BootClockRUN.irclkEnableMode,
176  /* Configure FLL external reference divider (FRDIV). */
177  CLOCK_CONFIG_SetFllExtRefDiv(mcgConfig_BOARD_BootClockRUN.frdiv);
178  /* Set MCG to PEE mode. */
179  CLOCK_BootToPeeMode(mcgConfig_BOARD_BootClockRUN.oscsel,
180  kMCG_PllClkSelPll0,
181  &mcgConfig_BOARD_BootClockRUN.pll0Config);
182  /* Set the clock configuration in SIM module. */
183  CLOCK_SetSimConfig(&simConfig_BOARD_BootClockRUN);
184  /* Set SystemCoreClock variable. */
186 }
187 
188 /*******************************************************************************
189  ********************* Configuration BOARD_BootClockVLPR ***********************
190  ******************************************************************************/
191 /* TEXT BELOW IS USED AS SETTING FOR THE CLOCKS TOOL *****************************
192 !!Configuration
193 name: BOARD_BootClockVLPR
194 outputs:
195 - {id: Bus_clock.outFreq, value: 4 MHz}
196 - {id: Core_clock.outFreq, value: 4 MHz}
197 - {id: Flash_clock.outFreq, value: 800 kHz}
198 - {id: FlexBus_clock.outFreq, value: 4 MHz}
199 - {id: LPO_clock.outFreq, value: 1 kHz}
200 - {id: MCGIRCLK.outFreq, value: 4 MHz}
201 - {id: System_clock.outFreq, value: 4 MHz}
202 settings:
203 - {id: MCGMode, value: BLPI}
204 - {id: powerMode, value: VLPR}
205 - {id: MCG.CLKS.sel, value: MCG.IRCS}
206 - {id: MCG.FCRDIV.scale, value: '1'}
207 - {id: MCG.FRDIV.scale, value: '32'}
208 - {id: MCG.IRCS.sel, value: MCG.FCRDIV}
209 - {id: MCG_C1_IRCLKEN_CFG, value: Enabled}
210 - {id: MCG_C2_OSC_MODE_CFG, value: ModeOscLowPower}
211 - {id: MCG_C2_RANGE0_CFG, value: Very_high}
212 - {id: MCG_C2_RANGE0_FRDIV_CFG, value: Very_high}
213 - {id: RTCCLKOUTConfig, value: 'yes'}
214 - {id: RTC_CR_OSCE_CFG, value: Enabled}
215 - {id: RTC_CR_OSC_CAP_LOAD_CFG, value: SC12PF}
216 - {id: SIM.OSC32KSEL.sel, value: RTC.RTC32KCLK}
217 - {id: SIM.OUTDIV3.scale, value: '1', locked: true}
218 - {id: SIM.OUTDIV4.scale, value: '5'}
219 - {id: SIM.PLLFLLSEL.sel, value: IRC48M.IRC48MCLK}
220 sources:
221 - {id: OSC.OSC.outFreq, value: 8 MHz}
222  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR THE CLOCKS TOOL **/
223 
224 /*******************************************************************************
225  * Variables for BOARD_BootClockVLPR configuration
226  ******************************************************************************/
227 const mcg_config_t mcgConfig_BOARD_BootClockVLPR =
228  {
229  .mcgMode = kMCG_ModeBLPI, /* BLPI - Bypassed Low Power Internal */
230  .irclkEnableMode = kMCG_IrclkEnable, /* MCGIRCLK enabled, MCGIRCLK disabled in STOP mode */
231  .ircs = kMCG_IrcFast, /* Fast internal reference clock selected */
232  .fcrdiv = 0x0U, /* Fast IRC divider: divided by 1 */
233  .frdiv = 0x0U, /* FLL reference clock divider: divided by 32 */
234  .drs = kMCG_DrsLow, /* Low frequency range */
235  .dmx32 = kMCG_Dmx32Default, /* DCO has a default range of 25% */
236  .oscsel = kMCG_OscselOsc, /* Selects System Oscillator (OSCCLK) */
237  .pll0Config =
238  {
239  .enableMode = MCG_PLL_DISABLE, /* MCGPLLCLK disabled */
240  .prdiv = 0x0U, /* PLL Reference divider: divided by 1 */
241  .vdiv = 0x0U, /* VCO divider: multiplied by 24 */
242  },
243  };
244 const sim_clock_config_t simConfig_BOARD_BootClockVLPR =
245  {
246  .pllFllSel = SIM_PLLFLLSEL_IRC48MCLK_CLK, /* PLLFLL select: IRC48MCLK clock */
247  .er32kSrc = SIM_OSC32KSEL_RTC32KCLK_CLK, /* OSC32KSEL select: RTC32KCLK clock (32.768kHz) */
248  .clkdiv1 = 0x40000U, /* SIM_CLKDIV1 - OUTDIV1: /1, OUTDIV2: /1, OUTDIV3: /1, OUTDIV4: /5 */
249  };
250 const osc_config_t oscConfig_BOARD_BootClockVLPR =
251  {
252  .freq = 0U, /* Oscillator frequency: 0Hz */
253  .capLoad = (OSC_CAP0P), /* Oscillator capacity load: 0pF */
254  .workMode = kOSC_ModeOscLowPower, /* Oscillator low power */
255  .oscerConfig =
256  {
257  .enableMode = OSC_ER_CLK_DISABLE, /* Disable external reference clock */
258  .erclkDiv = 0, /* Divider for OSCERCLK: divided by 1 */
259  }
260  };
261 
262 /*******************************************************************************
263  * Code for BOARD_BootClockVLPR configuration
264  ******************************************************************************/
266 {
267  /* Set the system clock dividers in SIM to safe value. */
268  CLOCK_SetSimSafeDivs();
269  /* Set MCG to BLPI mode. */
270  CLOCK_BootToBlpiMode(mcgConfig_BOARD_BootClockVLPR.fcrdiv,
272  mcgConfig_BOARD_BootClockVLPR.irclkEnableMode);
273  /* Set the clock configuration in SIM module. */
274  CLOCK_SetSimConfig(&simConfig_BOARD_BootClockVLPR);
275  /* Set VLPR power mode. */
276  SMC_SetPowerModeProtection(SMC, kSMC_AllowPowerModeAll);
277 #if (defined(FSL_FEATURE_SMC_HAS_LPWUI) && FSL_FEATURE_SMC_HAS_LPWUI)
278  SMC_SetPowerModeVlpr(SMC, false);
279 #else
281 #endif
282  while (SMC_GetPowerModeState(SMC) != kSMC_PowerStateVlpr)
283  {
284  }
285  /* Set SystemCoreClock variable. */
287 }
288 
289 /*******************************************************************************
290  ********************* Configuration BOARD_BootClockHSRUN **********************
291  ******************************************************************************/
292 /* TEXT BELOW IS USED AS SETTING FOR THE CLOCKS TOOL *****************************
293 !!Configuration
294 name: BOARD_BootClockHSRUN
295 outputs:
296 - {id: Bus_clock.outFreq, value: 60 MHz}
297 - {id: Core_clock.outFreq, value: 120 MHz}
298 - {id: Flash_clock.outFreq, value: 24 MHz}
299 - {id: FlexBus_clock.outFreq, value: 30 MHz}
300 - {id: LPO_clock.outFreq, value: 1 kHz}
301 - {id: MCGFFCLK.outFreq, value: 250 kHz}
302 - {id: MCGIRCLK.outFreq, value: 32.768 kHz}
303 - {id: OSCERCLK.outFreq, value: 8 MHz}
304 - {id: OSCERCLK_UNDIV.outFreq, value: 8 MHz}
305 - {id: PLLFLLCLK.outFreq, value: 120 MHz}
306 - {id: System_clock.outFreq, value: 120 MHz}
307 settings:
308 - {id: MCGMode, value: PEE}
309 - {id: powerMode, value: HSRUN}
310 - {id: MCG.FCRDIV.scale, value: '1', locked: true}
311 - {id: MCG.FRDIV.scale, value: '32'}
312 - {id: MCG.IREFS.sel, value: MCG.FRDIV}
313 - {id: MCG.PLLS.sel, value: MCG.PLL}
314 - {id: MCG.PRDIV.scale, value: '2', locked: true}
315 - {id: MCG.VDIV.scale, value: '30', locked: true}
316 - {id: MCG_C1_IRCLKEN_CFG, value: Enabled}
317 - {id: MCG_C2_OSC_MODE_CFG, value: ModeOscLowPower}
318 - {id: MCG_C2_RANGE0_CFG, value: Very_high}
319 - {id: MCG_C2_RANGE0_FRDIV_CFG, value: Very_high}
320 - {id: OSC_CR_ERCLKEN_CFG, value: Enabled}
321 - {id: OSC_CR_ERCLKEN_UNDIV_CFG, value: Enabled}
322 - {id: RTC_CR_OSCE_CFG, value: Enabled}
323 - {id: RTC_CR_OSC_CAP_LOAD_CFG, value: SC12PF}
324 - {id: SIM.LPUARTSRCSEL.sel, value: OSC.OSCERCLK}
325 - {id: SIM.OSC32KSEL.sel, value: RTC.RTC32KCLK}
326 - {id: SIM.OUTDIV2.scale, value: '2'}
327 - {id: SIM.OUTDIV3.scale, value: '4'}
328 - {id: SIM.OUTDIV4.scale, value: '5'}
329 - {id: SIM.PLLFLLSEL.sel, value: MCG.MCGPLLCLK}
330 - {id: SIM.RTCCLKOUTSEL.sel, value: RTC.RTC32KCLK}
331 - {id: SIM.USBDIV.scale, value: '5'}
332 - {id: SIM.USBFRAC.scale, value: '2'}
333 - {id: SIM.USBSRCSEL.sel, value: SIM.USBDIV}
334 sources:
335 - {id: OSC.OSC.outFreq, value: 8 MHz, enabled: true}
336  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR THE CLOCKS TOOL **/
337 
338 /*******************************************************************************
339  * Variables for BOARD_BootClockHSRUN configuration
340  ******************************************************************************/
341 const mcg_config_t mcgConfig_BOARD_BootClockHSRUN =
342  {
343  .mcgMode = kMCG_ModePEE, /* PEE - PLL Engaged External */
344  .irclkEnableMode = kMCG_IrclkEnable, /* MCGIRCLK enabled, MCGIRCLK disabled in STOP mode */
345  .ircs = kMCG_IrcSlow, /* Slow internal reference clock selected */
346  .fcrdiv = 0x0U, /* Fast IRC divider: divided by 1 */
347  .frdiv = 0x0U, /* FLL reference clock divider: divided by 32 */
348  .drs = kMCG_DrsLow, /* Low frequency range */
349  .dmx32 = kMCG_Dmx32Default, /* DCO has a default range of 25% */
350  .oscsel = kMCG_OscselOsc, /* Selects System Oscillator (OSCCLK) */
351  .pll0Config =
352  {
353  .enableMode = MCG_PLL_DISABLE, /* MCGPLLCLK disabled */
354  .prdiv = 0x1U, /* PLL Reference divider: divided by 2 */
355  .vdiv = 0x6U, /* VCO divider: multiplied by 30 */
356  },
357  };
358 const sim_clock_config_t simConfig_BOARD_BootClockHSRUN =
359  {
360  .pllFllSel = SIM_PLLFLLSEL_MCGPLLCLK_CLK, /* PLLFLL select: MCGPLLCLK clock */
361  .er32kSrc = SIM_OSC32KSEL_RTC32KCLK_CLK, /* OSC32KSEL select: RTC32KCLK clock (32.768kHz) */
362  .clkdiv1 = 0x1340000U, /* SIM_CLKDIV1 - OUTDIV1: /1, OUTDIV2: /2, OUTDIV3: /4, OUTDIV4: /5 */
363  };
364 const osc_config_t oscConfig_BOARD_BootClockHSRUN =
365  {
366  .freq = 8000000U, /* Oscillator frequency: 8000000Hz */
367  .capLoad = (OSC_CAP0P), /* Oscillator capacity load: 0pF */
368  .workMode = kOSC_ModeOscLowPower, /* Oscillator low power */
369  .oscerConfig =
370  {
371  .enableMode = kOSC_ErClkEnable, /* Enable external reference clock, disable external reference clock in STOP mode */
372  .erclkDiv = 0, /* Divider for OSCERCLK: divided by 1 */
373  }
374  };
375 
376 /*******************************************************************************
377  * Code for BOARD_BootClockHSRUN configuration
378  ******************************************************************************/
380 {
381  /* Set HSRUN power mode */
382  SMC_SetPowerModeProtection(SMC, kSMC_AllowPowerModeAll);
383  SMC_SetPowerModeHsrun(SMC);
384  while (SMC_GetPowerModeState(SMC) != kSMC_PowerStateHsrun)
385  {
386  }
387  /* Set the system clock dividers in SIM to safe value. */
388  CLOCK_SetSimSafeDivs();
389  /* Initializes OSC0 according to board configuration. */
390  CLOCK_InitOsc0(&oscConfig_BOARD_BootClockHSRUN);
391  CLOCK_SetXtal0Freq(oscConfig_BOARD_BootClockHSRUN.freq);
392  /* Configure the Internal Reference clock (MCGIRCLK). */
393  CLOCK_SetInternalRefClkConfig(mcgConfig_BOARD_BootClockHSRUN.irclkEnableMode,
396  /* Configure FLL external reference divider (FRDIV). */
397  CLOCK_CONFIG_SetFllExtRefDiv(mcgConfig_BOARD_BootClockHSRUN.frdiv);
398  /* Set MCG to PEE mode. */
399  CLOCK_BootToPeeMode(mcgConfig_BOARD_BootClockHSRUN.oscsel,
400  kMCG_PllClkSelPll0,
401  &mcgConfig_BOARD_BootClockHSRUN.pll0Config);
402  /* Set the clock configuration in SIM module. */
403  CLOCK_SetSimConfig(&simConfig_BOARD_BootClockHSRUN);
404  /* Set SystemCoreClock variable. */
406 }
407 
#define BOARD_BOOTCLOCKHSRUN_CORE_CLOCK
Definition: clock_config.h:95
const mcg_config_t mcgConfig_BOARD_BootClockHSRUN
MCG set for BOARD_BootClockHSRUN configuration.
Definition: clock_config.c:341
void BOARD_BootClockVLPR(void)
This function executes configuration of clocks.
Definition: clock_config.c:266
status_t SMC_SetPowerModeVlpr(void *arg)
Configures the system to VLPR power mode. API name used from Kinetis family to maintain compatibility...
Definition: lpc54114.c:169
const sim_clock_config_t simConfig_BOARD_BootClockHSRUN
SIM module set for BOARD_BootClockHSRUN configuration.
Definition: clock_config.c:358
#define SMC
Definition: lpc54114.h:118
#define OSC_CAP0P
Definition: clock_config.c:53
const sim_clock_config_t simConfig_BOARD_BootClockRUN
SIM module set for BOARD_BootClockRUN configuration.
Definition: clock_config.c:148
const osc_config_t oscConfig_BOARD_BootClockRUN
OSC set for BOARD_BootClockRUN configuration.
Definition: clock_config.c:154
const osc_config_t oscConfig_BOARD_BootClockVLPR
OSC set for BOARD_BootClockVLPR configuration.
Definition: clock_config.c:252
#define SIM_PLLFLLSEL_IRC48MCLK_CLK
Definition: clock_config.c:56
#define SIM_OSC32KSEL_RTC32KCLK_CLK
Definition: clock_config.c:55
#define SIM_PLLFLLSEL_MCGPLLCLK_CLK
Definition: clock_config.c:57
const mcg_config_t mcgConfig_BOARD_BootClockVLPR
MCG set for BOARD_BootClockVLPR configuration.
Definition: clock_config.c:229
const sim_clock_config_t simConfig_BOARD_BootClockVLPR
SIM module set for BOARD_BootClockVLPR configuration.
Definition: clock_config.c:246
#define OSC_ER_CLK_DISABLE
Definition: clock_config.c:54
uint32_t SystemCoreClock
const mcg_config_t mcgConfig_BOARD_BootClockRUN
MCG set for BOARD_BootClockRUN configuration.
Definition: clock_config.c:131
void BOARD_BootClockHSRUN(void)
This function executes configuration of clocks.
Definition: clock_config.c:379
void BOARD_BootClockRUN(void)
This function executes configuration of clocks.
Definition: clock_config.c:168
const osc_config_t oscConfig_BOARD_BootClockHSRUN
OSC set for BOARD_BootClockHSRUN configuration.
Definition: clock_config.c:364
#define BOARD_BOOTCLOCKVLPR_CORE_CLOCK
Definition: clock_config.h:60
#define MCG_PLL_DISABLE
Definition: clock_config.c:52
#define BOARD_BOOTCLOCKRUN_CORE_CLOCK
Definition: clock_config.h:25