EFR32BG21

Data Structures

union tVectorEntry

Functions

void ACMP0_IRQHandler (void)
void ACMP1_IRQHandler (void)
void AES_IRQHandler (void)
void AGC_IRQHandler (void)
void BUFC_IRQHandler (void)
void BURTC_IRQHandler (void)
void BusFault_Handler (void)
void CMU_IRQHandler (void)
void DebugMon_Handler (void)
void DPLL0_IRQHandler (void)
void EMU_IRQHandler (void)
EMU Interrupt Handler.
void EMUDG_IRQHandler (void)
void EMUSE_IRQHandler (void)
void FRC_IRQHandler (void)
void FRC_PRI_IRQHandler (void)
void GPIO_EVEN_IRQHandler (void)
void GPIO_ODD_IRQHandler (void)
void HardFault_Handler (void)
void HFRCO0_IRQHandler (void)
void HFRCOEM23_IRQHandler (void)
void HFXO00_IRQHandler (void)
void I2C0_IRQHandler (void)
void I2C1_IRQHandler (void)
void IADC_IRQHandler (void)
void ICACHE0_IRQHandler (void)
void KERNEL0_IRQHandler (void)
void KERNEL1_IRQHandler (void)
void LDMA_IRQHandler (void)
void LETIMER0_IRQHandler (void)
void LFRCO_IRQHandler (void)
void LFXO_IRQHandler (void)
void M33CTI0_IRQHandler (void)
void M33CTI1_IRQHandler (void)
void MemManage_Handler (void)
void MODEM_IRQHandler (void)
void MSC_IRQHandler (void)
void NMI_Handler (void)
void PendSV_Handler (void)
void PRORTC_IRQHandler (void)
void PROTIMER_IRQHandler (void)
void RAC_RSM_IRQHandler (void)
void RAC_SEQ_IRQHandler (void)
void Reset_Handler (void)
void RTCC_IRQHandler (void)
void SEMBRX_IRQHandler (void)
void SEMBTX_IRQHandler (void)
void SETAMPERHOST_IRQHandler (void)
void SMU_PRIVILEGED_IRQHandler (void)
void SMU_SECURE_IRQHandler (void)
void SVC_Handler (void)
void SW0_IRQHandler (void)
void SW1_IRQHandler (void)
void SW2_IRQHandler (void)
void SW3_IRQHandler (void)
void SYNTH_IRQHandler (void)
void SYSCFG_IRQHandler (void)
uint32_t SystemCLKIN0Get (void)
Get current CLKIN0 frequency.
static __INLINE uint32_t SystemCoreClockGet (void)
Update CMSIS SystemCoreClock variable.
static __INLINE void SystemCoreClockUpdate (void)
Update CMSIS SystemCoreClock variable.
uint32_t SystemFSRCOClockGet (void)
Get FSRCO frequency.
uint32_t SystemHCLKGet (void)
Get the current system core clock frequency (HCLK).
uint32_t SystemHFRCODPLLClockGet (void)
Get current HFRCODPLL frequency.
void SystemHFRCODPLLClockSet (uint32_t freq)
Set HFRCODPLL frequency value.
uint32_t SystemHFRCOEM23ClockGet (void)
Get current HFRCOEM23 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 SystemSYSCLKGet (void)
Get the current system clock frequency (SYSCLK).
uint32_t SystemULFRCOClockGet (void)
Get ultra low frequency RC oscillator clock frequency for target system.
void SysTick_Handler (void)
Interrupt Service Routine for system tick counter.
void TIMER0_IRQHandler (void)
TIMER0 interrupt handler.
void TIMER1_IRQHandler (void)
void TIMER2_IRQHandler (void)
void TIMER3_IRQHandler (void)
void ULFRCO_IRQHandler (void)
void UsageFault_Handler (void)
void USART0_RX_IRQHandler (void)
void USART0_TX_IRQHandler (void)
void USART1_RX_IRQHandler (void)
void USART1_TX_IRQHandler (void)
void USART2_RX_IRQHandler (void)
void USART2_TX_IRQHandler (void)
void WDOG0_IRQHandler (void)
void WDOG1_IRQHandler (void)

Variables

uint32_t SystemCoreClock
System System Clock Frequency (Core Clock).
uint32_t SystemHfrcoFreq

Function Documentation

void ACMP0_IRQHandler ( void )

ACMP0 IRQ Handler

void ACMP1_IRQHandler ( void )

ACMP1 IRQ Handler

void AES_IRQHandler ( void )

AES IRQ Handler

void AGC_IRQHandler ( void )

AGC IRQ Handler

void BUFC_IRQHandler ( void )

BUFC IRQ Handler

