41 #define EFM32_LFRCO_FREQ (32768UL)
42 #define EFM32_ULFRCO_FREQ (1000UL)
56 #ifndef EFM32_HFRCO_MAX_FREQ
57 #define EFM32_HFRCO_MAX_FREQ (38000000UL)
60 #ifndef EFM32_HFXO_FREQ
61 #define EFM32_HFXO_FREQ (40000000UL)
64 #ifndef EFM32_HFRCO_STARTUP_FREQ
65 #define EFM32_HFRCO_STARTUP_FREQ (19000000UL)
70 #if (EFM32_HFXO_FREQ > 0UL)
73 static uint32_t SystemHFXOClock = EFM32_HFXO_FREQ;
77 #ifndef EFM32_LFXO_FREQ
78 #define EFM32_LFXO_FREQ (EFM32_LFRCO_FREQ)
81 #if (EFM32_LFXO_FREQ > 0UL)
84 static uint32_t SystemLFXOClock = 32768UL;
166 return (EFM32_HFRCO_MAX_FREQ > EFM32_HFXO_FREQ ? \
167 EFM32_HFRCO_MAX_FREQ : EFM32_HFXO_FREQ);
188 #if (EFM32_LFXO_FREQ > 0)
189 ret = SystemLFXOClock;
202 #if (EFM32_HFXO_FREQ > 0)
203 ret = SystemHFXOClock;
234 #if (EFM32_HFXO_FREQ > 0)
235 return SystemHFXOClock;
260 #if (EFM32_HFXO_FREQ > 0)
261 SystemHFXOClock = freq;
289 #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
291 SCB->CPACR |= ((3UL << 10*2) |
329 return EFM32_ULFRCO_FREQ;
346 #if (EFM32_LFXO_FREQ > 0)
347 return SystemLFXOClock;
372 #if (EFM32_LFXO_FREQ > 0)
373 SystemLFXOClock = freq;
#define _CMU_HFCOREPRESC_PRESC_SHIFT
uint32_t SystemLFXOClockGet(void)
Get low frequency crystal oscillator clock frequency for target system.
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
#define _CMU_HFPRESC_PRESC_MASK
#define _CMU_HFCLKSTATUS_SELECTED_MASK
void SystemHFXOClockSet(uint32_t freq)
Set high frequency crystal oscillator clock frequency for target system.
uint32_t SystemCoreClock
System System Clock Frequency (Core Clock).
uint32_t SystemHFXOClockGet(void)
Get high frequency crystal oscillator clock frequency for target system.
#define CMU_HFCLKSTATUS_SELECTED_LFXO
uint32_t SystemHFClockGet(void)
Get the current HFCLK frequency.
void SystemInit(void)
Initialize the system.
uint32_t SystemMaxCoreClockGet(void)
Get the maximum core clock frequency.
#define CMU_HFCLKSTATUS_SELECTED_HFXO
uint32_t SystemHfrcoFreq
System HFRCO frequency.
#define _CMU_HFPRESC_PRESC_SHIFT
uint32_t SystemLFRCOClockGet(void)
Get low frequency RC oscillator clock frequency for target system.
#define _CMU_HFCOREPRESC_PRESC_MASK
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.
uint32_t SystemULFRCOClockGet(void)
Get ultra low frequency RC oscillator clock frequency for target system.
#define CMU_HFCLKSTATUS_SELECTED_LFRCO