system_efm32pg1b.c File Reference
CMSIS Cortex-M3/M4 System Layer for EFM32 devices.
- Version
- 5.4.0
License
Copyright 2017 Silicon Laboratories, Inc. www.silabs.com
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
-
The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
-
Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
- This notice may not be removed or altered from any source distribution.
DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc. has no obligation to support this Software. Silicon Laboratories, Inc. is providing the Software "AS IS", with no express or implied warranties of any kind, including, but not limited to, any implied warranties of merchantability or fitness for any particular purpose or warranties against infringement of any proprietary rights of a third party.
Silicon Laboratories, Inc. will not be liable for any consequential, incidental, or special damages, or any other relief, or for any claim by any third party, arising from your use of this Software.
Definition in file
system_efm32pg1b.c
.
#include <stdint.h>
#include "
em_device.h
"
Macros |
|
#define | EFM32_HFRCO_MAX_FREQ (38000000UL) |
#define | EFM32_HFRCO_STARTUP_FREQ (19000000UL) |
#define | EFM32_HFXO_FREQ (40000000UL) |
#define | EFM32_LFRCO_FREQ (32768UL) |
#define | EFM32_LFXO_FREQ ( EFM32_LFRCO_FREQ ) |
#define | EFM32_ULFRCO_FREQ (1000UL) |
Functions |
|
uint32_t | SystemCoreClockGet (void) |
Get the current core clock frequency.
|
|
uint32_t | SystemHFClockGet (void) |
Get the current HFCLK frequency.
|
|
uint32_t | SystemHFXOClockGet (void) |
Get high frequency crystal oscillator clock frequency for target system.
|
|
void | SystemHFXOClockSet (uint32_t freq) |
Set high frequency crystal oscillator clock frequency for target system.
|
|
void | SystemInit (void) |
Initialize the system.
|
|
uint32_t | SystemLFRCOClockGet (void) |
Get low frequency RC oscillator clock frequency for target system.
|
|
uint32_t | SystemLFXOClockGet (void) |
Get low frequency crystal oscillator clock frequency for target system.
|
|
void | SystemLFXOClockSet (uint32_t freq) |
Set low frequency crystal oscillator clock frequency for target system.
|
|
uint32_t | SystemMaxCoreClockGet (void) |
Get the maximum core clock frequency.
|
|
uint32_t | SystemULFRCOClockGet (void) |
Get ultra low frequency RC oscillator clock frequency for target system.
|
|
Variables |
|
uint32_t | SystemCoreClock = EFM32_HFRCO_STARTUP_FREQ |
System System Clock Frequency (Core Clock).
|
|
uint32_t | SystemHfrcoFreq = EFM32_HFRCO_STARTUP_FREQ |
System HFRCO frequency.
|
|
Macro Definition Documentation
#define EFM32_HFRCO_MAX_FREQ (38000000UL) |
Maximum HFRCO frequency
Definition at line
59
of file
system_efm32pg1b.c
.
Referenced by SystemMaxCoreClockGet() .
#define EFM32_HFRCO_STARTUP_FREQ (19000000UL) |
HFRCO startup frequency
Definition at line
69
of file
system_efm32pg1b.c
.
#define EFM32_HFXO_FREQ (40000000UL) |
HFXO frequency
Definition at line
64
of file
system_efm32pg1b.c
.
Referenced by SystemMaxCoreClockGet() .
#define EFM32_LFRCO_FREQ (32768UL) |
LFRCO frequency, tuned to below frequency during manufacturing.
Definition at line
41
of file
system_efm32pg1b.c
.
Referenced by SystemHFClockGet() , and SystemLFRCOClockGet() .
#define EFM32_LFXO_FREQ ( EFM32_LFRCO_FREQ ) |
(DO_NOT_INCLUDE_WITH_DOXYGEN) LFXO frequency
Definition at line
82
of file
system_efm32pg1b.c
.
#define EFM32_ULFRCO_FREQ (1000UL) |
ULFRCO frequency
Definition at line
43
of file
system_efm32pg1b.c
.
Referenced by SystemULFRCOClockGet() .