1 /***************************************************************************//** 2 * @file 3 * @brief CMSIS Cortex-M Peripheral Access Layer Header File 4 * for EFM32PG1B100F256IM32 5 ******************************************************************************* 6 * # License 7 * <b>Copyright 2022 Silicon Laboratories Inc. www.silabs.com</b> 8 ******************************************************************************* 9 * 10 * SPDX-License-Identifier: Zlib 11 * 12 * The licensor of this software is Silicon Laboratories Inc. 13 * 14 * This software is provided 'as-is', without any express or implied 15 * warranty. In no event will the authors be held liable for any damages 16 * arising from the use of this software. 17 * 18 * Permission is granted to anyone to use this software for any purpose, 19 * including commercial applications, and to alter it and redistribute it 20 * freely, subject to the following restrictions: 21 * 22 * 1. The origin of this software must not be misrepresented; you must not 23 * claim that you wrote the original software. If you use this software 24 * in a product, an acknowledgment in the product documentation would be 25 * appreciated but is not required. 26 * 2. Altered source versions must be plainly marked as such, and must not be 27 * misrepresented as being the original software. 28 * 3. This notice may not be removed or altered from any source distribution. 29 * 30 ******************************************************************************/ 31 32 #if defined(__ICCARM__) 33 #pragma system_include /* Treat file as system include file. */ 34 #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) 35 #pragma clang system_header /* Treat file as system include file. */ 36 #endif 37 38 #ifndef EFM32PG1B100F256IM32_H 39 #define EFM32PG1B100F256IM32_H 40 41 #ifdef __cplusplus 42 extern "C" { 43 #endif 44 45 /***************************************************************************//** 46 * @addtogroup Parts 47 * @{ 48 ******************************************************************************/ 49 50 /***************************************************************************//** 51 * @defgroup EFM32PG1B100F256IM32 EFM32PG1B100F256IM32 52 * @{ 53 ******************************************************************************/ 54 55 /** Interrupt Number Definition */ 56 typedef enum IRQn{ 57 /****** Cortex-M4 Processor Exceptions Numbers ********************************************/ 58 NonMaskableInt_IRQn = -14, /*!< 2 Cortex-M4 Non Maskable Interrupt */ 59 HardFault_IRQn = -13, /*!< 3 Cortex-M4 Hard Fault Interrupt */ 60 MemoryManagement_IRQn = -12, /*!< 4 Cortex-M4 Memory Management Interrupt */ 61 BusFault_IRQn = -11, /*!< 5 Cortex-M4 Bus Fault Interrupt */ 62 UsageFault_IRQn = -10, /*!< 6 Cortex-M4 Usage Fault Interrupt */ 63 SVCall_IRQn = -5, /*!< 11 Cortex-M4 SV Call Interrupt */ 64 DebugMonitor_IRQn = -4, /*!< 12 Cortex-M4 Debug Monitor Interrupt */ 65 PendSV_IRQn = -2, /*!< 14 Cortex-M4 Pend SV Interrupt */ 66 SysTick_IRQn = -1, /*!< 15 Cortex-M4 System Tick Interrupt */ 67 68 /****** EFM32PG1B Peripheral Interrupt Numbers ********************************************/ 69 70 EMU_IRQn = 0, /*!< 16+0 EFM32 EMU Interrupt */ 71 WDOG0_IRQn = 2, /*!< 16+2 EFM32 WDOG0 Interrupt */ 72 LDMA_IRQn = 8, /*!< 16+8 EFM32 LDMA Interrupt */ 73 GPIO_EVEN_IRQn = 9, /*!< 16+9 EFM32 GPIO_EVEN Interrupt */ 74 TIMER0_IRQn = 10, /*!< 16+10 EFM32 TIMER0 Interrupt */ 75 USART0_RX_IRQn = 11, /*!< 16+11 EFM32 USART0_RX Interrupt */ 76 USART0_TX_IRQn = 12, /*!< 16+12 EFM32 USART0_TX Interrupt */ 77 ACMP0_IRQn = 13, /*!< 16+13 EFM32 ACMP0 Interrupt */ 78 ADC0_IRQn = 14, /*!< 16+14 EFM32 ADC0 Interrupt */ 79 IDAC0_IRQn = 15, /*!< 16+15 EFM32 IDAC0 Interrupt */ 80 I2C0_IRQn = 16, /*!< 16+16 EFM32 I2C0 Interrupt */ 81 GPIO_ODD_IRQn = 17, /*!< 16+17 EFM32 GPIO_ODD Interrupt */ 82 TIMER1_IRQn = 18, /*!< 16+18 EFM32 TIMER1 Interrupt */ 83 USART1_RX_IRQn = 19, /*!< 16+19 EFM32 USART1_RX Interrupt */ 84 USART1_TX_IRQn = 20, /*!< 16+20 EFM32 USART1_TX Interrupt */ 85 LEUART0_IRQn = 21, /*!< 16+21 EFM32 LEUART0 Interrupt */ 86 PCNT0_IRQn = 22, /*!< 16+22 EFM32 PCNT0 Interrupt */ 87 CMU_IRQn = 23, /*!< 16+23 EFM32 CMU Interrupt */ 88 MSC_IRQn = 24, /*!< 16+24 EFM32 MSC Interrupt */ 89 CRYPTO_IRQn = 25, /*!< 16+25 EFM32 CRYPTO Interrupt */ 90 LETIMER0_IRQn = 26, /*!< 16+26 EFM32 LETIMER0 Interrupt */ 91 RTCC_IRQn = 29, /*!< 16+29 EFM32 RTCC Interrupt */ 92 CRYOTIMER_IRQn = 31, /*!< 16+31 EFM32 CRYOTIMER Interrupt */ 93 FPUEH_IRQn = 33, /*!< 16+33 EFM32 FPUEH Interrupt */ 94 } IRQn_Type; 95 96 /***************************************************************************//** 97 * @defgroup EFM32PG1B100F256IM32_Core Core 98 * @{ 99 * @brief Processor and Core Peripheral Section 100 ******************************************************************************/ 101 #define __MPU_PRESENT 1U /**< Presence of MPU */ 102 #define __FPU_PRESENT 1U /**< Presence of FPU */ 103 #define __VTOR_PRESENT 1U /**< Presence of VTOR register in SCB */ 104 #define __NVIC_PRIO_BITS 3U /**< NVIC interrupt priority bits */ 105 #define __Vendor_SysTickConfig 0U /**< Is 1 if different SysTick counter is used */ 106 107 /** @} End of group EFM32PG1B100F256IM32_Core */ 108 109 /***************************************************************************//** 110 * @defgroup EFM32PG1B100F256IM32_Part Part 111 * @{ 112 ******************************************************************************/ 113 114 /** Part family */ 115 #define _EFM32_PEARL_FAMILY 1 /**< PEARL Gecko MCU Family */ 116 #define _EFM_DEVICE /**< Silicon Labs EFM-type microcontroller */ 117 #define _SILICON_LABS_32B_SERIES_1 /**< Silicon Labs series number */ 118 #define _SILICON_LABS_32B_SERIES 1 /**< Silicon Labs series number */ 119 #define _SILICON_LABS_32B_SERIES_1_CONFIG_1 /**< Series 1, Configuration 1 */ 120 #define _SILICON_LABS_32B_SERIES_1_CONFIG 1 /**< Series 1, Configuration 1 */ 121 #define _SILICON_LABS_GECKO_INTERNAL_SDID 80 /**< Silicon Labs internal use only, may change any time */ 122 #define _SILICON_LABS_GECKO_INTERNAL_SDID_80 /**< Silicon Labs internal use only, may change any time */ 123 #define _SILICON_LABS_32B_PLATFORM_2 /**< @deprecated Silicon Labs platform name */ 124 #define _SILICON_LABS_32B_PLATFORM 2 /**< @deprecated Silicon Labs platform name */ 125 #define _SILICON_LABS_32B_PLATFORM_2_GEN_1 /**< @deprecated Platform 2, generation 1 */ 126 #define _SILICON_LABS_32B_PLATFORM_2_GEN 1 /**< @deprecated Platform 2, generation 1 */ 127 128 /* If part number is not defined as compiler option, define it */ 129 #if !defined(EFM32PG1B100F256IM32) 130 #define EFM32PG1B100F256IM32 1 /**< PEARL Gecko Part */ 131 #endif 132 133 /** Configure part number */ 134 #define PART_NUMBER "EFM32PG1B100F256IM32" /**< Part Number */ 135 136 /** Memory Base addresses and limits */ 137 #define CRYPTO_MEM_BASE (0x400F0000UL) /**< CRYPTO base address */ 138 #define CRYPTO_MEM_SIZE (0x400UL) /**< CRYPTO available address space */ 139 #define CRYPTO_MEM_END (0x400F03FFUL) /**< CRYPTO end address */ 140 #define CRYPTO_MEM_BITS (0x0000000AUL) /**< CRYPTO used bits */ 141 #define RAM_MEM_BASE (0x20000000UL) /**< RAM base address */ 142 #define RAM_MEM_SIZE (0x7C00UL) /**< RAM available address space */ 143 #define RAM_MEM_END (0x20007BFFUL) /**< RAM end address */ 144 #define RAM_MEM_BITS (0x0000000FUL) /**< RAM used bits */ 145 #define PER_BITSET_MEM_BASE (0x46000000UL) /**< PER_BITSET base address */ 146 #define PER_BITSET_MEM_SIZE (0xE8000UL) /**< PER_BITSET available address space */ 147 #define PER_BITSET_MEM_END (0x460E7FFFUL) /**< PER_BITSET end address */ 148 #define PER_BITSET_MEM_BITS (0x00000014UL) /**< PER_BITSET used bits */ 149 #define CRYPTO_BITSET_MEM_BASE (0x460F0000UL) /**< CRYPTO_BITSET base address */ 150 #define CRYPTO_BITSET_MEM_SIZE (0x400UL) /**< CRYPTO_BITSET available address space */ 151 #define CRYPTO_BITSET_MEM_END (0x460F03FFUL) /**< CRYPTO_BITSET end address */ 152 #define CRYPTO_BITSET_MEM_BITS (0x0000000AUL) /**< CRYPTO_BITSET used bits */ 153 #define PER_MEM_BASE (0x40000000UL) /**< PER base address */ 154 #define PER_MEM_SIZE (0xE8000UL) /**< PER available address space */ 155 #define PER_MEM_END (0x400E7FFFUL) /**< PER end address */ 156 #define PER_MEM_BITS (0x00000014UL) /**< PER used bits */ 157 #define CRYPTO_BITCLR_MEM_BASE (0x440F0000UL) /**< CRYPTO_BITCLR base address */ 158 #define CRYPTO_BITCLR_MEM_SIZE (0x400UL) /**< CRYPTO_BITCLR available address space */ 159 #define CRYPTO_BITCLR_MEM_END (0x440F03FFUL) /**< CRYPTO_BITCLR end address */ 160 #define CRYPTO_BITCLR_MEM_BITS (0x0000000AUL) /**< CRYPTO_BITCLR used bits */ 161 #define RAM_CODE_MEM_BASE (0x10000000UL) /**< RAM_CODE base address */ 162 #define RAM_CODE_MEM_SIZE (0x7C00UL) /**< RAM_CODE available address space */ 163 #define RAM_CODE_MEM_END (0x10007BFFUL) /**< RAM_CODE end address */ 164 #define RAM_CODE_MEM_BITS (0x0000000FUL) /**< RAM_CODE used bits */ 165 #define FLASH_MEM_BASE (0x00000000UL) /**< FLASH base address */ 166 #define FLASH_MEM_SIZE (0x10000000UL) /**< FLASH available address space */ 167 #define FLASH_MEM_END (0x0FFFFFFFUL) /**< FLASH end address */ 168 #define FLASH_MEM_BITS (0x0000001CUL) /**< FLASH used bits */ 169 #define PER_BITCLR_MEM_BASE (0x44000000UL) /**< PER_BITCLR base address */ 170 #define PER_BITCLR_MEM_SIZE (0xE8000UL) /**< PER_BITCLR available address space */ 171 #define PER_BITCLR_MEM_END (0x440E7FFFUL) /**< PER_BITCLR end address */ 172 #define PER_BITCLR_MEM_BITS (0x00000014UL) /**< PER_BITCLR used bits */ 173 174 /** Bit banding area */ 175 #define BITBAND_PER_BASE (0x42000000UL) /**< Peripheral Address Space bit-band area */ 176 #define BITBAND_RAM_BASE (0x22000000UL) /**< SRAM Address Space bit-band area */ 177 178 /** Flash and SRAM limits for EFM32PG1B100F256IM32 */ 179 #define FLASH_BASE (0x00000000UL) /**< Flash Base Address */ 180 #define FLASH_SIZE (0x00040000UL) /**< Available Flash Memory */ 181 #define FLASH_PAGE_SIZE 2048U /**< Flash Memory page size */ 182 #define SRAM_BASE (0x20000000UL) /**< SRAM Base Address */ 183 #define SRAM_SIZE (0x00008000UL) /**< Available SRAM Memory */ 184 #define __CM4_REV 0x0001U /**< Cortex-M4 Core revision r0p1 */ 185 #define PRS_CHAN_COUNT 12 /**< Number of PRS channels */ 186 #define DMA_CHAN_COUNT 8 /**< Number of DMA channels */ 187 #define EXT_IRQ_COUNT 34 /**< Number of External (NVIC) interrupts */ 188 189 /** AF channels connect the different on-chip peripherals with the af-mux */ 190 #define AFCHAN_MAX 72U 191 /** AF channel maximum location number */ 192 #define AFCHANLOC_MAX 32U 193 /** Analog AF channels */ 194 #define AFACHAN_MAX 61U 195 196 /* Part number capabilities */ 197 198 #define TIMER_PRESENT /**< TIMER is available in this part */ 199 #define TIMER_COUNT 2 /**< 2 TIMERs available */ 200 #define USART_PRESENT /**< USART is available in this part */ 201 #define USART_COUNT 2 /**< 2 USARTs available */ 202 #define LEUART_PRESENT /**< LEUART is available in this part */ 203 #define LEUART_COUNT 1 /**< 1 LEUARTs available */ 204 #define LETIMER_PRESENT /**< LETIMER is available in this part */ 205 #define LETIMER_COUNT 1 /**< 1 LETIMERs available */ 206 #define PCNT_PRESENT /**< PCNT is available in this part */ 207 #define PCNT_COUNT 1 /**< 1 PCNTs available */ 208 #define I2C_PRESENT /**< I2C is available in this part */ 209 #define I2C_COUNT 1 /**< 1 I2Cs available */ 210 #define ADC_PRESENT /**< ADC is available in this part */ 211 #define ADC_COUNT 1 /**< 1 ADCs available */ 212 #define ACMP_PRESENT /**< ACMP is available in this part */ 213 #define ACMP_COUNT 2 /**< 2 ACMPs available */ 214 #define IDAC_PRESENT /**< IDAC is available in this part */ 215 #define IDAC_COUNT 1 /**< 1 IDACs available */ 216 #define WDOG_PRESENT /**< WDOG is available in this part */ 217 #define WDOG_COUNT 1 /**< 1 WDOGs available */ 218 #define MSC_PRESENT /**< MSC is available in this part */ 219 #define MSC_COUNT 1 /**< 1 MSC available */ 220 #define EMU_PRESENT /**< EMU is available in this part */ 221 #define EMU_COUNT 1 /**< 1 EMU available */ 222 #define RMU_PRESENT /**< RMU is available in this part */ 223 #define RMU_COUNT 1 /**< 1 RMU available */ 224 #define CMU_PRESENT /**< CMU is available in this part */ 225 #define CMU_COUNT 1 /**< 1 CMU available */ 226 #define CRYPTO_PRESENT /**< CRYPTO is available in this part */ 227 #define CRYPTO_COUNT 1 /**< 1 CRYPTO available */ 228 #define GPIO_PRESENT /**< GPIO is available in this part */ 229 #define GPIO_COUNT 1 /**< 1 GPIO available */ 230 #define PRS_PRESENT /**< PRS is available in this part */ 231 #define PRS_COUNT 1 /**< 1 PRS available */ 232 #define LDMA_PRESENT /**< LDMA is available in this part */ 233 #define LDMA_COUNT 1 /**< 1 LDMA available */ 234 #define FPUEH_PRESENT /**< FPUEH is available in this part */ 235 #define FPUEH_COUNT 1 /**< 1 FPUEH available */ 236 #define GPCRC_PRESENT /**< GPCRC is available in this part */ 237 #define GPCRC_COUNT 1 /**< 1 GPCRC available */ 238 #define CRYOTIMER_PRESENT /**< CRYOTIMER is available in this part */ 239 #define CRYOTIMER_COUNT 1 /**< 1 CRYOTIMER available */ 240 #define RTCC_PRESENT /**< RTCC is available in this part */ 241 #define RTCC_COUNT 1 /**< 1 RTCC available */ 242 #define BOOTLOADER_PRESENT /**< BOOTLOADER is available in this part */ 243 #define BOOTLOADER_COUNT 1 /**< 1 BOOTLOADER available */ 244 245 #include "core_cm4.h" /* Cortex-M4 processor and core peripherals */ 246 #include "system_efm32pg1b.h" /* System Header File */ 247 248 /** @} End of group EFM32PG1B100F256IM32_Part */ 249 250 /***************************************************************************//** 251 * @defgroup EFM32PG1B100F256IM32_Peripheral_TypeDefs Peripheral TypeDefs 252 * @{ 253 * @brief Device Specific Peripheral Register Structures 254 ******************************************************************************/ 255 256 #include "efm32pg1b_msc.h" 257 #include "efm32pg1b_emu.h" 258 #include "efm32pg1b_rmu.h" 259 #include "efm32pg1b_cmu.h" 260 #include "efm32pg1b_crypto.h" 261 #include "efm32pg1b_gpio_p.h" 262 #include "efm32pg1b_gpio.h" 263 #include "efm32pg1b_prs_ch.h" 264 #include "efm32pg1b_prs.h" 265 #include "efm32pg1b_ldma_ch.h" 266 #include "efm32pg1b_ldma.h" 267 #include "efm32pg1b_fpueh.h" 268 #include "efm32pg1b_gpcrc.h" 269 #include "efm32pg1b_timer_cc.h" 270 #include "efm32pg1b_timer.h" 271 #include "efm32pg1b_usart.h" 272 #include "efm32pg1b_leuart.h" 273 #include "efm32pg1b_letimer.h" 274 #include "efm32pg1b_cryotimer.h" 275 #include "efm32pg1b_pcnt.h" 276 #include "efm32pg1b_i2c.h" 277 #include "efm32pg1b_adc.h" 278 #include "efm32pg1b_acmp.h" 279 #include "efm32pg1b_idac.h" 280 #include "efm32pg1b_rtcc_cc.h" 281 #include "efm32pg1b_rtcc_ret.h" 282 #include "efm32pg1b_rtcc.h" 283 #include "efm32pg1b_wdog_pch.h" 284 #include "efm32pg1b_wdog.h" 285 #include "efm32pg1b_dma_descriptor.h" 286 #include "efm32pg1b_devinfo.h" 287 #include "efm32pg1b_romtable.h" 288 289 /** @} End of group EFM32PG1B100F256IM32_Peripheral_TypeDefs */ 290 291 /***************************************************************************//** 292 * @defgroup EFM32PG1B100F256IM32_Peripheral_Base Peripheral Memory Map 293 * @{ 294 ******************************************************************************/ 295 296 #define MSC_BASE (0x400E0000UL) /**< MSC base address */ 297 #define EMU_BASE (0x400E3000UL) /**< EMU base address */ 298 #define RMU_BASE (0x400E5000UL) /**< RMU base address */ 299 #define CMU_BASE (0x400E4000UL) /**< CMU base address */ 300 #define CRYPTO_BASE (0x400F0000UL) /**< CRYPTO base address */ 301 #define GPIO_BASE (0x4000A000UL) /**< GPIO base address */ 302 #define PRS_BASE (0x400E6000UL) /**< PRS base address */ 303 #define LDMA_BASE (0x400E2000UL) /**< LDMA base address */ 304 #define FPUEH_BASE (0x400E1000UL) /**< FPUEH base address */ 305 #define GPCRC_BASE (0x4001C000UL) /**< GPCRC base address */ 306 #define TIMER0_BASE (0x40018000UL) /**< TIMER0 base address */ 307 #define TIMER1_BASE (0x40018400UL) /**< TIMER1 base address */ 308 #define USART0_BASE (0x40010000UL) /**< USART0 base address */ 309 #define USART1_BASE (0x40010400UL) /**< USART1 base address */ 310 #define LEUART0_BASE (0x4004A000UL) /**< LEUART0 base address */ 311 #define LETIMER0_BASE (0x40046000UL) /**< LETIMER0 base address */ 312 #define CRYOTIMER_BASE (0x4001E000UL) /**< CRYOTIMER base address */ 313 #define PCNT0_BASE (0x4004E000UL) /**< PCNT0 base address */ 314 #define I2C0_BASE (0x4000C000UL) /**< I2C0 base address */ 315 #define ADC0_BASE (0x40002000UL) /**< ADC0 base address */ 316 #define ACMP0_BASE (0x40000000UL) /**< ACMP0 base address */ 317 #define ACMP1_BASE (0x40000400UL) /**< ACMP1 base address */ 318 #define IDAC0_BASE (0x40006000UL) /**< IDAC0 base address */ 319 #define RTCC_BASE (0x40042000UL) /**< RTCC base address */ 320 #define WDOG0_BASE (0x40052000UL) /**< WDOG0 base address */ 321 #define DEVINFO_BASE (0x0FE081B0UL) /**< DEVINFO base address */ 322 #define ROMTABLE_BASE (0xE00FFFD0UL) /**< ROMTABLE base address */ 323 #define LOCKBITS_BASE (0x0FE04000UL) /**< Lock-bits page base address */ 324 #define USERDATA_BASE (0x0FE00000UL) /**< User data page base address */ 325 326 /** @} End of group EFM32PG1B100F256IM32_Peripheral_Base */ 327 328 /***************************************************************************//** 329 * @defgroup EFM32PG1B100F256IM32_Peripheral_Declaration Peripheral Declarations 330 * @{ 331 ******************************************************************************/ 332 333 #define MSC ((MSC_TypeDef *) MSC_BASE) /**< MSC base pointer */ 334 #define EMU ((EMU_TypeDef *) EMU_BASE) /**< EMU base pointer */ 335 #define RMU ((RMU_TypeDef *) RMU_BASE) /**< RMU base pointer */ 336 #define CMU ((CMU_TypeDef *) CMU_BASE) /**< CMU base pointer */ 337 #define CRYPTO ((CRYPTO_TypeDef *) CRYPTO_BASE) /**< CRYPTO base pointer */ 338 #define GPIO ((GPIO_TypeDef *) GPIO_BASE) /**< GPIO base pointer */ 339 #define PRS ((PRS_TypeDef *) PRS_BASE) /**< PRS base pointer */ 340 #define LDMA ((LDMA_TypeDef *) LDMA_BASE) /**< LDMA base pointer */ 341 #define FPUEH ((FPUEH_TypeDef *) FPUEH_BASE) /**< FPUEH base pointer */ 342 #define GPCRC ((GPCRC_TypeDef *) GPCRC_BASE) /**< GPCRC base pointer */ 343 #define TIMER0 ((TIMER_TypeDef *) TIMER0_BASE) /**< TIMER0 base pointer */ 344 #define TIMER1 ((TIMER_TypeDef *) TIMER1_BASE) /**< TIMER1 base pointer */ 345 #define USART0 ((USART_TypeDef *) USART0_BASE) /**< USART0 base pointer */ 346 #define USART1 ((USART_TypeDef *) USART1_BASE) /**< USART1 base pointer */ 347 #define LEUART0 ((LEUART_TypeDef *) LEUART0_BASE) /**< LEUART0 base pointer */ 348 #define LETIMER0 ((LETIMER_TypeDef *) LETIMER0_BASE) /**< LETIMER0 base pointer */ 349 #define CRYOTIMER ((CRYOTIMER_TypeDef *) CRYOTIMER_BASE) /**< CRYOTIMER base pointer */ 350 #define PCNT0 ((PCNT_TypeDef *) PCNT0_BASE) /**< PCNT0 base pointer */ 351 #define I2C0 ((I2C_TypeDef *) I2C0_BASE) /**< I2C0 base pointer */ 352 #define ADC0 ((ADC_TypeDef *) ADC0_BASE) /**< ADC0 base pointer */ 353 #define ACMP0 ((ACMP_TypeDef *) ACMP0_BASE) /**< ACMP0 base pointer */ 354 #define ACMP1 ((ACMP_TypeDef *) ACMP1_BASE) /**< ACMP1 base pointer */ 355 #define IDAC0 ((IDAC_TypeDef *) IDAC0_BASE) /**< IDAC0 base pointer */ 356 #define RTCC ((RTCC_TypeDef *) RTCC_BASE) /**< RTCC base pointer */ 357 #define WDOG0 ((WDOG_TypeDef *) WDOG0_BASE) /**< WDOG0 base pointer */ 358 #define DEVINFO ((DEVINFO_TypeDef *) DEVINFO_BASE) /**< DEVINFO base pointer */ 359 #define ROMTABLE ((ROMTABLE_TypeDef *) ROMTABLE_BASE) /**< ROMTABLE base pointer */ 360 361 /** @} End of group EFM32PG1B100F256IM32_Peripheral_Declaration */ 362 363 /***************************************************************************//** 364 * @defgroup EFM32PG1B100F256IM32_Peripheral_Offsets Peripheral Offsets 365 * @{ 366 ******************************************************************************/ 367 368 #define TIMER_OFFSET 0x400 /**< Offset in bytes between TIMER instances */ 369 #define USART_OFFSET 0x400 /**< Offset in bytes between USART instances */ 370 #define LEUART_OFFSET 0x400 /**< Offset in bytes between LEUART instances */ 371 #define LETIMER_OFFSET 0x400 /**< Offset in bytes between LETIMER instances */ 372 #define PCNT_OFFSET 0x400 /**< Offset in bytes between PCNT instances */ 373 #define I2C_OFFSET 0x400 /**< Offset in bytes between I2C instances */ 374 #define ADC_OFFSET 0x400 /**< Offset in bytes between ADC instances */ 375 #define ACMP_OFFSET 0x400 /**< Offset in bytes between ACMP instances */ 376 #define IDAC_OFFSET 0x400 /**< Offset in bytes between IDAC instances */ 377 #define WDOG_OFFSET 0x400 /**< Offset in bytes between WDOG instances */ 378 379 /** @} End of group EFM32PG1B100F256IM32_Peripheral_Offsets */ 380 381 /***************************************************************************//** 382 * @defgroup EFM32PG1B100F256IM32_BitFields Bit Fields 383 * @{ 384 ******************************************************************************/ 385 386 #include "efm32pg1b_prs_signals.h" 387 #include "efm32pg1b_dmareq.h" 388 389 /***************************************************************************//** 390 * @defgroup EFM32PG1B100F256IM32_UNLOCK Unlock Codes 391 * @{ 392 ******************************************************************************/ 393 #define MSC_UNLOCK_CODE 0x1B71 /**< MSC unlock code */ 394 #define EMU_UNLOCK_CODE 0xADE8 /**< EMU unlock code */ 395 #define RMU_UNLOCK_CODE 0xE084 /**< RMU unlock code */ 396 #define CMU_UNLOCK_CODE 0x580E /**< CMU unlock code */ 397 #define GPIO_UNLOCK_CODE 0xA534 /**< GPIO unlock code */ 398 #define TIMER_UNLOCK_CODE 0xCE80 /**< TIMER unlock code */ 399 #define RTCC_UNLOCK_CODE 0xAEE8 /**< RTCC unlock code */ 400 401 /** @} End of group EFM32PG1B100F256IM32_UNLOCK */ 402 403 /** @} End of group EFM32PG1B100F256IM32_BitFields */ 404 405 #include "efm32pg1b_af_ports.h" 406 #include "efm32pg1b_af_pins.h" 407 408 /***************************************************************************//** 409 * @brief Set the value of a bit field within a register. 410 * 411 * @param REG 412 * The register to update 413 * @param MASK 414 * The mask for the bit field to update 415 * @param VALUE 416 * The value to write to the bit field 417 * @param OFFSET 418 * The number of bits that the field is offset within the register. 419 * 0 (zero) means LSB. 420 ******************************************************************************/ 421 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ 422 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK)); 423 424 /** @} End of group EFM32PG1B100F256IM32 */ 425 426 /** @} End of group Parts */ 427 428 #ifdef __cplusplus 429 } 430 #endif 431 #endif /* EFM32PG1B100F256IM32_H */ 432