efm32gg980f1024.h 23 KB

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