Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
113:f141b2784e32
.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 98:8ab26030e058 1 /**************************************************************************//**
Kojto 98:8ab26030e058 2 * @file system_efm32zg.h
Kojto 98:8ab26030e058 3 * @brief CMSIS Cortex-M System Layer for EFM32 devices.
Kojto 113:f141b2784e32 4 * @version 4.2.0
Kojto 98:8ab26030e058 5 ******************************************************************************
Kojto 98:8ab26030e058 6 * @section License
Kojto 113:f141b2784e32 7 * <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
Kojto 98:8ab26030e058 8 ******************************************************************************
Kojto 98:8ab26030e058 9 *
Kojto 98:8ab26030e058 10 * Permission is granted to anyone to use this software for any purpose,
Kojto 98:8ab26030e058 11 * including commercial applications, and to alter it and redistribute it
Kojto 98:8ab26030e058 12 * freely, subject to the following restrictions:
Kojto 98:8ab26030e058 13 *
Kojto 98:8ab26030e058 14 * 1. The origin of this software must not be misrepresented; you must not
Kojto 98:8ab26030e058 15 * claim that you wrote the original software.@n
Kojto 98:8ab26030e058 16 * 2. Altered source versions must be plainly marked as such, and must not be
Kojto 98:8ab26030e058 17 * misrepresented as being the original software.@n
Kojto 98:8ab26030e058 18 * 3. This notice may not be removed or altered from any source distribution.
Kojto 98:8ab26030e058 19 *
Kojto 98:8ab26030e058 20 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc.
Kojto 98:8ab26030e058 21 * has no obligation to support this Software. Silicon Laboratories, Inc. is
Kojto 98:8ab26030e058 22 * providing the Software "AS IS", with no express or implied warranties of any
Kojto 98:8ab26030e058 23 * kind, including, but not limited to, any implied warranties of
Kojto 98:8ab26030e058 24 * merchantability or fitness for any particular purpose or warranties against
Kojto 98:8ab26030e058 25 * infringement of any proprietary rights of a third party.
Kojto 98:8ab26030e058 26 *
Kojto 98:8ab26030e058 27 * Silicon Laboratories, Inc. will not be liable for any consequential,
Kojto 98:8ab26030e058 28 * incidental, or special damages, or any other relief, or for any claim by
Kojto 98:8ab26030e058 29 * any third party, arising from your use of this Software.
Kojto 98:8ab26030e058 30 *
Kojto 98:8ab26030e058 31 *****************************************************************************/
Kojto 98:8ab26030e058 32
Kojto 113:f141b2784e32 33 #ifndef SYSTEM_EFM32ZG_H
Kojto 113:f141b2784e32 34 #define SYSTEM_EFM32ZG_H
Kojto 98:8ab26030e058 35
Kojto 98:8ab26030e058 36 #ifdef __cplusplus
Kojto 98:8ab26030e058 37 extern "C" {
Kojto 98:8ab26030e058 38 #endif
Kojto 98:8ab26030e058 39
Kojto 98:8ab26030e058 40 #include <stdint.h>
Kojto 98:8ab26030e058 41
Kojto 98:8ab26030e058 42 /*******************************************************************************
Kojto 98:8ab26030e058 43 ************************** GLOBAL VARIABLES *******************************
Kojto 98:8ab26030e058 44 ******************************************************************************/
Kojto 98:8ab26030e058 45
Kojto 98:8ab26030e058 46 extern uint32_t SystemCoreClock; /**< System Clock Frequency (Core Clock) */
Kojto 98:8ab26030e058 47
Kojto 98:8ab26030e058 48 /*******************************************************************************
Kojto 98:8ab26030e058 49 ***************************** PROTOTYPES **********************************
Kojto 98:8ab26030e058 50 ******************************************************************************/
Kojto 98:8ab26030e058 51
Kojto 98:8ab26030e058 52 /* Interrupt routines - prototypes */
Kojto 98:8ab26030e058 53 void Reset_Handler(void);
Kojto 98:8ab26030e058 54 void NMI_Handler(void);
Kojto 98:8ab26030e058 55 void HardFault_Handler(void);
Kojto 98:8ab26030e058 56 void SVC_Handler(void);
Kojto 98:8ab26030e058 57 void PendSV_Handler(void);
Kojto 98:8ab26030e058 58 void SysTick_Handler(void);
Kojto 98:8ab26030e058 59
Kojto 98:8ab26030e058 60 void DMA_IRQHandler(void);
Kojto 98:8ab26030e058 61 void GPIO_EVEN_IRQHandler(void);
Kojto 98:8ab26030e058 62 void TIMER0_IRQHandler(void);
Kojto 98:8ab26030e058 63 void ACMP0_IRQHandler(void);
Kojto 98:8ab26030e058 64 void ADC0_IRQHandler(void);
Kojto 98:8ab26030e058 65 void I2C0_IRQHandler(void);
Kojto 98:8ab26030e058 66 void GPIO_ODD_IRQHandler(void);
Kojto 98:8ab26030e058 67 void TIMER1_IRQHandler(void);
Kojto 98:8ab26030e058 68 void USART1_RX_IRQHandler(void);
Kojto 98:8ab26030e058 69 void USART1_TX_IRQHandler(void);
Kojto 98:8ab26030e058 70 void LEUART0_IRQHandler(void);
Kojto 98:8ab26030e058 71 void PCNT0_IRQHandler(void);
Kojto 98:8ab26030e058 72 void RTC_IRQHandler(void);
Kojto 98:8ab26030e058 73 void CMU_IRQHandler(void);
Kojto 98:8ab26030e058 74 void VCMP_IRQHandler(void);
Kojto 98:8ab26030e058 75 void MSC_IRQHandler(void);
Kojto 98:8ab26030e058 76 void AES_IRQHandler(void);
Kojto 98:8ab26030e058 77
Kojto 98:8ab26030e058 78 uint32_t SystemCoreClockGet(void);
Kojto 113:f141b2784e32 79 uint32_t SystemMaxCoreClockGet(void);
Kojto 98:8ab26030e058 80
Kojto 98:8ab26030e058 81 /**************************************************************************//**
Kojto 98:8ab26030e058 82 * @brief
Kojto 98:8ab26030e058 83 * Update CMSIS SystemCoreClock variable.
Kojto 98:8ab26030e058 84 *
Kojto 98:8ab26030e058 85 * @details
Kojto 98:8ab26030e058 86 * CMSIS defines a global variable SystemCoreClock that shall hold the
Kojto 98:8ab26030e058 87 * core frequency in Hz. If the core frequency is dynamically changed, the
Kojto 98:8ab26030e058 88 * variable must be kept updated in order to be CMSIS compliant.
Kojto 98:8ab26030e058 89 *
Kojto 98:8ab26030e058 90 * Notice that if only changing core clock frequency through the EFM32 CMU
Kojto 98:8ab26030e058 91 * API, this variable will be kept updated. This function is only provided
Kojto 98:8ab26030e058 92 * for CMSIS compliance and if a user modifies the the core clock outside
Kojto 98:8ab26030e058 93 * the CMU API.
Kojto 98:8ab26030e058 94 *****************************************************************************/
Kojto 98:8ab26030e058 95 static __INLINE void SystemCoreClockUpdate(void)
Kojto 98:8ab26030e058 96 {
Kojto 98:8ab26030e058 97 SystemCoreClockGet();
Kojto 98:8ab26030e058 98 }
Kojto 98:8ab26030e058 99
Kojto 98:8ab26030e058 100 void SystemInit(void);
Kojto 98:8ab26030e058 101 uint32_t SystemHFClockGet(void);
Kojto 98:8ab26030e058 102 uint32_t SystemHFXOClockGet(void);
Kojto 98:8ab26030e058 103 void SystemHFXOClockSet(uint32_t freq);
Kojto 98:8ab26030e058 104 uint32_t SystemLFRCOClockGet(void);
Kojto 98:8ab26030e058 105 uint32_t SystemULFRCOClockGet(void);
Kojto 98:8ab26030e058 106 uint32_t SystemLFXOClockGet(void);
Kojto 98:8ab26030e058 107 void SystemLFXOClockSet(uint32_t freq);
Kojto 98:8ab26030e058 108
Kojto 98:8ab26030e058 109 #ifdef __cplusplus
Kojto 98:8ab26030e058 110 }
Kojto 98:8ab26030e058 111 #endif
Kojto 113:f141b2784e32 112 #endif /* SYSTEM_EFM32ZG_H */