void BURTC_IRQHandler ( void )

BURTC IRQ Handler

void BusFault_Handler ( void )

Bus Fault Handler

void CMU_IRQHandler ( void )

CMU IRQ Handler

void DebugMon_Handler ( void )

Debug Monitor Handler

void DPLL0_IRQHandler ( void )

DPLL0 IRQ Handler

void EMU_IRQHandler ( void )

EMU Interrupt Handler.

EMU IRQ Handler

The EMU_IRQHandler provided by TEMPDRV will call TEMPDRV_IRQ_Handler. Configure EMU_CUSTOM_IRQ_HANDLER = true if the application wants to implement its own EMU_IRQHandler. This is typically needed if one of the non-temperature related EMU interrupt flags are in use.

Definition at line 100 of file tempdrv.c .

References TEMPDRV_IRQHandler() .

void EMUDG_IRQHandler ( void )

EMUDG IRQ Handler

void EMUSE_IRQHandler ( void )

EMUSE IRQ Handler

void FRC_IRQHandler ( void )

FRC IRQ Handler

void FRC_PRI_IRQHandler ( void )

FRC_PRI IRQ Handler

void GPIO_EVEN_IRQHandler ( void )

GPIO_EVEN IRQ Handler

Referenced by GPIOINT_CallbackRegister() .

void GPIO_ODD_IRQHandler ( void )

GPIO_ODD IRQ Handler

Referenced by GPIOINT_CallbackRegister() .

void HardFault_Handler ( void )

Hard Fault Handler

void HFRCO0_IRQHandler ( void )

HFRCO0 IRQ Handler

void HFRCOEM23_IRQHandler ( void )

HFRCOEM23 IRQ Handler

void HFXO00_IRQHandler ( void )

HFXO00 IRQ Handler

void I2C0_IRQHandler ( void )

I2C0 IRQ Handler

void I2C1_IRQHandler ( void )

I2C1 IRQ Handler

void IADC_IRQHandler ( void )

IADC IRQ Handler

void ICACHE0_IRQHandler ( void )

ICACHE0 IRQ Handler

void KERNEL0_IRQHandler ( void )

KERNEL0 IRQ Handler

void KERNEL1_IRQHandler ( void )

KERNEL1 IRQ Handler

void LDMA_IRQHandler ( void )

LDMA IRQ Handler

void LETIMER0_IRQHandler ( void )

LETIMER0 IRQ Handler

void LFRCO_IRQHandler ( void )

LFRCO IRQ Handler

void LFXO_IRQHandler ( void )

LFXO IRQ Handler

void M33CTI0_IRQHandler ( void )

M33CTI0 IRQ Handler

void M33CTI1_IRQHandler ( void )

M33CTI1 IRQ Handler

void MemManage_Handler ( void )

MPU Fault Handler

MemManage exception handler.

Definition at line 341 of file sl_mpu.c .

References mpu_fault_handler() .

void MODEM_IRQHandler ( void )

MODEM IRQ Handler

void MSC_IRQHandler ( void )

MSC IRQ Handler

void NMI_Handler ( void )

NMI Handler

void PendSV_Handler ( void )

PendSV Handler

void PRORTC_IRQHandler ( void )

PRORTC IRQ Handler

void PROTIMER_IRQHandler ( void )

PROTIMER IRQ Handler

void RAC_RSM_IRQHandler ( void )

RAC_RSM IRQ Handler

void RAC_SEQ_IRQHandler ( void )

RAC_SEQ IRQ Handler

void Reset_Handler ( void )

Reset Handler

void RTCC_IRQHandler ( void )

RTCC IRQ Handler

Definition at line 137 of file sl_sleeptimer_hal_rtcc.c .

References CORE_DECLARE_IRQ_STATE , CORE_ENTER_ATOMIC , CORE_EXIT_ATOMIC , RTCC_IntClear() , and RTCC_IntGet() .

void SEMBRX_IRQHandler ( void )

SEMBRX IRQ Handler

void SEMBTX_IRQHandler ( void )

SEMBTX IRQ Handler

void SETAMPERHOST_IRQHandler ( void )

SETAMPERHOST IRQ Handler

void SMU_PRIVILEGED_IRQHandler ( void )

SMU_PRIVILEGED IRQ Handler

void SMU_SECURE_IRQHandler ( void )

SMU_SECURE IRQ Handler

void SVC_Handler ( void )

SVCall Handler

void SW0_IRQHandler ( void )

SW0 IRQ Handler

void SW1_IRQHandler ( void )

SW1 IRQ Handler

void SW2_IRQHandler ( void )

SW2 IRQ Handler

void SW3_IRQHandler ( void )

SW3 IRQ Handler

