00001 /**************************************************************************/ 00033 #ifndef __SILICON_LABS_SYSTEM_EFM32HG_H__ 00034 #define __SILICON_LABS_SYSTEM_EFM32HG_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 void USART0_RX_IRQHandler(void); 00078 void USART0_TX_IRQHandler(void); 00079 void USB_IRQHandler(void); 00080 void TIMER2_IRQHandler(void); 00081 00082 uint32_t SystemCoreClockGet(void); 00083 uint32_t SystemMaxCoreClockGet(void); 00084 00085 /**************************************************************************/ 00099 static __INLINE void SystemCoreClockUpdate(void) 00100 { 00101 SystemCoreClockGet(); 00102 } 00103 00104 void SystemInit(void); 00105 uint32_t SystemHFClockGet(void); 00106 uint32_t SystemHFXOClockGet(void); 00107 void SystemHFXOClockSet(uint32_t freq); 00108 uint32_t SystemLFRCOClockGet(void); 00109 uint32_t SystemULFRCOClockGet(void); 00110 uint32_t SystemLFXOClockGet(void); 00111 void SystemLFXOClockSet(uint32_t freq); 00112 00113 #ifdef __cplusplus 00114 } 00115 #endif 00116 #endif /* __SILICON_LABS_SYSTEM_EFM32HG_H__ */