The official mbed C/C SDK provides the software platform and libraries to build your applications.
Fork of mbed by
TARGET_EFM32GG_STK3700/efm32gg990f1024.h@99:7f6c6de930c0, 2015-05-03 (annotated)
- Committer:
- Mikchel
- Date:
- Sun May 03 16:04:42 2015 +0000
- Revision:
- 99:7f6c6de930c0
- Parent:
- 98:8ab26030e058
12
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 98:8ab26030e058 | 1 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 2 | * @file efm32gg990f1024.h |
Kojto | 98:8ab26030e058 | 3 | * @brief CMSIS Cortex-M Peripheral Access Layer Header File |
Kojto | 98:8ab26030e058 | 4 | * for EFM32GG990F1024 |
Kojto | 98:8ab26030e058 | 5 | * @version 3.20.6 |
Kojto | 98:8ab26030e058 | 6 | ****************************************************************************** |
Kojto | 98:8ab26030e058 | 7 | * @section License |
Kojto | 98:8ab26030e058 | 8 | * <b>(C) Copyright 2014 Silicon Laboratories, Inc. http://www.silabs.com</b> |
Kojto | 98:8ab26030e058 | 9 | ****************************************************************************** |
Kojto | 98:8ab26030e058 | 10 | * |
Kojto | 98:8ab26030e058 | 11 | * Permission is granted to anyone to use this software for any purpose, |
Kojto | 98:8ab26030e058 | 12 | * including commercial applications, and to alter it and redistribute it |
Kojto | 98:8ab26030e058 | 13 | * freely, subject to the following restrictions: |
Kojto | 98:8ab26030e058 | 14 | * |
Kojto | 98:8ab26030e058 | 15 | * 1. The origin of this software must not be misrepresented; you must not |
Kojto | 98:8ab26030e058 | 16 | * claim that you wrote the original software.@n |
Kojto | 98:8ab26030e058 | 17 | * 2. Altered source versions must be plainly marked as such, and must not be |
Kojto | 98:8ab26030e058 | 18 | * misrepresented as being the original software.@n |
Kojto | 98:8ab26030e058 | 19 | * 3. This notice may not be removed or altered from any source distribution. |
Kojto | 98:8ab26030e058 | 20 | * |
Kojto | 98:8ab26030e058 | 21 | * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc. |
Kojto | 98:8ab26030e058 | 22 | * has no obligation to support this Software. Silicon Laboratories, Inc. is |
Kojto | 98:8ab26030e058 | 23 | * providing the Software "AS IS", with no express or implied warranties of any |
Kojto | 98:8ab26030e058 | 24 | * kind, including, but not limited to, any implied warranties of |
Kojto | 98:8ab26030e058 | 25 | * merchantability or fitness for any particular purpose or warranties against |
Kojto | 98:8ab26030e058 | 26 | * infringement of any proprietary rights of a third party. |
Kojto | 98:8ab26030e058 | 27 | * |
Kojto | 98:8ab26030e058 | 28 | * Silicon Laboratories, Inc. will not be liable for any consequential, |
Kojto | 98:8ab26030e058 | 29 | * incidental, or special damages, or any other relief, or for any claim by |
Kojto | 98:8ab26030e058 | 30 | * any third party, arising from your use of this Software. |
Kojto | 98:8ab26030e058 | 31 | * |
Kojto | 98:8ab26030e058 | 32 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 33 | |
Kojto | 98:8ab26030e058 | 34 | #ifndef __EFM32GG990F1024_H |
Kojto | 98:8ab26030e058 | 35 | #define __EFM32GG990F1024_H |
Kojto | 98:8ab26030e058 | 36 | |
Kojto | 98:8ab26030e058 | 37 | #ifdef __cplusplus |
Kojto | 98:8ab26030e058 | 38 | extern "C" { |
Kojto | 98:8ab26030e058 | 39 | #endif |
Kojto | 98:8ab26030e058 | 40 | |
Kojto | 98:8ab26030e058 | 41 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 42 | * @addtogroup Parts |
Kojto | 98:8ab26030e058 | 43 | * @{ |
Kojto | 98:8ab26030e058 | 44 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 45 | |
Kojto | 98:8ab26030e058 | 46 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 47 | * @defgroup EFM32GG990F1024 EFM32GG990F1024 |
Kojto | 98:8ab26030e058 | 48 | * @{ |
Kojto | 98:8ab26030e058 | 49 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 50 | |
Kojto | 98:8ab26030e058 | 51 | /** Interrupt Number Definition */ |
Kojto | 98:8ab26030e058 | 52 | typedef enum IRQn |
Kojto | 98:8ab26030e058 | 53 | { |
Kojto | 98:8ab26030e058 | 54 | /****** Cortex-M3 Processor Exceptions Numbers *******************************************/ |
Kojto | 98:8ab26030e058 | 55 | NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ |
Kojto | 98:8ab26030e058 | 56 | HardFault_IRQn = -13, /*!< 3 Cortex-M3 Hard Fault Interrupt */ |
Kojto | 98:8ab26030e058 | 57 | MemoryManagement_IRQn = -12, /*!< 4 Cortex-M3 Memory Management Interrupt */ |
Kojto | 98:8ab26030e058 | 58 | BusFault_IRQn = -11, /*!< 5 Cortex-M3 Bus Fault Interrupt */ |
Kojto | 98:8ab26030e058 | 59 | UsageFault_IRQn = -10, /*!< 6 Cortex-M3 Usage Fault Interrupt */ |
Kojto | 98:8ab26030e058 | 60 | SVCall_IRQn = -5, /*!< 11 Cortex-M3 SV Call Interrupt */ |
Kojto | 98:8ab26030e058 | 61 | DebugMonitor_IRQn = -4, /*!< 12 Cortex-M3 Debug Monitor Interrupt */ |
Kojto | 98:8ab26030e058 | 62 | PendSV_IRQn = -2, /*!< 14 Cortex-M3 Pend SV Interrupt */ |
Kojto | 98:8ab26030e058 | 63 | SysTick_IRQn = -1, /*!< 15 Cortex-M3 System Tick Interrupt */ |
Kojto | 98:8ab26030e058 | 64 | |
Kojto | 98:8ab26030e058 | 65 | /****** EFM32G Peripheral Interrupt Numbers **********************************************/ |
Kojto | 98:8ab26030e058 | 66 | DMA_IRQn = 0, /*!< 16+0 EFM32 DMA Interrupt */ |
Kojto | 98:8ab26030e058 | 67 | GPIO_EVEN_IRQn = 1, /*!< 16+1 EFM32 GPIO_EVEN Interrupt */ |
Kojto | 98:8ab26030e058 | 68 | TIMER0_IRQn = 2, /*!< 16+2 EFM32 TIMER0 Interrupt */ |
Kojto | 98:8ab26030e058 | 69 | USART0_RX_IRQn = 3, /*!< 16+3 EFM32 USART0_RX Interrupt */ |
Kojto | 98:8ab26030e058 | 70 | USART0_TX_IRQn = 4, /*!< 16+4 EFM32 USART0_TX Interrupt */ |
Kojto | 98:8ab26030e058 | 71 | USB_IRQn = 5, /*!< 16+5 EFM32 USB Interrupt */ |
Kojto | 98:8ab26030e058 | 72 | ACMP0_IRQn = 6, /*!< 16+6 EFM32 ACMP0 Interrupt */ |
Kojto | 98:8ab26030e058 | 73 | ADC0_IRQn = 7, /*!< 16+7 EFM32 ADC0 Interrupt */ |
Kojto | 98:8ab26030e058 | 74 | DAC0_IRQn = 8, /*!< 16+8 EFM32 DAC0 Interrupt */ |
Kojto | 98:8ab26030e058 | 75 | I2C0_IRQn = 9, /*!< 16+9 EFM32 I2C0 Interrupt */ |
Kojto | 98:8ab26030e058 | 76 | I2C1_IRQn = 10, /*!< 16+10 EFM32 I2C1 Interrupt */ |
Kojto | 98:8ab26030e058 | 77 | GPIO_ODD_IRQn = 11, /*!< 16+11 EFM32 GPIO_ODD Interrupt */ |
Kojto | 98:8ab26030e058 | 78 | TIMER1_IRQn = 12, /*!< 16+12 EFM32 TIMER1 Interrupt */ |
Kojto | 98:8ab26030e058 | 79 | TIMER2_IRQn = 13, /*!< 16+13 EFM32 TIMER2 Interrupt */ |
Kojto | 98:8ab26030e058 | 80 | TIMER3_IRQn = 14, /*!< 16+14 EFM32 TIMER3 Interrupt */ |
Kojto | 98:8ab26030e058 | 81 | USART1_RX_IRQn = 15, /*!< 16+15 EFM32 USART1_RX Interrupt */ |
Kojto | 98:8ab26030e058 | 82 | USART1_TX_IRQn = 16, /*!< 16+16 EFM32 USART1_TX Interrupt */ |
Kojto | 98:8ab26030e058 | 83 | LESENSE_IRQn = 17, /*!< 16+17 EFM32 LESENSE Interrupt */ |
Kojto | 98:8ab26030e058 | 84 | USART2_RX_IRQn = 18, /*!< 16+18 EFM32 USART2_RX Interrupt */ |
Kojto | 98:8ab26030e058 | 85 | USART2_TX_IRQn = 19, /*!< 16+19 EFM32 USART2_TX Interrupt */ |
Kojto | 98:8ab26030e058 | 86 | UART0_RX_IRQn = 20, /*!< 16+20 EFM32 UART0_RX Interrupt */ |
Kojto | 98:8ab26030e058 | 87 | UART0_TX_IRQn = 21, /*!< 16+21 EFM32 UART0_TX Interrupt */ |
Kojto | 98:8ab26030e058 | 88 | UART1_RX_IRQn = 22, /*!< 16+22 EFM32 UART1_RX Interrupt */ |
Kojto | 98:8ab26030e058 | 89 | UART1_TX_IRQn = 23, /*!< 16+23 EFM32 UART1_TX Interrupt */ |
Kojto | 98:8ab26030e058 | 90 | LEUART0_IRQn = 24, /*!< 16+24 EFM32 LEUART0 Interrupt */ |
Kojto | 98:8ab26030e058 | 91 | LEUART1_IRQn = 25, /*!< 16+25 EFM32 LEUART1 Interrupt */ |
Kojto | 98:8ab26030e058 | 92 | LETIMER0_IRQn = 26, /*!< 16+26 EFM32 LETIMER0 Interrupt */ |
Kojto | 98:8ab26030e058 | 93 | PCNT0_IRQn = 27, /*!< 16+27 EFM32 PCNT0 Interrupt */ |
Kojto | 98:8ab26030e058 | 94 | PCNT1_IRQn = 28, /*!< 16+28 EFM32 PCNT1 Interrupt */ |
Kojto | 98:8ab26030e058 | 95 | PCNT2_IRQn = 29, /*!< 16+29 EFM32 PCNT2 Interrupt */ |
Kojto | 98:8ab26030e058 | 96 | RTC_IRQn = 30, /*!< 16+30 EFM32 RTC Interrupt */ |
Kojto | 98:8ab26030e058 | 97 | BURTC_IRQn = 31, /*!< 16+31 EFM32 BURTC Interrupt */ |
Kojto | 98:8ab26030e058 | 98 | CMU_IRQn = 32, /*!< 16+32 EFM32 CMU Interrupt */ |
Kojto | 98:8ab26030e058 | 99 | VCMP_IRQn = 33, /*!< 16+33 EFM32 VCMP Interrupt */ |
Kojto | 98:8ab26030e058 | 100 | LCD_IRQn = 34, /*!< 16+34 EFM32 LCD Interrupt */ |
Kojto | 98:8ab26030e058 | 101 | MSC_IRQn = 35, /*!< 16+35 EFM32 MSC Interrupt */ |
Kojto | 98:8ab26030e058 | 102 | AES_IRQn = 36, /*!< 16+36 EFM32 AES Interrupt */ |
Kojto | 98:8ab26030e058 | 103 | EBI_IRQn = 37, /*!< 16+37 EFM32 EBI Interrupt */ |
Kojto | 98:8ab26030e058 | 104 | EMU_IRQn = 38, /*!< 16+38 EFM32 EMU Interrupt */ |
Kojto | 98:8ab26030e058 | 105 | } IRQn_Type; |
Kojto | 98:8ab26030e058 | 106 | |
Kojto | 98:8ab26030e058 | 107 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 108 | * @defgroup EFM32GG990F1024_Core EFM32GG990F1024 Core |
Kojto | 98:8ab26030e058 | 109 | * @{ |
Kojto | 98:8ab26030e058 | 110 | * @brief Processor and Core Peripheral Section |
Kojto | 98:8ab26030e058 | 111 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 112 | #define __MPU_PRESENT 1 /**< Presence of MPU */ |
Kojto | 98:8ab26030e058 | 113 | #define __NVIC_PRIO_BITS 3 /**< NVIC interrupt priority bits */ |
Kojto | 98:8ab26030e058 | 114 | #define __Vendor_SysTickConfig 0 /**< Is 1 if different SysTick counter is used */ |
Kojto | 98:8ab26030e058 | 115 | |
Kojto | 98:8ab26030e058 | 116 | /** @} End of group EFM32GG990F1024_Core */ |
Kojto | 98:8ab26030e058 | 117 | |
Kojto | 98:8ab26030e058 | 118 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 119 | * @defgroup EFM32GG990F1024_Part EFM32GG990F1024 Part |
Kojto | 98:8ab26030e058 | 120 | * @{ |
Kojto | 98:8ab26030e058 | 121 | ******************************************************************************/ |
Kojto | 98:8ab26030e058 | 122 | |
Kojto | 98:8ab26030e058 | 123 | /** Part family */ |
Kojto | 98:8ab26030e058 | 124 | #define _EFM32_GIANT_FAMILY 1 /**< Giant/Leopard Gecko EFM32LG/GG MCU Family */ |
Kojto | 98:8ab26030e058 | 125 | #define _EFM_DEVICE /**< Silicon Labs EFM-type microcontroller */ |
Kojto | 98:8ab26030e058 | 126 | |
Kojto | 98:8ab26030e058 | 127 | /* If part number is not defined as compiler option, define it */ |
Kojto | 98:8ab26030e058 | 128 | #if !defined(EFM32GG990F1024) |
Kojto | 98:8ab26030e058 | 129 | #define EFM32GG990F1024 1 /**< Giant/Leopard Gecko Part */ |
Kojto | 98:8ab26030e058 | 130 | #endif |
Kojto | 98:8ab26030e058 | 131 | |
Kojto | 98:8ab26030e058 | 132 | /** Configure part number */ |
Kojto | 98:8ab26030e058 | 133 | #define PART_NUMBER "EFM32GG990F1024" /**< Part Number */ |
Kojto | 98:8ab26030e058 | 134 | |
Kojto | 98:8ab26030e058 | 135 | /** Memory Base addresses and limits */ |
Kojto | 98:8ab26030e058 | 136 | #define FLASH_MEM_BASE ((uint32_t) 0x0UL) /**< FLASH base address */ |
Kojto | 98:8ab26030e058 | 137 | #define FLASH_MEM_SIZE ((uint32_t) 0x10000000UL) /**< FLASH available address space */ |
Kojto | 98:8ab26030e058 | 138 | #define FLASH_MEM_END ((uint32_t) 0xFFFFFFFUL) /**< FLASH end address */ |
Kojto | 98:8ab26030e058 | 139 | #define FLASH_MEM_BITS ((uint32_t) 0x28UL) /**< FLASH used bits */ |
Kojto | 98:8ab26030e058 | 140 | #define AES_MEM_BASE ((uint32_t) 0x400E0000UL) /**< AES base address */ |
Kojto | 98:8ab26030e058 | 141 | #define AES_MEM_SIZE ((uint32_t) 0x400UL) /**< AES available address space */ |
Kojto | 98:8ab26030e058 | 142 | #define AES_MEM_END ((uint32_t) 0x400E03FFUL) /**< AES end address */ |
Kojto | 98:8ab26030e058 | 143 | #define AES_MEM_BITS ((uint32_t) 0x10UL) /**< AES used bits */ |
Kojto | 98:8ab26030e058 | 144 | #define USBC_MEM_BASE ((uint32_t) 0x40100000UL) /**< USBC base address */ |
Kojto | 98:8ab26030e058 | 145 | #define USBC_MEM_SIZE ((uint32_t) 0x40000UL) /**< USBC available address space */ |
Kojto | 98:8ab26030e058 | 146 | #define USBC_MEM_END ((uint32_t) 0x4013FFFFUL) /**< USBC end address */ |
Kojto | 98:8ab26030e058 | 147 | #define USBC_MEM_BITS ((uint32_t) 0x18UL) /**< USBC used bits */ |
Kojto | 98:8ab26030e058 | 148 | #define EBI_CODE_MEM_BASE ((uint32_t) 0x12000000UL) /**< EBI_CODE base address */ |
Kojto | 98:8ab26030e058 | 149 | #define EBI_CODE_MEM_SIZE ((uint32_t) 0xE000000UL) /**< EBI_CODE available address space */ |
Kojto | 98:8ab26030e058 | 150 | #define EBI_CODE_MEM_END ((uint32_t) 0x1FFFFFFFUL) /**< EBI_CODE end address */ |
Kojto | 98:8ab26030e058 | 151 | #define EBI_CODE_MEM_BITS ((uint32_t) 0x28UL) /**< EBI_CODE used bits */ |
Kojto | 98:8ab26030e058 | 152 | #define PER_MEM_BASE ((uint32_t) 0x40000000UL) /**< PER base address */ |
Kojto | 98:8ab26030e058 | 153 | #define PER_MEM_SIZE ((uint32_t) 0xE0000UL) /**< PER available address space */ |
Kojto | 98:8ab26030e058 | 154 | #define PER_MEM_END ((uint32_t) 0x400DFFFFUL) /**< PER end address */ |
Kojto | 98:8ab26030e058 | 155 | #define PER_MEM_BITS ((uint32_t) 0x20UL) /**< PER used bits */ |
Kojto | 98:8ab26030e058 | 156 | #define RAM_MEM_BASE ((uint32_t) 0x20000000UL) /**< RAM base address */ |
Kojto | 98:8ab26030e058 | 157 | #define RAM_MEM_SIZE ((uint32_t) 0x40000UL) /**< RAM available address space */ |
Kojto | 98:8ab26030e058 | 158 | #define RAM_MEM_END ((uint32_t) 0x2003FFFFUL) /**< RAM end address */ |
Kojto | 98:8ab26030e058 | 159 | #define RAM_MEM_BITS ((uint32_t) 0x18UL) /**< RAM used bits */ |
Kojto | 98:8ab26030e058 | 160 | #define RAM_CODE_MEM_BASE ((uint32_t) 0x10000000UL) /**< RAM_CODE base address */ |
Kojto | 98:8ab26030e058 | 161 | #define RAM_CODE_MEM_SIZE ((uint32_t) 0x20000UL) /**< RAM_CODE available address space */ |
Kojto | 98:8ab26030e058 | 162 | #define RAM_CODE_MEM_END ((uint32_t) 0x1001FFFFUL) /**< RAM_CODE end address */ |
Kojto | 98:8ab26030e058 | 163 | #define RAM_CODE_MEM_BITS ((uint32_t) 0x17UL) /**< RAM_CODE used bits */ |
Kojto | 98:8ab26030e058 | 164 | #define EBI_MEM_BASE ((uint32_t) 0x80000000UL) /**< EBI base address */ |
Kojto | 98:8ab26030e058 | 165 | #define EBI_MEM_SIZE ((uint32_t) 0x40000000UL) /**< EBI available address space */ |
Kojto | 98:8ab26030e058 | 166 | #define EBI_MEM_END ((uint32_t) 0xBFFFFFFFUL) /**< EBI end address */ |
Kojto | 98:8ab26030e058 | 167 | #define EBI_MEM_BITS ((uint32_t) 0x30UL) /**< EBI used bits */ |
Kojto | 98:8ab26030e058 | 168 | |
Kojto | 98:8ab26030e058 | 169 | /** Bit banding area */ |
Kojto | 98:8ab26030e058 | 170 | #define BITBAND_PER_BASE ((uint32_t) 0x42000000UL) /**< Peripheral Address Space bit-band area */ |
Kojto | 98:8ab26030e058 | 171 | #define BITBAND_RAM_BASE ((uint32_t) 0x22000000UL) /**< SRAM Address Space bit-band area */ |
Kojto | 98:8ab26030e058 | 172 | |
Kojto | 98:8ab26030e058 | 173 | /** Flash and SRAM limits for EFM32GG990F1024 */ |
Kojto | 98:8ab26030e058 | 174 | #define FLASH_BASE (0x00000000UL) /**< Flash Base Address */ |
Kojto | 98:8ab26030e058 | 175 | #define FLASH_SIZE (0x00100000UL) /**< Available Flash Memory */ |
Kojto | 98:8ab26030e058 | 176 | #define FLASH_PAGE_SIZE 4096 /**< Flash Memory page size */ |
Kojto | 98:8ab26030e058 | 177 | #define SRAM_BASE (0x20000000UL) /**< SRAM Base Address */ |
Kojto | 98:8ab26030e058 | 178 | #define SRAM_SIZE (0x00020000UL) /**< Available SRAM Memory */ |
Kojto | 98:8ab26030e058 | 179 | #define __CM3_REV 0x201 /**< Cortex-M3 Core revision r2p1 */ |
Kojto | 98:8ab26030e058 | 180 | #define PRS_CHAN_COUNT 12 /**< Number of PRS channels */ |
Kojto | 98:8ab26030e058 | 181 | #define DMA_CHAN_COUNT 12 /**< Number of DMA channels */ |
Kojto | 98:8ab26030e058 | 182 | |
Kojto | 98:8ab26030e058 | 183 | /** AF channels connect the different on-chip peripherals with the af-mux */ |
Kojto | 98:8ab26030e058 | 184 | #define AFCHAN_MAX 163 |
Kojto | 98:8ab26030e058 | 185 | #define AFCHANLOC_MAX 7 |
Kojto | 98:8ab26030e058 | 186 | /** Analog AF channels */ |
Kojto | 98:8ab26030e058 | 187 | #define AFACHAN_MAX 53 |
Kojto | 98:8ab26030e058 | 188 | |
Kojto | 98:8ab26030e058 | 189 | /* Part number capabilities */ |
Kojto | 98:8ab26030e058 | 190 | |
Kojto | 98:8ab26030e058 | 191 | #define LETIMER_PRESENT /**< LETIMER is available in this part */ |
Kojto | 98:8ab26030e058 | 192 | #define LETIMER_COUNT 1 /**< 1 LETIMERs available */ |
Kojto | 98:8ab26030e058 | 193 | #define USART_PRESENT /**< USART is available in this part */ |
Kojto | 98:8ab26030e058 | 194 | #define USART_COUNT 3 /**< 3 USARTs available */ |
Kojto | 98:8ab26030e058 | 195 | #define UART_PRESENT /**< UART is available in this part */ |
Kojto | 98:8ab26030e058 | 196 | #define UART_COUNT 2 /**< 2 UARTs available */ |
Kojto | 98:8ab26030e058 | 197 | #define TIMER_PRESENT /**< TIMER is available in this part */ |
Kojto | 98:8ab26030e058 | 198 | #define TIMER_COUNT 4 /**< 4 TIMERs available */ |
Kojto | 98:8ab26030e058 | 199 | #define ACMP_PRESENT /**< ACMP is available in this part */ |
Kojto | 98:8ab26030e058 | 200 | #define ACMP_COUNT 2 /**< 2 ACMPs available */ |
Kojto | 98:8ab26030e058 | 201 | #define I2C_PRESENT /**< I2C is available in this part */ |
Kojto | 98:8ab26030e058 | 202 | #define I2C_COUNT 2 /**< 2 I2Cs available */ |
Kojto | 98:8ab26030e058 | 203 | #define LEUART_PRESENT /**< LEUART is available in this part */ |
Kojto | 98:8ab26030e058 | 204 | #define LEUART_COUNT 2 /**< 2 LEUARTs available */ |
Kojto | 98:8ab26030e058 | 205 | #define PCNT_PRESENT /**< PCNT is available in this part */ |
Kojto | 98:8ab26030e058 | 206 | #define PCNT_COUNT 3 /**< 3 PCNTs available */ |
Kojto | 98:8ab26030e058 | 207 | #define ADC_PRESENT /**< ADC is available in this part */ |
Kojto | 98:8ab26030e058 | 208 | #define ADC_COUNT 1 /**< 1 ADCs available */ |
Kojto | 98:8ab26030e058 | 209 | #define DAC_PRESENT /**< DAC is available in this part */ |
Kojto | 98:8ab26030e058 | 210 | #define DAC_COUNT 1 /**< 1 DACs available */ |
Kojto | 98:8ab26030e058 | 211 | #define DMA_PRESENT |
Kojto | 98:8ab26030e058 | 212 | #define DMA_COUNT 1 |
Kojto | 98:8ab26030e058 | 213 | #define AES_PRESENT |
Kojto | 98:8ab26030e058 | 214 | #define AES_COUNT 1 |
Kojto | 98:8ab26030e058 | 215 | #define USBC_PRESENT |
Kojto | 98:8ab26030e058 | 216 | #define USBC_COUNT 1 |
Kojto | 98:8ab26030e058 | 217 | #define USB_PRESENT |
Kojto | 98:8ab26030e058 | 218 | #define USB_COUNT 1 |
Kojto | 98:8ab26030e058 | 219 | #define LE_PRESENT |
Kojto | 98:8ab26030e058 | 220 | #define LE_COUNT 1 |
Kojto | 98:8ab26030e058 | 221 | #define MSC_PRESENT |
Kojto | 98:8ab26030e058 | 222 | #define MSC_COUNT 1 |
Kojto | 98:8ab26030e058 | 223 | #define EMU_PRESENT |
Kojto | 98:8ab26030e058 | 224 | #define EMU_COUNT 1 |
Kojto | 98:8ab26030e058 | 225 | #define RMU_PRESENT |
Kojto | 98:8ab26030e058 | 226 | #define RMU_COUNT 1 |
Kojto | 98:8ab26030e058 | 227 | #define CMU_PRESENT |
Kojto | 98:8ab26030e058 | 228 | #define CMU_COUNT 1 |
Kojto | 98:8ab26030e058 | 229 | #define LESENSE_PRESENT |
Kojto | 98:8ab26030e058 | 230 | #define LESENSE_COUNT 1 |
Kojto | 98:8ab26030e058 | 231 | #define RTC_PRESENT |
Kojto | 98:8ab26030e058 | 232 | #define RTC_COUNT 1 |
Kojto | 98:8ab26030e058 | 233 | #define EBI_PRESENT |
Kojto | 98:8ab26030e058 | 234 | #define EBI_COUNT 1 |
Kojto | 98:8ab26030e058 | 235 | #define GPIO_PRESENT |
Kojto | 98:8ab26030e058 | 236 | #define GPIO_COUNT 1 |
Kojto | 98:8ab26030e058 | 237 | #define VCMP_PRESENT |
Kojto | 98:8ab26030e058 | 238 | #define VCMP_COUNT 1 |
Kojto | 98:8ab26030e058 | 239 | #define PRS_PRESENT |
Kojto | 98:8ab26030e058 | 240 | #define PRS_COUNT 1 |
Kojto | 98:8ab26030e058 | 241 | #define OPAMP_PRESENT |
Kojto | 98:8ab26030e058 | 242 | #define OPAMP_COUNT 1 |
Kojto | 98:8ab26030e058 | 243 | #define BU_PRESENT |
Kojto | 98:8ab26030e058 | 244 | #define BU_COUNT 1 |
Kojto | 98:8ab26030e058 | 245 | #define LCD_PRESENT |
Kojto | 98:8ab26030e058 | 246 | #define LCD_COUNT 1 |
Kojto | 98:8ab26030e058 | 247 | #define BURTC_PRESENT |
Kojto | 98:8ab26030e058 | 248 | #define BURTC_COUNT 1 |
Kojto | 98:8ab26030e058 | 249 | #define HFXTAL_PRESENT |
Kojto | 98:8ab26030e058 | 250 | #define HFXTAL_COUNT 1 |
Kojto | 98:8ab26030e058 | 251 | #define LFXTAL_PRESENT |
Kojto | 98:8ab26030e058 | 252 | #define LFXTAL_COUNT 1 |
Kojto | 98:8ab26030e058 | 253 | #define WDOG_PRESENT |
Kojto | 98:8ab26030e058 | 254 | #define WDOG_COUNT 1 |
Kojto | 98:8ab26030e058 | 255 | #define DBG_PRESENT |
Kojto | 98:8ab26030e058 | 256 | #define DBG_COUNT 1 |
Kojto | 98:8ab26030e058 | 257 | #define ETM_PRESENT |
Kojto | 98:8ab26030e058 | 258 | #define ETM_COUNT 1 |
Kojto | 98:8ab26030e058 | 259 | #define BOOTLOADER_PRESENT |
Kojto | 98:8ab26030e058 | 260 | #define BOOTLOADER_COUNT 1 |
Kojto | 98:8ab26030e058 | 261 | #define ANALOG_PRESENT |
Kojto | 98:8ab26030e058 | 262 | #define ANALOG_COUNT 1 |
Kojto | 98:8ab26030e058 | 263 | |
Kojto | 98:8ab26030e058 | 264 | #include "core_cm3.h" /* Cortex-M3 processor and core peripherals */ |
Kojto | 98:8ab26030e058 | 265 | #include "system_efm32gg.h" /* System Header */ |
Kojto | 98:8ab26030e058 | 266 | |
Kojto | 98:8ab26030e058 | 267 | /** @} End of group EFM32GG990F1024_Part */ |
Kojto | 98:8ab26030e058 | 268 | |
Kojto | 98:8ab26030e058 | 269 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 270 | * @defgroup EFM32GG990F1024_Peripheral_TypeDefs EFM32GG990F1024 Peripheral TypeDefs |
Kojto | 98:8ab26030e058 | 271 | * @{ |
Kojto | 98:8ab26030e058 | 272 | * @brief Device Specific Peripheral Register Structures |
Kojto | 98:8ab26030e058 | 273 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 274 | |
Kojto | 98:8ab26030e058 | 275 | #include "efm32gg_dma_ch.h" |
Kojto | 98:8ab26030e058 | 276 | #include "efm32gg_dma.h" |
Kojto | 98:8ab26030e058 | 277 | #include "efm32gg_aes.h" |
Kojto | 98:8ab26030e058 | 278 | #include "efm32gg_usb_hc.h" |
Kojto | 98:8ab26030e058 | 279 | #include "efm32gg_usb_diep.h" |
Kojto | 98:8ab26030e058 | 280 | #include "efm32gg_usb_doep.h" |
Kojto | 98:8ab26030e058 | 281 | #include "efm32gg_usb.h" |
Kojto | 98:8ab26030e058 | 282 | #include "efm32gg_msc.h" |
Kojto | 98:8ab26030e058 | 283 | #include "efm32gg_emu.h" |
Kojto | 98:8ab26030e058 | 284 | #include "efm32gg_rmu.h" |
Kojto | 98:8ab26030e058 | 285 | #include "efm32gg_cmu.h" |
Kojto | 98:8ab26030e058 | 286 | #include "efm32gg_lesense_st.h" |
Kojto | 98:8ab26030e058 | 287 | #include "efm32gg_lesense_buf.h" |
Kojto | 98:8ab26030e058 | 288 | #include "efm32gg_lesense_ch.h" |
Kojto | 98:8ab26030e058 | 289 | #include "efm32gg_lesense.h" |
Kojto | 98:8ab26030e058 | 290 | #include "efm32gg_rtc.h" |
Kojto | 98:8ab26030e058 | 291 | #include "efm32gg_letimer.h" |
Kojto | 98:8ab26030e058 | 292 | #include "efm32gg_ebi.h" |
Kojto | 98:8ab26030e058 | 293 | #include "efm32gg_usart.h" |
Kojto | 98:8ab26030e058 | 294 | #include "efm32gg_timer_cc.h" |
Kojto | 98:8ab26030e058 | 295 | #include "efm32gg_timer.h" |
Kojto | 98:8ab26030e058 | 296 | #include "efm32gg_acmp.h" |
Kojto | 98:8ab26030e058 | 297 | #include "efm32gg_i2c.h" |
Kojto | 98:8ab26030e058 | 298 | #include "efm32gg_gpio_p.h" |
Kojto | 98:8ab26030e058 | 299 | #include "efm32gg_gpio.h" |
Kojto | 98:8ab26030e058 | 300 | #include "efm32gg_vcmp.h" |
Kojto | 98:8ab26030e058 | 301 | #include "efm32gg_prs_ch.h" |
Kojto | 98:8ab26030e058 | 302 | #include "efm32gg_prs.h" |
Kojto | 98:8ab26030e058 | 303 | #include "efm32gg_leuart.h" |
Kojto | 98:8ab26030e058 | 304 | #include "efm32gg_pcnt.h" |
Kojto | 98:8ab26030e058 | 305 | #include "efm32gg_adc.h" |
Kojto | 98:8ab26030e058 | 306 | #include "efm32gg_dac.h" |
Kojto | 98:8ab26030e058 | 307 | #include "efm32gg_lcd.h" |
Kojto | 98:8ab26030e058 | 308 | #include "efm32gg_burtc_ret.h" |
Kojto | 98:8ab26030e058 | 309 | #include "efm32gg_burtc.h" |
Kojto | 98:8ab26030e058 | 310 | #include "efm32gg_wdog.h" |
Kojto | 98:8ab26030e058 | 311 | #include "efm32gg_etm.h" |
Kojto | 98:8ab26030e058 | 312 | #include "efm32gg_dma_descriptor.h" |
Kojto | 98:8ab26030e058 | 313 | #include "efm32gg_devinfo.h" |
Kojto | 98:8ab26030e058 | 314 | #include "efm32gg_romtable.h" |
Kojto | 98:8ab26030e058 | 315 | #include "efm32gg_calibrate.h" |
Kojto | 98:8ab26030e058 | 316 | |
Kojto | 98:8ab26030e058 | 317 | /** @} End of group EFM32GG990F1024_Peripheral_TypeDefs */ |
Kojto | 98:8ab26030e058 | 318 | |
Kojto | 98:8ab26030e058 | 319 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 320 | * @defgroup EFM32GG990F1024_Peripheral_Base EFM32GG990F1024 Peripheral Memory Map |
Kojto | 98:8ab26030e058 | 321 | * @{ |
Kojto | 98:8ab26030e058 | 322 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 323 | |
Kojto | 98:8ab26030e058 | 324 | #define DMA_BASE (0x400C2000UL) /**< DMA base address */ |
Kojto | 98:8ab26030e058 | 325 | #define AES_BASE (0x400E0000UL) /**< AES base address */ |
Kojto | 98:8ab26030e058 | 326 | #define USB_BASE (0x400C4000UL) /**< USB base address */ |
Kojto | 98:8ab26030e058 | 327 | #define MSC_BASE (0x400C0000UL) /**< MSC base address */ |
Kojto | 98:8ab26030e058 | 328 | #define EMU_BASE (0x400C6000UL) /**< EMU base address */ |
Kojto | 98:8ab26030e058 | 329 | #define RMU_BASE (0x400CA000UL) /**< RMU base address */ |
Kojto | 98:8ab26030e058 | 330 | #define CMU_BASE (0x400C8000UL) /**< CMU base address */ |
Kojto | 98:8ab26030e058 | 331 | #define LESENSE_BASE (0x4008C000UL) /**< LESENSE base address */ |
Kojto | 98:8ab26030e058 | 332 | #define RTC_BASE (0x40080000UL) /**< RTC base address */ |
Kojto | 98:8ab26030e058 | 333 | #define LETIMER0_BASE (0x40082000UL) /**< LETIMER0 base address */ |
Kojto | 98:8ab26030e058 | 334 | #define EBI_BASE (0x40008000UL) /**< EBI base address */ |
Kojto | 98:8ab26030e058 | 335 | #define USART0_BASE (0x4000C000UL) /**< USART0 base address */ |
Kojto | 98:8ab26030e058 | 336 | #define USART1_BASE (0x4000C400UL) /**< USART1 base address */ |
Kojto | 98:8ab26030e058 | 337 | #define USART2_BASE (0x4000C800UL) /**< USART2 base address */ |
Kojto | 98:8ab26030e058 | 338 | #define UART0_BASE (0x4000E000UL) /**< UART0 base address */ |
Kojto | 98:8ab26030e058 | 339 | #define UART1_BASE (0x4000E400UL) /**< UART1 base address */ |
Kojto | 98:8ab26030e058 | 340 | #define TIMER0_BASE (0x40010000UL) /**< TIMER0 base address */ |
Kojto | 98:8ab26030e058 | 341 | #define TIMER1_BASE (0x40010400UL) /**< TIMER1 base address */ |
Kojto | 98:8ab26030e058 | 342 | #define TIMER2_BASE (0x40010800UL) /**< TIMER2 base address */ |
Kojto | 98:8ab26030e058 | 343 | #define TIMER3_BASE (0x40010C00UL) /**< TIMER3 base address */ |
Kojto | 98:8ab26030e058 | 344 | #define ACMP0_BASE (0x40001000UL) /**< ACMP0 base address */ |
Kojto | 98:8ab26030e058 | 345 | #define ACMP1_BASE (0x40001400UL) /**< ACMP1 base address */ |
Kojto | 98:8ab26030e058 | 346 | #define I2C0_BASE (0x4000A000UL) /**< I2C0 base address */ |
Kojto | 98:8ab26030e058 | 347 | #define I2C1_BASE (0x4000A400UL) /**< I2C1 base address */ |
Kojto | 98:8ab26030e058 | 348 | #define GPIO_BASE (0x40006000UL) /**< GPIO base address */ |
Kojto | 98:8ab26030e058 | 349 | #define VCMP_BASE (0x40000000UL) /**< VCMP base address */ |
Kojto | 98:8ab26030e058 | 350 | #define PRS_BASE (0x400CC000UL) /**< PRS base address */ |
Kojto | 98:8ab26030e058 | 351 | #define LEUART0_BASE (0x40084000UL) /**< LEUART0 base address */ |
Kojto | 98:8ab26030e058 | 352 | #define LEUART1_BASE (0x40084400UL) /**< LEUART1 base address */ |
Kojto | 98:8ab26030e058 | 353 | #define PCNT0_BASE (0x40086000UL) /**< PCNT0 base address */ |
Kojto | 98:8ab26030e058 | 354 | #define PCNT1_BASE (0x40086400UL) /**< PCNT1 base address */ |
Kojto | 98:8ab26030e058 | 355 | #define PCNT2_BASE (0x40086800UL) /**< PCNT2 base address */ |
Kojto | 98:8ab26030e058 | 356 | #define ADC0_BASE (0x40002000UL) /**< ADC0 base address */ |
Kojto | 98:8ab26030e058 | 357 | #define DAC0_BASE (0x40004000UL) /**< DAC0 base address */ |
Kojto | 98:8ab26030e058 | 358 | #define LCD_BASE (0x4008A000UL) /**< LCD base address */ |
Kojto | 98:8ab26030e058 | 359 | #define BURTC_BASE (0x40081000UL) /**< BURTC base address */ |
Kojto | 98:8ab26030e058 | 360 | #define WDOG_BASE (0x40088000UL) /**< WDOG base address */ |
Kojto | 98:8ab26030e058 | 361 | #define ETM_BASE (0xE0041000UL) /**< ETM base address */ |
Kojto | 98:8ab26030e058 | 362 | #define CALIBRATE_BASE (0x0FE08000UL) /**< CALIBRATE base address */ |
Kojto | 98:8ab26030e058 | 363 | #define DEVINFO_BASE (0x0FE081B0UL) /**< DEVINFO base address */ |
Kojto | 98:8ab26030e058 | 364 | #define ROMTABLE_BASE (0xE00FFFD0UL) /**< ROMTABLE base address */ |
Kojto | 98:8ab26030e058 | 365 | #define LOCKBITS_BASE (0x0FE04000UL) /**< Lock-bits page base address */ |
Kojto | 98:8ab26030e058 | 366 | #define USERDATA_BASE (0x0FE00000UL) /**< User data page base address */ |
Kojto | 98:8ab26030e058 | 367 | |
Kojto | 98:8ab26030e058 | 368 | /** @} End of group EFM32GG990F1024_Peripheral_Base */ |
Kojto | 98:8ab26030e058 | 369 | |
Kojto | 98:8ab26030e058 | 370 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 371 | * @defgroup EFM32GG990F1024_Peripheral_Declaration EFM32GG990F1024 Peripheral Declarations |
Kojto | 98:8ab26030e058 | 372 | * @{ |
Kojto | 98:8ab26030e058 | 373 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 374 | |
Kojto | 98:8ab26030e058 | 375 | #define DMA ((DMA_TypeDef *) DMA_BASE) /**< DMA base pointer */ |
Kojto | 98:8ab26030e058 | 376 | #define AES ((AES_TypeDef *) AES_BASE) /**< AES base pointer */ |
Kojto | 98:8ab26030e058 | 377 | #define USB ((USB_TypeDef *) USB_BASE) /**< USB base pointer */ |
Kojto | 98:8ab26030e058 | 378 | #define MSC ((MSC_TypeDef *) MSC_BASE) /**< MSC base pointer */ |
Kojto | 98:8ab26030e058 | 379 | #define EMU ((EMU_TypeDef *) EMU_BASE) /**< EMU base pointer */ |
Kojto | 98:8ab26030e058 | 380 | #define RMU ((RMU_TypeDef *) RMU_BASE) /**< RMU base pointer */ |
Kojto | 98:8ab26030e058 | 381 | #define CMU ((CMU_TypeDef *) CMU_BASE) /**< CMU base pointer */ |
Kojto | 98:8ab26030e058 | 382 | #define LESENSE ((LESENSE_TypeDef *) LESENSE_BASE) /**< LESENSE base pointer */ |
Kojto | 98:8ab26030e058 | 383 | #define RTC ((RTC_TypeDef *) RTC_BASE) /**< RTC base pointer */ |
Kojto | 98:8ab26030e058 | 384 | #define LETIMER0 ((LETIMER_TypeDef *) LETIMER0_BASE) /**< LETIMER0 base pointer */ |
Kojto | 98:8ab26030e058 | 385 | #define EBI ((EBI_TypeDef *) EBI_BASE) /**< EBI base pointer */ |
Kojto | 98:8ab26030e058 | 386 | #define USART0 ((USART_TypeDef *) USART0_BASE) /**< USART0 base pointer */ |
Kojto | 98:8ab26030e058 | 387 | #define USART1 ((USART_TypeDef *) USART1_BASE) /**< USART1 base pointer */ |
Kojto | 98:8ab26030e058 | 388 | #define USART2 ((USART_TypeDef *) USART2_BASE) /**< USART2 base pointer */ |
Kojto | 98:8ab26030e058 | 389 | #define UART0 ((USART_TypeDef *) UART0_BASE) /**< UART0 base pointer */ |
Kojto | 98:8ab26030e058 | 390 | #define UART1 ((USART_TypeDef *) UART1_BASE) /**< UART1 base pointer */ |
Kojto | 98:8ab26030e058 | 391 | #define TIMER0 ((TIMER_TypeDef *) TIMER0_BASE) /**< TIMER0 base pointer */ |
Kojto | 98:8ab26030e058 | 392 | #define TIMER1 ((TIMER_TypeDef *) TIMER1_BASE) /**< TIMER1 base pointer */ |
Kojto | 98:8ab26030e058 | 393 | #define TIMER2 ((TIMER_TypeDef *) TIMER2_BASE) /**< TIMER2 base pointer */ |
Kojto | 98:8ab26030e058 | 394 | #define TIMER3 ((TIMER_TypeDef *) TIMER3_BASE) /**< TIMER3 base pointer */ |
Kojto | 98:8ab26030e058 | 395 | #define ACMP0 ((ACMP_TypeDef *) ACMP0_BASE) /**< ACMP0 base pointer */ |
Kojto | 98:8ab26030e058 | 396 | #define ACMP1 ((ACMP_TypeDef *) ACMP1_BASE) /**< ACMP1 base pointer */ |
Kojto | 98:8ab26030e058 | 397 | #define I2C0 ((I2C_TypeDef *) I2C0_BASE) /**< I2C0 base pointer */ |
Kojto | 98:8ab26030e058 | 398 | #define I2C1 ((I2C_TypeDef *) I2C1_BASE) /**< I2C1 base pointer */ |
Kojto | 98:8ab26030e058 | 399 | #define GPIO ((GPIO_TypeDef *) GPIO_BASE) /**< GPIO base pointer */ |
Kojto | 98:8ab26030e058 | 400 | #define VCMP ((VCMP_TypeDef *) VCMP_BASE) /**< VCMP base pointer */ |
Kojto | 98:8ab26030e058 | 401 | #define PRS ((PRS_TypeDef *) PRS_BASE) /**< PRS base pointer */ |
Kojto | 98:8ab26030e058 | 402 | #define LEUART0 ((LEUART_TypeDef *) LEUART0_BASE) /**< LEUART0 base pointer */ |
Kojto | 98:8ab26030e058 | 403 | #define LEUART1 ((LEUART_TypeDef *) LEUART1_BASE) /**< LEUART1 base pointer */ |
Kojto | 98:8ab26030e058 | 404 | #define PCNT0 ((PCNT_TypeDef *) PCNT0_BASE) /**< PCNT0 base pointer */ |
Kojto | 98:8ab26030e058 | 405 | #define PCNT1 ((PCNT_TypeDef *) PCNT1_BASE) /**< PCNT1 base pointer */ |
Kojto | 98:8ab26030e058 | 406 | #define PCNT2 ((PCNT_TypeDef *) PCNT2_BASE) /**< PCNT2 base pointer */ |
Kojto | 98:8ab26030e058 | 407 | #define ADC0 ((ADC_TypeDef *) ADC0_BASE) /**< ADC0 base pointer */ |
Kojto | 98:8ab26030e058 | 408 | #define DAC0 ((DAC_TypeDef *) DAC0_BASE) /**< DAC0 base pointer */ |
Kojto | 98:8ab26030e058 | 409 | #define LCD ((LCD_TypeDef *) LCD_BASE) /**< LCD base pointer */ |
Kojto | 98:8ab26030e058 | 410 | #define BURTC ((BURTC_TypeDef *) BURTC_BASE) /**< BURTC base pointer */ |
Kojto | 98:8ab26030e058 | 411 | #define WDOG ((WDOG_TypeDef *) WDOG_BASE) /**< WDOG base pointer */ |
Kojto | 98:8ab26030e058 | 412 | #define ETM ((ETM_TypeDef *) ETM_BASE) /**< ETM base pointer */ |
Kojto | 98:8ab26030e058 | 413 | #define CALIBRATE ((CALIBRATE_TypeDef *) CALIBRATE_BASE) /**< CALIBRATE base pointer */ |
Kojto | 98:8ab26030e058 | 414 | #define DEVINFO ((DEVINFO_TypeDef *) DEVINFO_BASE) /**< DEVINFO base pointer */ |
Kojto | 98:8ab26030e058 | 415 | #define ROMTABLE ((ROMTABLE_TypeDef *) ROMTABLE_BASE) /**< ROMTABLE base pointer */ |
Kojto | 98:8ab26030e058 | 416 | |
Kojto | 98:8ab26030e058 | 417 | /** @} End of group EFM32GG990F1024_Peripheral_Declaration */ |
Kojto | 98:8ab26030e058 | 418 | |
Kojto | 98:8ab26030e058 | 419 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 420 | * @defgroup EFM32GG990F1024_BitFields EFM32GG990F1024 Bit Fields |
Kojto | 98:8ab26030e058 | 421 | * @{ |
Kojto | 98:8ab26030e058 | 422 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 423 | |
Kojto | 98:8ab26030e058 | 424 | #include "efm32gg_prs_signals.h" |
Kojto | 98:8ab26030e058 | 425 | #include "efm32gg_dmareq.h" |
Kojto | 98:8ab26030e058 | 426 | #include "efm32gg_dmactrl.h" |
Kojto | 98:8ab26030e058 | 427 | #include "efm32gg_uart.h" |
Kojto | 98:8ab26030e058 | 428 | |
Kojto | 98:8ab26030e058 | 429 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 430 | * @defgroup EFM32GG990F1024_UNLOCK EFM32GG990F1024 Unlock Codes |
Kojto | 98:8ab26030e058 | 431 | * @{ |
Kojto | 98:8ab26030e058 | 432 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 433 | #define MSC_UNLOCK_CODE 0x1B71 /**< MSC unlock code */ |
Kojto | 98:8ab26030e058 | 434 | #define EMU_UNLOCK_CODE 0xADE8 /**< EMU unlock code */ |
Kojto | 98:8ab26030e058 | 435 | #define CMU_UNLOCK_CODE 0x580E /**< CMU unlock code */ |
Kojto | 98:8ab26030e058 | 436 | #define TIMER_UNLOCK_CODE 0xCE80 /**< TIMER unlock code */ |
Kojto | 98:8ab26030e058 | 437 | #define GPIO_UNLOCK_CODE 0xA534 /**< GPIO unlock code */ |
Kojto | 98:8ab26030e058 | 438 | #define BURTC_UNLOCK_CODE 0xAEE8 /**< BURTC unlock code */ |
Kojto | 98:8ab26030e058 | 439 | |
Kojto | 98:8ab26030e058 | 440 | /** @} End of group EFM32GG990F1024_UNLOCK */ |
Kojto | 98:8ab26030e058 | 441 | |
Kojto | 98:8ab26030e058 | 442 | /** @} End of group EFM32GG990F1024_BitFields */ |
Kojto | 98:8ab26030e058 | 443 | |
Kojto | 98:8ab26030e058 | 444 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 445 | * @defgroup EFM32GG990F1024_Alternate_Function EFM32GG990F1024 Alternate Function |
Kojto | 98:8ab26030e058 | 446 | * @{ |
Kojto | 98:8ab26030e058 | 447 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 448 | |
Kojto | 98:8ab26030e058 | 449 | #include "efm32gg_af_ports.h" |
Kojto | 98:8ab26030e058 | 450 | #include "efm32gg_af_pins.h" |
Kojto | 98:8ab26030e058 | 451 | |
Kojto | 98:8ab26030e058 | 452 | /** @} End of group EFM32GG990F1024_Alternate_Function */ |
Kojto | 98:8ab26030e058 | 453 | |
Kojto | 98:8ab26030e058 | 454 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 455 | * @brief Set the value of a bit field within a register. |
Kojto | 98:8ab26030e058 | 456 | * |
Kojto | 98:8ab26030e058 | 457 | * @param REG |
Kojto | 98:8ab26030e058 | 458 | * The register to update |
Kojto | 98:8ab26030e058 | 459 | * @param MASK |
Kojto | 98:8ab26030e058 | 460 | * The mask for the bit field to update |
Kojto | 98:8ab26030e058 | 461 | * @param VALUE |
Kojto | 98:8ab26030e058 | 462 | * The value to write to the bit field |
Kojto | 98:8ab26030e058 | 463 | * @param OFFSET |
Kojto | 98:8ab26030e058 | 464 | * The number of bits that the field is offset within the register. |
Kojto | 98:8ab26030e058 | 465 | * 0 (zero) means LSB. |
Kojto | 98:8ab26030e058 | 466 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 467 | #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ |
Kojto | 98:8ab26030e058 | 468 | REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK)); |
Kojto | 98:8ab26030e058 | 469 | |
Kojto | 98:8ab26030e058 | 470 | /** @} End of group EFM32GG990F1024 */ |
Kojto | 98:8ab26030e058 | 471 | |
Kojto | 98:8ab26030e058 | 472 | /** @} End of group Parts */ |
Kojto | 98:8ab26030e058 | 473 | |
Kojto | 98:8ab26030e058 | 474 | #ifdef __cplusplus |
Kojto | 98:8ab26030e058 | 475 | } |
Kojto | 98:8ab26030e058 | 476 | #endif |
Kojto | 98:8ab26030e058 | 477 | #endif /* __EFM32GG990F1024_H */ |