void SYNTH_IRQHandler ( void )

SYNTH IRQ Handler

void SYSCFG_IRQHandler ( void )

SYSCFG IRQ Handler

uint32_t SystemCLKIN0Get ( void )

Get current CLKIN0 frequency.

Note
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Returns
CLKIN0 frequency in Hz.

Definition at line 442 of file system_efr32bg21.c .

Referenced by dpllRefClkGet() .

static __INLINE uint32_t SystemCoreClockGet ( void )
static

Update CMSIS SystemCoreClock variable.

CMSIS defines a global variable SystemCoreClock that shall hold the core frequency in Hz. If the core frequency is dynamically changed, the variable must be kept updated in order to be CMSIS compliant.

Notice that only if changing the core clock frequency through the EMLIB CMU API, this variable will be kept updated. This function is only provided for CMSIS compliance and if a user modifies the the core clock outside the EMLIB CMU API.

Definition at line 173 of file system_efr32bg21.h .

References SystemHCLKGet() .

Referenced by CMU_ClockDivSet() , CMU_ClockSelectSet() , CMU_DPLLLock() , CMU_HFRCODPLLBandSet() , TFT_AddressMappedInit() , and TFT_DirectInit() .

static __INLINE void SystemCoreClockUpdate ( void )
static

Update CMSIS SystemCoreClock variable.

CMSIS defines a global variable SystemCoreClock that shall hold the core frequency in Hz. If the core frequency is dynamically changed, the variable must be kept updated in order to be CMSIS compliant.

Notice that only if changing the core clock frequency through the EMLIB CMU API, this variable will be kept updated. This function is only provided for CMSIS compliance and if a user modifies the the core clock outside the EMLIB CMU API.

Definition at line 192 of file system_efr32bg21.h .

References SystemHCLKGet() .

Referenced by CAPLESENSE_setupCMU() , EMU_EnterEM2() , and EMU_EnterEM3() .

uint32_t SystemFSRCOClockGet ( void )

Get FSRCO frequency.

Note
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Returns
FSRCO frequency in Hz.

Definition at line 458 of file system_efr32bg21.c .

Referenced by em01GrpaClkGet() , and iadcClkGet() .

uint32_t SystemHCLKGet ( void )

Get the current system core clock frequency (HCLK).

Calculate and get the current core clock frequency based on the current configuration. Assuming that the SystemCoreClock global variable is maintained, the core clock frequency is stored in that variable as well. This function will however calculate the core clock based on actual HW configuration. It will also update the SystemCoreClock global variable.

Note
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Returns
The current core clock (HCLK) frequency in Hz.

Definition at line 225 of file system_efr32bg21.c .

References SystemCoreClock , and SystemSYSCLKGet() .

Referenced by CMU_ClockFreqGet() , SystemCoreClockGet() , SystemCoreClockUpdate() , SystemHFXOClockSet() , and wdog0ClkGet() .

uint32_t SystemHFRCODPLLClockGet ( void )

Get current HFRCODPLL frequency.

Note
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Returns
HFRCODPLL frequency in Hz.

Definition at line 330 of file system_efr32bg21.c .

Referenced by CMU_DPLLLock() , CMU_HFRCODPLLBandGet() , CMU_HFRCODPLLBandSet() , em01GrpaClkGet() , and SystemSYSCLKGet() .

void SystemHFRCODPLLClockSet ( uint32_t freq )

Set HFRCODPLL frequency value.

Note
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Parameters
[in] freq HFRCODPLL frequency in Hz.

Definition at line 422 of file system_efr32bg21.c .

Referenced by CMU_DPLLLock() , and CMU_HFRCODPLLBandSet() .

uint32_t SystemHFRCOEM23ClockGet ( void )

Get current HFRCOEM23 frequency.

Note
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Returns
HFRCOEM23 frequency in Hz.

Definition at line 474 of file system_efr32bg21.c .

Referenced by CMU_HFRCOEM23BandGet() , em01GrpaClkGet() , and iadcClkGet() .

uint32_t SystemHFXOClockGet ( void )

Get high frequency crystal oscillator clock frequency for target system.

Note
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Returns
HFXO frequency in Hz. 0 if the external crystal oscillator is not present.

Definition at line 272 of file system_efr32bg21.c .

Referenced by CMU_LFRCOSetPrecision() , dpllRefClkGet() , and em01GrpaClkGet() .

void SystemHFXOClockSet ( uint32_t freq )

Set high frequency crystal oscillator clock frequency for target system.

Note
This function is mainly provided for being able to handle target systems with different HF crystal oscillator frequencies run-time. If used, it should probably only be used once during system startup.
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Parameters
[in] freq HFXO frequency in Hz used for target.

