00001 /**************************************************************************/ 00033 #ifndef __SILICON_LABS_SYSTEM_EFM32ZG_H__ 00034 #define __SILICON_LABS_SYSTEM_EFM32ZG_H__ 00035 00036 #ifdef __cplusplus 00037 extern "C" { 00038 #endif 00039 00040 #include <stdint.h> 00041 00042 /******************************************************************************* 00043 ************************** GLOBAL VARIABLES ******************************* 00044 ******************************************************************************/ 00045 00046 extern uint32_t SystemCoreClock; 00048 /******************************************************************************* 00049 ***************************** PROTOTYPES ********************************** 00050 ******************************************************************************/ 00051 00052 /* Interrupt routines - prototypes */ 00053 void Reset_Handler(void); 00054 void NMI_Handler(void); 00055 void HardFault_Handler(void); 00056 void SVC_Handler(void); 00057 void PendSV_Handler(void); 00058 void SysTick_Handler(void); 00059 00060 void DMA_IRQHandler(void); 00061 void GPIO_EVEN_IRQHandler(void); 00062 void TIMER0_IRQHandler(void); 00063 void ACMP0_IRQHandler(void); 00064 void ADC0_IRQHandler(void); 00065 void I2C0_IRQHandler(void); 00066 void GPIO_ODD_IRQHandler(void); 00067 void TIMER1_IRQHandler(void); 00068 void USART1_RX_IRQHandler(void); 00069 void USART1_TX_IRQHandler(void); 00070 void LEUART0_IRQHandler(void); 00071 void PCNT0_IRQHandler(void); 00072 void RTC_IRQHandler(void); 00073 void CMU_IRQHandler(void); 00074 void VCMP_IRQHandler(void); 00075 void MSC_IRQHandler(void); 00076 void AES_IRQHandler(void); 00077 00078 uint32_t SystemCoreClockGet(void); 00079 00080 /**************************************************************************/ 00094 static __INLINE void SystemCoreClockUpdate(void) 00095 { 00096 SystemCoreClockGet(); 00097 } 00098 00099 void SystemInit(void); 00100 uint32_t SystemHFClockGet(void); 00101 uint32_t SystemHFXOClockGet(void); 00102 void SystemHFXOClockSet(uint32_t freq); 00103 uint32_t SystemLFRCOClockGet(void); 00104 uint32_t SystemULFRCOClockGet(void); 00105 uint32_t SystemLFXOClockGet(void); 00106 void SystemLFXOClockSet(uint32_t freq); 00107 00108 #ifdef __cplusplus 00109 } 00110 #endif 00111 #endif /* __SILICON_LABS_SYSTEM_EFM32ZG_H__ */