41 #define EFM32_LFRCO_FREQ (32768UL)
42 #define EFM32_ULFRCO_FREQ (1000UL)
56 #ifndef EFM32_HFXO_FREQ
57 #define EFM32_HFXO_FREQ (24000000UL)
60 #define EFM32_HFRCO_MAX_FREQ (21000000UL)
63 #if (EFM32_HFXO_FREQ > 0)
66 static uint32_t SystemHFXOClock = EFM32_HFXO_FREQ;
70 #ifndef EFM32_LFXO_FREQ
71 #define EFM32_LFXO_FREQ (EFM32_LFRCO_FREQ)
75 #if (EFM32_LFXO_FREQ > 0)
143 return (EFM32_HFRCO_MAX_FREQ > EFM32_HFXO_FREQ ? \
144 EFM32_HFRCO_MAX_FREQ : EFM32_HFXO_FREQ);
166 #if (EFM32_LFXO_FREQ > 0)
167 ret = SystemLFXOClock;
180 #if (EFM32_HFXO_FREQ > 0)
181 ret = SystemHFXOClock;
236 #if (EFM32_HFXO_FREQ > 0)
237 return SystemHFXOClock;
262 #if (EFM32_HFXO_FREQ > 0)
263 SystemHFXOClock = freq;
326 return EFM32_ULFRCO_FREQ;
343 #if (EFM32_LFXO_FREQ > 0)
344 return SystemLFXOClock;
369 #if (EFM32_LFXO_FREQ > 0)
370 SystemLFXOClock = freq;
#define CMU_HFRCOCTRL_BAND_11MHZ
void SystemLFXOClockSet(uint32_t freq)
Set low frequency crystal oscillator clock frequency for target system.
#define CMU_STATUS_LFRCOSEL
#define _CMU_HFCORECLKDIV_HFCORECLKDIV_MASK
#define CMU_STATUS_LFXOSEL
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
#define CMU_STATUS_HFRCOSEL
#define _CMU_HFRCOCTRL_BAND_MASK
#define CMU_HFRCOCTRL_BAND_21MHZ
uint32_t SystemHFClockGet(void)
Get the current HFCLK frequency.
#define CMU_HFRCOCTRL_BAND_14MHZ
uint32_t SystemLFXOClockGet(void)
Get low frequency crystal oscillator clock frequency for target system.
uint32_t SystemHFXOClockGet(void)
Get high frequency crystal oscillator clock frequency for target system.
#define CMU_HFRCOCTRL_BAND_7MHZ
#define _CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT
uint32_t SystemULFRCOClockGet(void)
Get ultra low frequency RC oscillator clock frequency for target system.
#define CMU_STATUS_HFXOSEL
uint32_t SystemLFRCOClockGet(void)
Get low frequency RC oscillator clock frequency for target system.
uint32_t SystemMaxCoreClockGet(void)
Get the maximum core clock frequency.
void SystemHFXOClockSet(uint32_t freq)
Set high frequency crystal oscillator clock frequency for target system.
void SystemInit(void)
Initialize the system.
uint32_t SystemCoreClock
System System Clock Frequency (Core Clock).
uint32_t SystemCoreClockGet(void)
Get the current core clock frequency.
#define CMU_HFRCOCTRL_BAND_1MHZ