Definition at line 302 of file system_efr32bg21.c .

References SystemHCLKGet() .

Referenced by BSP_initClocks() .

void SystemInit ( void )

Initialize the system.

Do required generic HW system init.

Note
This function is invoked during system init, before the main() routine and any data has been initialized. For this reason, it cannot do any initialization of variables etc.

Definition at line 138 of file system_efr32bg21.c .

uint32_t SystemLFRCOClockGet ( void )

Get low frequency RC oscillator clock frequency for target system.

Note
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Returns
LFRCO frequency in Hz.

Definition at line 542 of file system_efr32bg21.c .

Referenced by em23GrpaClkGet() , em4GrpaClkGet() , rtccClkGet() , and wdog0ClkGet() .

uint32_t SystemLFXOClockGet ( void )

Get low frequency crystal oscillator clock frequency for target system.

Note
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Returns
LFXO frequency in Hz.

Definition at line 575 of file system_efr32bg21.c .

Referenced by dpllRefClkGet() , em23GrpaClkGet() , em4GrpaClkGet() , rtccClkGet() , and wdog0ClkGet() .

void SystemLFXOClockSet ( uint32_t freq )

Set low frequency crystal oscillator clock frequency for target system.

Note
This function is mainly provided for being able to handle target systems with different HF crystal oscillator frequencies run-time. If used, it should probably only be used once during system startup.
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Parameters
[in] freq LFXO frequency in Hz used for target.

Definition at line 605 of file system_efr32bg21.c .

Referenced by BSP_initClocks() .

uint32_t SystemMaxCoreClockGet ( void )

Get the maximum core clock frequency.

Note
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Returns
The maximum core clock frequency in Hz.

Definition at line 255 of file system_efr32bg21.c .

Referenced by waitStateMax() .

uint32_t SystemSYSCLKGet ( void )

Get the current system clock frequency (SYSCLK).

Calculate and get the current core clock frequency based on the current hardware configuration.

Note
This is an EFR32BG21 specific function, not part of the CMSIS definition.
Returns
Current system clock (SYSCLK) frequency in Hz.

Definition at line 169 of file system_efr32bg21.c .

References SystemHFRCODPLLClockGet() .

Referenced by CMU_ClockFreqGet() , and SystemHCLKGet() .

uint32_t SystemULFRCOClockGet ( void )

Get ultra low frequency RC oscillator clock frequency for target system.

Note
This is a EFR32BG21 specific function, not part of the CMSIS definition.
Returns
ULFRCO frequency in Hz.

Definition at line 558 of file system_efr32bg21.c .

Referenced by em23GrpaClkGet() , em4GrpaClkGet() , rtccClkGet() , and wdog0ClkGet() .

void SysTick_Handler ( void )

Interrupt Service Routine for system tick counter.

SysTick Handler

Returns
None

Definition at line 82 of file util.c .

void TIMER0_IRQHandler ( void )

TIMER0 interrupt handler.

TIMER0 IRQ Handler

When TIMER0 expires the number of pulses on TIMER1 is inserted into channelValues. If this values is bigger than what is recorded in channelMaxValues, channelMaxValues is updated. Finally, the next ACMP channel is selected.

Definition at line 119 of file capsense.c .

References channelMaxValues , channelValues , and currentChannel .

void TIMER1_IRQHandler ( void )

TIMER1 IRQ Handler

void TIMER2_IRQHandler ( void )

TIMER2 IRQ Handler

void TIMER3_IRQHandler ( void )

TIMER3 IRQ Handler

void ULFRCO_IRQHandler ( void )

ULFRCO IRQ Handler

void UsageFault_Handler ( void )

Usage Fault Handler

void USART0_RX_IRQHandler ( void )

USART0_RX IRQ Handler

void USART0_TX_IRQHandler ( void )

USART0_TX IRQ Handler

void USART1_RX_IRQHandler ( void )

USART1_RX IRQ Handler

void USART1_TX_IRQHandler ( void )

USART1_TX IRQ Handler

void USART2_RX_IRQHandler ( void )

USART2_RX IRQ Handler

void USART2_TX_IRQHandler ( void )

USART2_TX IRQ Handler

void WDOG0_IRQHandler ( void )

WDOG0 IRQ Handler

void WDOG1_IRQHandler ( void )

WDOG1 IRQ Handler

Variable Documentation

uint32_t SystemCoreClock

System System Clock Frequency (Core Clock).

System Clock Frequency (Core Clock)

Required CMSIS global variable that must be kept up-to-date.

Definition at line 119 of file system_efr32bg21.c .

Referenced by SystemHCLKGet() .

uint32_t SystemHfrcoFreq

System HFRCO frequency