41 #define EFM32_LFRCO_FREQ (32768UL)
42 #define EFM32_ULFRCO_FREQ (1000UL)
56 #ifndef EFM32_HFXO_FREQ
57 #define EFM32_HFXO_FREQ (32000000UL)
60 #define EFM32_HFRCO_MAX_FREQ (28000000UL)
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)
150 return (EFM32_HFRCO_MAX_FREQ > EFM32_HFXO_FREQ ? \
151 EFM32_HFRCO_MAX_FREQ : EFM32_HFXO_FREQ);
173 #if (EFM32_LFXO_FREQ > 0)
174 ret = SystemLFXOClock;
187 #if (EFM32_HFXO_FREQ > 0)
188 ret = SystemHFXOClock;
253 #if (EFM32_HFXO_FREQ > 0)
254 return SystemHFXOClock;
279 #if (EFM32_HFXO_FREQ > 0)
280 SystemHFXOClock = freq;
343 return EFM32_ULFRCO_FREQ;
360 #if (EFM32_LFXO_FREQ > 0)
361 return SystemLFXOClock;
386 #if (EFM32_LFXO_FREQ > 0)
387 SystemLFXOClock = freq;
uint32_t SystemLFXOClockGet(void)
Get low frequency crystal oscillator clock frequency for target system.
uint32_t SystemLFRCOClockGet(void)
Get low frequency RC oscillator clock frequency for target system.
void SystemLFXOClockSet(uint32_t freq)
Set low frequency crystal oscillator clock frequency for target system.
__STATIC_INLINE uint8_t GetProdRev(void)
#define CMU_STATUS_LFXOSEL
void SystemHFXOClockSet(uint32_t freq)
Set high frequency crystal oscillator clock frequency for target system.
#define _CMU_HFRCOCTRL_BAND_MASK
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
uint32_t SystemCoreClock
System System Clock Frequency (Core Clock).
uint32_t SystemCoreClockGet(void)
Get the current core clock frequency.
#define _CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT
#define CMU_STATUS_HFXOSEL
#define CMU_HFRCOCTRL_BAND_21MHZ
#define CMU_STATUS_LFRCOSEL
uint32_t SystemHFClockGet(void)
Get the current HFCLK frequency.
uint32_t SystemMaxCoreClockGet(void)
Get the maximum core clock frequency.
#define CMU_HFRCOCTRL_BAND_28MHZ
#define _DEVINFO_PART_PROD_REV_SHIFT
uint32_t SystemHFXOClockGet(void)
Get high frequency crystal oscillator clock frequency for target system.
#define _CMU_HFCORECLKDIV_HFCORECLKDIV_MASK
#define CMU_HFRCOCTRL_BAND_7MHZ
#define CMU_HFRCOCTRL_BAND_1MHZ
void SystemInit(void)
Initialize the system.
#define CMU_HFRCOCTRL_BAND_14MHZ
#define CMU_STATUS_HFRCOSEL
#define CMU_HFRCOCTRL_BAND_11MHZ
uint32_t SystemULFRCOClockGet(void)
Get ultra low frequency RC oscillator clock frequency for target system.
#define _DEVINFO_PART_PROD_REV_MASK