Clock Initialization
Description
Initialize the clock tree.
Automatically configures the clock tree to use the appropriate high- and low-frequency clock sources depending on which other device initialization components are present.
High Frequency Clocks
If the DPLL or HFRCO device init components are present, the HFRCO oscillator is used as the clock source for high frequency clock trees. Otherwise, if the HFXO device init component is present, the HFXO oscillator is used. If no high frequency oscillator device init component is present, the HFRCO oscillator is used with its default settings.
Low Frequency Clocks
If the LFXO device init component is present, the LFXO oscillator is used as the clock source for low frequency clock trees. Otherwise, the LFRCO oscillator is used.
Functions |
|
sl_status_t | sl_device_init_clocks (void) |
Configure the clock tree and enable clocks.
|
|
Function Documentation
◆ sl_device_init_clocks()
sl_status_t sl_device_init_clocks | ( | void |
|
) |
Configure the clock tree and enable clocks.
Automatically configures the clock tree to use the appropriate HF and LF clock sources depending on which other device initialization components are present.
- Returns
- Status code
- Return values
-
SL_STATUS_OK
Clock tree configured successfully