71 .prediv = KINETIS_EXT_PLL_DIV,
72 .mult = KINETIS_EXT_PLL_MUL,
88 .prediv = KINETIS_INT_PLL_DIV,
89 .mult = KINETIS_INT_PLL_MUL,
124 }
while (curConfig.
src != sysClkSafeConfigSource.
src);
134 }
while (curConfig.
src != sysClkSafeConfigSource.
src);
162 }
while (curConfig.
src != sysClkConfig->
src);
244 LPUART_SetBaudRate(LPUART0, CLOCK_SYS_GetUartFreq(UART0_IDX), KINETIS_UART_FREQUENCY);
const scg_spll_config_t g_scgSysPllConfig_EXT_BOARD_BootClockRUN
static kinetis_clock_type_e clockType
void ke1xf_clock_init(kinetis_clock_type_e ct)
This function executes the configuration of clocks.
const scg_firc_config_t g_scgFircConfig_EXT_BOARD_BootClockRUN
static void setClockConfig(kinetis_clock_type_e ct)
const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockRUN
const scg_firc_config_t g_scgFircConfig_INT_BOARD_BootClockRUN
static void CLOCK_CONFIG_FircSafeConfig(const scg_firc_config_t *fircConfig)
const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockRUN
const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockRUN_HS
kinetis_clock_type_e ke1xf_clock_get_current_type(void)
static bool ke1xf_clock_is_high_speed(kinetis_clock_type_e ct)
const scg_spll_config_t g_scgSysPllConfig_INT_BOARD_BootClockRUN
static bool ke1xf_clock_is_external(kinetis_clock_type_e ct)
const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockRUN
kinetis_clock_type_e
Kinetis Clock Type.
@ kinetis_clock_default_firc
@ kinetis_clock_ext_osc_hs
@ kinetis_clock_int_osc_hs
static void CLOCK_SetRunModeSysClkConfig(const scg_sys_clk_config_t *config)
Sets the system clock configuration for RUN mode.
static void CLOCK_SetXtal0Freq(uint32_t freq)
Sets the XTAL0 frequency based on board settings.
static void CLOCK_SetIpSrc(clock_ip_name_t name, clock_ip_src_t src)
Set the clock source for specific IP module.
static void CLOCK_GetCurSysClkConfig(scg_sys_clk_config_t *config)
Gets the system clock configuration in the current power mode.
static void CLOCK_SetHsrunModeSysClkConfig(const scg_sys_clk_config_t *config)
Sets the system clock configuration for HSRUN mode.
status_t CLOCK_InitSirc(const scg_sirc_config_t *config)
Initializes the SCG slow IRC clock.
status_t CLOCK_InitFirc(const scg_firc_config_t *config)
Initializes the SCG fast IRC clock.
status_t CLOCK_InitSysPll(const scg_spll_config_t *config)
Initializes the SCG system PLL.
status_t CLOCK_InitSysOsc(const scg_sosc_config_t *config)
Initializes the SCG system OSC.
@ kSCG_SircEnableInLowPower
@ kSCG_SysOscMonitorDisable
@ kSCG_FircDisableRegulator
@ kSCG_SysPllMonitorDisable
@ kCLOCK_IpSrcSysPllAsync
status_t LPUART_SetBaudRate(LPUART_Type *base, uint32_t baudRate_Bps, uint32_t srcClock_Hz)
Sets the LPUART instance baudrate.
static void SMC_SetPowerModeProtection(SMC_Type *base, uint8_t allowedModes)
Configures all power mode protection settings.
static smc_power_state_t SMC_GetPowerModeState(SMC_Type *base)
Gets the current power mode status.
status_t SMC_SetPowerModeRun(SMC_Type *base)
Configures the system to RUN power mode.
status_t SMC_SetPowerModeHsrun(SMC_Type *base)
Configures the system to HSRUN power mode.
SCG fast IRC clock configuration.
SCG slow IRC clock configuration.
SCG system OSC configuration.
SCG system PLL configuration.
SCG system clock configuration.