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