MGM21Devices

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 87 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

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

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 MGM21 specific function, not part of the CMSIS definition.
Returns
CLKIN0 frequency in Hz.

Definition at line 450 of file system_mgm21.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 157 of file system_mgm21.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 176 of file system_mgm21.h.

References SystemHCLKGet().

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

uint32_t SystemFSRCOClockGet ( void  )

Get FSRCO frequency.

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

Definition at line 466 of file system_mgm21.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 MGM21 specific function, not part of the CMSIS definition.
Returns
The current core clock (HCLK) frequency in Hz.

Definition at line 233 of file system_mgm21.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 MGM21 specific function, not part of the CMSIS definition.
Returns
HFRCODPLL frequency in Hz.

Definition at line 338 of file system_mgm21.c.

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

void SystemHFRCODPLLClockSet ( uint32_t  freq)

Set HFRCODPLL frequency value.

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

Definition at line 430 of file system_mgm21.c.

Referenced by CMU_DPLLLock(), and CMU_HFRCODPLLBandSet().

uint32_t SystemHFRCOEM23ClockGet ( void  )

Get current HFRCOEM23 frequency.

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

Definition at line 482 of file system_mgm21.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 MGM21 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 280 of file system_mgm21.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 MGM21 specific function, not part of the CMSIS definition.
Parameters
[in]freqHFXO frequency in Hz used for target.

Definition at line 310 of file system_mgm21.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 146 of file system_mgm21.c.

uint32_t SystemLFRCOClockGet ( void  )

Get low frequency RC oscillator clock frequency for target system.

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

Definition at line 550 of file system_mgm21.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 MGM21 specific function, not part of the CMSIS definition.
Returns
LFXO frequency in Hz.

Definition at line 583 of file system_mgm21.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 MGM21 specific function, not part of the CMSIS definition.
Parameters
[in]freqLFXO frequency in Hz used for target.

Definition at line 613 of file system_mgm21.c.

Referenced by BSP_initClocks().

uint32_t SystemMaxCoreClockGet ( void  )

Get the maximum core clock frequency.

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

Definition at line 263 of file system_mgm21.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 MGM21 specific function, not part of the CMSIS definition.
Returns
Current system clock (SYSCLK) frequency in Hz.

Definition at line 177 of file system_mgm21.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 MGM21 specific function, not part of the CMSIS definition.
Returns
ULFRCO frequency in Hz.

Definition at line 566 of file system_mgm21.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 69 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 106 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 127 of file system_mgm21.c.

Referenced by SystemHCLKGet().

uint32_t SystemHfrcoFreq

System HFRCO frequency