Device Initialization
Detailed Description
Device Initialization using HAL configuration.
The BSP Device Initialization APIs provide functionality to initialize the device for a specific application and board based on a HAL configuration header file. The BSP Device Initialization module provides APIs that perform
- EFM32/EZR32/EFR32 errata workaround
- DC-to-DC converter initialization on devices with DCDC
- Clock initialization for crystal oscillators and clock selection for HF and LF clock trees
Functions |
|
void | BSP_initBoard (void) |
Initialize board based on HAL configuration.
|
|
void | BSP_initClocks (void) |
Initialize crystal oscillators and configure clock trees.
|
|
void | BSP_initDcdc (void) |
Configure and initialize the DC-to-DC converter.
|
|
void | BSP_initDevice (void) |
Initialize the device using HAL config settings.
|
|
void | BSP_initEmu (void) |
Configure EMU energy modes.
|
|
Function Documentation
void BSP_initBoard | ( | void |
|
) |
Initialize board based on HAL configuration.
Initialize peripherals to communicate with board components
Definition at line
378
of file
bsp_init.c
.
References BSP_Init() , BSP_INIT_IOEXP , BSP_IOEXP_LEDS , BSP_IOEXP_SENSORS , BSP_IOEXP_VCOM , BSP_LedsInit() , BSP_PeripheralAccess() , CMU_ClockEnable() , cmuClock_GPIO , GPIO_PinModeSet() , gpioModePushPull , i2cInit() , I2CSPM_Init() , and RETARGET_SerialInit() .
void BSP_initClocks | ( | void |
|
) |
Initialize crystal oscillators and configure clock trees.
Initialize HFXO and LFXO crystal oscillators if present. Select clock sources for HF and LF clock trees.
Definition at line
123
of file
bsp_init.c
.
References CMU_LFXOInit_TypeDef::capTune , CMU_ClockSelectSet() , CMU_DPLL_HFXO_TO_80MHZ , CMU_DPLL_LFXO_TO_40MHZ , CMU_DPLLLock() , CMU_HFXOInit() , CMU_LFRCOSetPrecision() , CMU_LFXOInit() , CMU_OscillatorEnable() , cmuClock_EM23GRPACLK , cmuClock_EM4GRPACLK , cmuClock_RTCC , cmuClock_SYSCLK , cmuClock_WDOG0 , cmuClock_WDOG1 , cmuOsc_HFXO , cmuPrecisionHigh , cmuSelect_HFRCODPLL , cmuSelect_HFXO , cmuSelect_LFRCO , cmuSelect_LFXO , cmuSelect_ULFRCO , CMU_HFXOInit_TypeDef::ctuneXiAna , CMU_HFXOInit_TypeDef::ctuneXoAna , SystemHFXOClockSet() , and SystemLFXOClockSet() .
Referenced by BSP_initDevice() .
void BSP_initDcdc | ( | void |
|
) |
Configure and initialize the DC-to-DC converter.
Initialize the DC-to-DC converter if the board is wired for DCDC operation. Power down the DC-to-DC converter if the board is not wired for DCDC operation.
Referenced by BSP_initDevice() .
void BSP_initDevice | ( | void |
|
) |
Initialize the device using HAL config settings.
Perform errata workarounds, DC-to-DC converter initialization and clock initialization and selection
Definition at line
57
of file
bsp_init.c
.
References BSP_initClocks() , BSP_initDcdc() , BSP_initEmu() , and CHIP_Init() .
void BSP_initEmu | ( | void |
|
) |
Configure EMU energy modes.
Configure EM2/3.
Definition at line
99
of file
bsp_init.c
.
References EMU_EM23Init_TypeDef::em23VregFullEn , EMU_EM23Init() , and EMU_EM23INIT_DEFAULT .
Referenced by BSP_initDevice() .