clock_config_t Struct Reference

Clock configuration for Kinetis CPUs. More...

Detailed Description

Clock configuration for Kinetis CPUs.

Definition at line 411 of file kinetis/include/periph_cpu.h.

#include </tmp/RIOT/cpu/kinetis/include/periph_cpu.h>

Data Fields

uint32_t clkdiv1
 Clock divider bitfield setting, see reference manual for SIM_CLKDIV1.
 
kinetis_mcg_mode_t default_mode
 MCG mode used after initialization, see kinetis_mcg_mode_t.
 
kinetis_mcg_erc_range_t erc_range
 ERC range setting, see kinetis_mcg_erc_range_t.
 
uint8_t fcrdiv
 Fast internal reference clock divider, see reference manual for MCG_SC[FCRDIV].
 
uint8_t oscsel
 Oscillator selection, see reference manual for MCG_C7[OSCSEL].
 
uint8_t clc
 Capacitor Load configuration bits, see reference manual for OSC_CR.
 
uint8_t fll_frdiv
 FLL ERC divider setting, see reference manual for MCG_C1[FRDIV].
 
kinetis_mcg_fll_t fll_factor_fei
 FLL multiplier when running in FEI mode.
 
kinetis_mcg_fll_t fll_factor_fee
 FLL multiplier when running in FEE mode.
 
uint8_t pll_prdiv
 PLL ERC divider setting, see reference manual for MCG_C5[PRDIV].
 
uint8_t pll_vdiv
 PLL VCO divider setting, see reference manual for MCG_C6[VDIV0].
 
bool enable_oscillator
 External reference clock selection. More...
 
bool select_fast_irc
 Use fast internal reference clock for MCGIRCLK. More...
 
bool enable_mcgirclk
 Enable MCGIRCLK output from MCG for use as alternate clock in some modules.
 

Field Documentation

◆ enable_oscillator

bool clock_config_t::enable_oscillator

External reference clock selection.

True: Use oscillator circuit with external crystal. False: Use external clock signal directly.

Definition at line 442 of file kinetis/include/periph_cpu.h.

◆ select_fast_irc

bool clock_config_t::select_fast_irc

Use fast internal reference clock for MCGIRCLK.

See reference manual for MCG module and MCG_C2[IRCS]

Definition at line 448 of file kinetis/include/periph_cpu.h.


The documentation for this struct was generated from the following file: