34 #ifndef EFM32ZG222F32_H
35 #define EFM32ZG222F32_H
86 #define __MPU_PRESENT 0
87 #define __VTOR_PRESENT 1
88 #define __NVIC_PRIO_BITS 2
89 #define __Vendor_SysTickConfig 0
99 #define _EFM32_ZERO_FAMILY 1
101 #define _SILICON_LABS_32B_PLATFORM_1
102 #define _SILICON_LABS_32B_PLATFORM 1
105 #if !defined(EFM32ZG222F32)
106 #define EFM32ZG222F32 1
110 #define PART_NUMBER "EFM32ZG222F32"
113 #define FLASH_MEM_BASE ((uint32_t) 0x0UL)
114 #define FLASH_MEM_SIZE ((uint32_t) 0x10000000UL)
115 #define FLASH_MEM_END ((uint32_t) 0xFFFFFFFUL)
116 #define FLASH_MEM_BITS ((uint32_t) 0x28UL)
117 #define AES_MEM_BASE ((uint32_t) 0x400E0000UL)
118 #define AES_MEM_SIZE ((uint32_t) 0x400UL)
119 #define AES_MEM_END ((uint32_t) 0x400E03FFUL)
120 #define AES_MEM_BITS ((uint32_t) 0x10UL)
121 #define PER_MEM_BASE ((uint32_t) 0x40000000UL)
122 #define PER_MEM_SIZE ((uint32_t) 0xE0000UL)
123 #define PER_MEM_END ((uint32_t) 0x400DFFFFUL)
124 #define PER_MEM_BITS ((uint32_t) 0x20UL)
125 #define RAM_MEM_BASE ((uint32_t) 0x20000000UL)
126 #define RAM_MEM_SIZE ((uint32_t) 0x40000UL)
127 #define RAM_MEM_END ((uint32_t) 0x2003FFFFUL)
128 #define RAM_MEM_BITS ((uint32_t) 0x18UL)
129 #define RAM_CODE_MEM_BASE ((uint32_t) 0x10000000UL)
130 #define RAM_CODE_MEM_SIZE ((uint32_t) 0x20000UL)
131 #define RAM_CODE_MEM_END ((uint32_t) 0x1001FFFFUL)
132 #define RAM_CODE_MEM_BITS ((uint32_t) 0x17UL)
135 #define FLASH_BASE (0x00000000UL)
136 #define FLASH_SIZE (0x00008000UL)
137 #define FLASH_PAGE_SIZE 1024
138 #define SRAM_BASE (0x20000000UL)
139 #define SRAM_SIZE (0x00001000UL)
140 #define __CM0PLUS_REV 0x001
141 #define PRS_CHAN_COUNT 4
142 #define DMA_CHAN_COUNT 4
145 #define AFCHAN_MAX 33
146 #define AFCHANLOC_MAX 7
148 #define AFACHAN_MAX 25
152 #define TIMER_PRESENT
153 #define TIMER_COUNT 2
156 #define USART_PRESENT
157 #define USART_COUNT 1
162 #define LEUART_PRESENT
163 #define LEUART_COUNT 1
190 #define HFXTAL_PRESENT
191 #define HFXTAL_COUNT 1
192 #define LFXTAL_PRESENT
193 #define LFXTAL_COUNT 1
198 #define BOOTLOADER_PRESENT
199 #define BOOTLOADER_COUNT 1
200 #define ANALOG_PRESENT
201 #define ANALOG_COUNT 1
205 #define ARM_MATH_CM0PLUS
206 #include "arm_math.h"
207 #include "core_cm0plus.h"
251 #define AES_BASE (0x400E0000UL)
252 #define DMA_BASE (0x400C2000UL)
253 #define MSC_BASE (0x400C0000UL)
254 #define EMU_BASE (0x400C6000UL)
255 #define RMU_BASE (0x400CA000UL)
256 #define CMU_BASE (0x400C8000UL)
257 #define TIMER0_BASE (0x40010000UL)
258 #define TIMER1_BASE (0x40010400UL)
259 #define ACMP0_BASE (0x40001000UL)
260 #define USART1_BASE (0x4000C400UL)
261 #define PRS_BASE (0x400CC000UL)
262 #define IDAC0_BASE (0x40004000UL)
263 #define GPIO_BASE (0x40006000UL)
264 #define VCMP_BASE (0x40000000UL)
265 #define ADC0_BASE (0x40002000UL)
266 #define LEUART0_BASE (0x40084000UL)
267 #define PCNT0_BASE (0x40086000UL)
268 #define I2C0_BASE (0x4000A000UL)
269 #define RTC_BASE (0x40080000UL)
270 #define WDOG_BASE (0x40088000UL)
271 #define CALIBRATE_BASE (0x0FE08000UL)
272 #define DEVINFO_BASE (0x0FE081B0UL)
273 #define ROMTABLE_BASE (0xF00FFFD0UL)
274 #define LOCKBITS_BASE (0x0FE04000UL)
275 #define USERDATA_BASE (0x0FE00000UL)
284 #define AES ((AES_TypeDef *) AES_BASE)
285 #define DMA ((DMA_TypeDef *) DMA_BASE)
286 #define MSC ((MSC_TypeDef *) MSC_BASE)
287 #define EMU ((EMU_TypeDef *) EMU_BASE)
288 #define RMU ((RMU_TypeDef *) RMU_BASE)
289 #define CMU ((CMU_TypeDef *) CMU_BASE)
290 #define TIMER0 ((TIMER_TypeDef *) TIMER0_BASE)
291 #define TIMER1 ((TIMER_TypeDef *) TIMER1_BASE)
292 #define ACMP0 ((ACMP_TypeDef *) ACMP0_BASE)
293 #define USART1 ((USART_TypeDef *) USART1_BASE)
294 #define PRS ((PRS_TypeDef *) PRS_BASE)
295 #define IDAC0 ((IDAC_TypeDef *) IDAC0_BASE)
296 #define GPIO ((GPIO_TypeDef *) GPIO_BASE)
297 #define VCMP ((VCMP_TypeDef *) VCMP_BASE)
298 #define ADC0 ((ADC_TypeDef *) ADC0_BASE)
299 #define LEUART0 ((LEUART_TypeDef *) LEUART0_BASE)
300 #define PCNT0 ((PCNT_TypeDef *) PCNT0_BASE)
301 #define I2C0 ((I2C_TypeDef *) I2C0_BASE)
302 #define RTC ((RTC_TypeDef *) RTC_BASE)
303 #define WDOG ((WDOG_TypeDef *) WDOG_BASE)
304 #define CALIBRATE ((CALIBRATE_TypeDef *) CALIBRATE_BASE)
305 #define DEVINFO ((DEVINFO_TypeDef *) DEVINFO_BASE)
306 #define ROMTABLE ((ROMTABLE_TypeDef *) ROMTABLE_BASE)
315 #include "efm32zg_prs_signals.h"
323 #define MSC_UNLOCK_CODE 0x1B71
324 #define EMU_UNLOCK_CODE 0xADE8
325 #define CMU_UNLOCK_CODE 0x580E
326 #define TIMER_UNLOCK_CODE 0xCE80
327 #define GPIO_UNLOCK_CODE 0xA534
338 #include "efm32zg_af_ports.h"
356 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \
357 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
EFM32ZG_PRS_CH register and bit field definitions.
EFM32ZG_DMA_CH register and bit field definitions.
EFM32ZG_PCNT register and bit field definitions.
EFM32ZG_DMA_DESCRIPTOR register and bit field definitions.
EFM32ZG_DEVINFO register and bit field definitions.
EFM32ZG_USART register and bit field definitions.
EFM32ZG_TIMER register and bit field definitions.
EFM32ZG_ACMP register and bit field definitions.
EFM32ZG_AES register and bit field definitions.
EFM32ZG_RTC register and bit field definitions.
EFM32ZG_WDOG register and bit field definitions.
EFM32ZG_DMA register and bit field definitions.
EFM32ZG_TIMER_CC register and bit field definitions.
EFM32ZG_MSC register and bit field definitions.
EFM32ZG_GPIO_P register and bit field definitions.
EFM32ZG_CALIBRATE register and bit field definitions.
EFM32ZG_VCMP register and bit field definitions.
EFM32ZG_LEUART register and bit field definitions.
EFM32ZG_RMU register and bit field definitions.
EFM32ZG_IDAC register and bit field definitions.
EFM32ZG_ADC register and bit field definitions.
CMSIS Cortex-M System Layer for EFM32 devices.
EFM32ZG_DMAREQ register and bit field definitions.
EFM32ZG_AF_PINS register and bit field definitions.
EFM32ZG_DMACTRL register and bit field definitions.
EFM32ZG_ROMTABLE register and bit field definitions.
EFM32ZG_PRS register and bit field definitions.
EFM32ZG_EMU register and bit field definitions.
EFM32ZG_GPIO register and bit field definitions.
EFM32ZG_I2C register and bit field definitions.
EFM32ZG_CMU register and bit field definitions.