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);
170 #if (EFM32_LFXO_FREQ > 0)
171 ret = SystemLFXOClock;
184 #if (EFM32_HFXO_FREQ > 0)
185 ret = SystemHFXOClock;
193 #if defined(CMU_STATUS_USHFRCODIV2SEL)
247 #if (EFM32_HFXO_FREQ > 0)
248 return SystemHFXOClock;
273 #if (EFM32_HFXO_FREQ > 0)
274 SystemHFXOClock = freq;
337 return EFM32_ULFRCO_FREQ;
354 #if (EFM32_LFXO_FREQ > 0)
355 return SystemLFXOClock;
380 #if (EFM32_LFXO_FREQ > 0)
381 SystemLFXOClock = freq;
#define _CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT
uint32_t SystemCoreClockGet(void)
Get the current core clock frequency.
void SystemLFXOClockSet(uint32_t freq)
Set low frequency crystal oscillator clock frequency for target system.
#define CMU_HFRCOCTRL_BAND_11MHZ
#define CMU_HFRCOCTRL_BAND_1MHZ
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
#define CMU_STATUS_LFXOSEL
#define CMU_STATUS_USHFRCODIV2SEL
#define _CMU_CTRL_HFCLKDIV_SHIFT
#define _CMU_HFRCOCTRL_BAND_MASK
#define CMU_STATUS_HFXOSEL
#define CMU_HFRCOCTRL_BAND_7MHZ
uint32_t SystemLFXOClockGet(void)
Get low frequency crystal oscillator clock frequency for target system.
uint32_t SystemHFClockGet(void)
Get the current HFCLK frequency.
uint32_t SystemHFXOClockGet(void)
Get high frequency crystal oscillator clock frequency for target system.
#define _CMU_CTRL_HFCLKDIV_MASK
#define CMU_STATUS_LFRCOSEL
uint32_t SystemULFRCOClockGet(void)
Get ultra low frequency RC oscillator clock frequency for target system.
void SystemHFXOClockSet(uint32_t freq)
Set high frequency crystal oscillator clock frequency for target system.
uint32_t SystemMaxCoreClockGet(void)
Get the maximum core clock frequency.
uint32_t SystemLFRCOClockGet(void)
Get low frequency RC oscillator clock frequency for target system.
#define _CMU_HFCORECLKDIV_HFCORECLKDIV_MASK
uint32_t SystemCoreClock
System System Clock Frequency (Core Clock).
#define CMU_HFRCOCTRL_BAND_21MHZ
void SystemInit(void)
Initialize the system.
#define CMU_STATUS_HFRCOSEL
#define CMU_HFRCOCTRL_BAND_14MHZ