41 #define EFM32_LFRCO_FREQ (32768UL)
42 #define EFM32_ULFRCO_FREQ (1000UL)
56 #ifndef EFM32_HFXO_FREQ
57 #define EFM32_HFXO_FREQ (48000000UL)
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;
254 #if (EFM32_HFXO_FREQ > 0)
255 return SystemHFXOClock;
280 #if (EFM32_HFXO_FREQ > 0)
281 SystemHFXOClock = freq;
309 #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
311 SCB->CPACR |= ((3UL << 10*2) |
349 return EFM32_ULFRCO_FREQ;
366 #if (EFM32_LFXO_FREQ > 0)
367 return SystemLFXOClock;
392 #if (EFM32_LFXO_FREQ > 0)
393 SystemLFXOClock = freq;
#define CMU_HFRCOCTRL_BAND_7MHZ
#define CMU_HFRCOCTRL_BAND_14MHZ
#define _CMU_CTRL_HFCLKDIV_SHIFT
void SystemLFXOClockSet(uint32_t freq)
Set low frequency crystal oscillator clock frequency for target system.
uint32_t SystemCoreClockGet(void)
Get the current core clock frequency.
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
#define CMU_HFRCOCTRL_BAND_1MHZ
uint32_t SystemHFClockGet(void)
Get the current HFCLK frequency.
#define _CMU_CTRL_HFCLKDIV_MASK
#define _CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT
void SystemHFXOClockSet(uint32_t freq)
Set high frequency crystal oscillator clock frequency for target system.
uint32_t SystemLFRCOClockGet(void)
Get low frequency RC oscillator clock frequency for target system.
#define CMU_STATUS_LFXOSEL
#define CMU_HFRCOCTRL_BAND_11MHZ
#define _DEVINFO_PART_PROD_REV_SHIFT
uint32_t SystemHFXOClockGet(void)
Get high frequency crystal oscillator clock frequency for target system.
void SystemInit(void)
Initialize the system.
#define CMU_STATUS_LFRCOSEL
uint32_t SystemLFXOClockGet(void)
Get low frequency crystal oscillator clock frequency for target system.
#define _CMU_HFCORECLKDIV_HFCORECLKDIV_MASK
#define CMU_HFRCOCTRL_BAND_21MHZ
#define _DEVINFO_PART_PROD_REV_MASK
uint32_t SystemMaxCoreClockGet(void)
Get the maximum core clock frequency.
#define _CMU_HFRCOCTRL_BAND_MASK
#define CMU_STATUS_HFXOSEL
uint32_t SystemULFRCOClockGet(void)
Get ultra low frequency RC oscillator clock frequency for target system.
#define CMU_STATUS_HFRCOSEL
#define CMU_HFRCOCTRL_BAND_28MHZ
uint32_t SystemCoreClock
System System Clock Frequency (Core Clock).
__STATIC_INLINE uint8_t GetProdRev(void)