34 #ifndef EFM32LG995F256_H
35 #define EFM32LG995F256_H
113 #define __MPU_PRESENT 1
114 #define __NVIC_PRIO_BITS 3
115 #define __Vendor_SysTickConfig 0
125 #define _EFM32_GIANT_FAMILY 1
127 #define _SILICON_LABS_32B_PLATFORM_1
128 #define _SILICON_LABS_32B_PLATFORM 1
131 #if !defined(EFM32LG995F256)
132 #define EFM32LG995F256 1
136 #define PART_NUMBER "EFM32LG995F256"
139 #define FLASH_MEM_BASE ((uint32_t) 0x0UL)
140 #define FLASH_MEM_SIZE ((uint32_t) 0x10000000UL)
141 #define FLASH_MEM_END ((uint32_t) 0xFFFFFFFUL)
142 #define FLASH_MEM_BITS ((uint32_t) 0x28UL)
143 #define AES_MEM_BASE ((uint32_t) 0x400E0000UL)
144 #define AES_MEM_SIZE ((uint32_t) 0x400UL)
145 #define AES_MEM_END ((uint32_t) 0x400E03FFUL)
146 #define AES_MEM_BITS ((uint32_t) 0x10UL)
147 #define USBC_MEM_BASE ((uint32_t) 0x40100000UL)
148 #define USBC_MEM_SIZE ((uint32_t) 0x40000UL)
149 #define USBC_MEM_END ((uint32_t) 0x4013FFFFUL)
150 #define USBC_MEM_BITS ((uint32_t) 0x18UL)
151 #define EBI_CODE_MEM_BASE ((uint32_t) 0x12000000UL)
152 #define EBI_CODE_MEM_SIZE ((uint32_t) 0xE000000UL)
153 #define EBI_CODE_MEM_END ((uint32_t) 0x1FFFFFFFUL)
154 #define EBI_CODE_MEM_BITS ((uint32_t) 0x28UL)
155 #define PER_MEM_BASE ((uint32_t) 0x40000000UL)
156 #define PER_MEM_SIZE ((uint32_t) 0xE0000UL)
157 #define PER_MEM_END ((uint32_t) 0x400DFFFFUL)
158 #define PER_MEM_BITS ((uint32_t) 0x20UL)
159 #define RAM_MEM_BASE ((uint32_t) 0x20000000UL)
160 #define RAM_MEM_SIZE ((uint32_t) 0x40000UL)
161 #define RAM_MEM_END ((uint32_t) 0x2003FFFFUL)
162 #define RAM_MEM_BITS ((uint32_t) 0x18UL)
163 #define RAM_CODE_MEM_BASE ((uint32_t) 0x10000000UL)
164 #define RAM_CODE_MEM_SIZE ((uint32_t) 0x20000UL)
165 #define RAM_CODE_MEM_END ((uint32_t) 0x1001FFFFUL)
166 #define RAM_CODE_MEM_BITS ((uint32_t) 0x17UL)
167 #define EBI_MEM_BASE ((uint32_t) 0x80000000UL)
168 #define EBI_MEM_SIZE ((uint32_t) 0x40000000UL)
169 #define EBI_MEM_END ((uint32_t) 0xBFFFFFFFUL)
170 #define EBI_MEM_BITS ((uint32_t) 0x30UL)
173 #define BITBAND_PER_BASE ((uint32_t) 0x42000000UL)
174 #define BITBAND_RAM_BASE ((uint32_t) 0x22000000UL)
177 #define FLASH_BASE (0x00000000UL)
178 #define FLASH_SIZE (0x00040000UL)
179 #define FLASH_PAGE_SIZE 2048
180 #define SRAM_BASE (0x20000000UL)
181 #define SRAM_SIZE (0x00008000UL)
182 #define __CM3_REV 0x201
183 #define PRS_CHAN_COUNT 12
184 #define DMA_CHAN_COUNT 12
187 #define AFCHAN_MAX 163
188 #define AFCHANLOC_MAX 7
190 #define AFACHAN_MAX 53
194 #define USART_PRESENT
195 #define USART_COUNT 3
198 #define TIMER_PRESENT
199 #define TIMER_COUNT 4
202 #define LEUART_PRESENT
203 #define LEUART_COUNT 2
204 #define LETIMER_PRESENT
205 #define LETIMER_COUNT 1
232 #define LESENSE_PRESENT
233 #define LESENSE_COUNT 1
244 #define OPAMP_PRESENT
245 #define OPAMP_COUNT 1
250 #define BURTC_PRESENT
251 #define BURTC_COUNT 1
252 #define HFXTAL_PRESENT
253 #define HFXTAL_COUNT 1
254 #define LFXTAL_PRESENT
255 #define LFXTAL_COUNT 1
262 #define BOOTLOADER_PRESENT
263 #define BOOTLOADER_COUNT 1
264 #define ANALOG_PRESENT
265 #define ANALOG_COUNT 1
267 #include "core_cm3.h"
327 #define DMA_BASE (0x400C2000UL)
328 #define AES_BASE (0x400E0000UL)
329 #define USB_BASE (0x400C4000UL)
330 #define MSC_BASE (0x400C0000UL)
331 #define EMU_BASE (0x400C6000UL)
332 #define RMU_BASE (0x400CA000UL)
333 #define CMU_BASE (0x400C8000UL)
334 #define LESENSE_BASE (0x4008C000UL)
335 #define EBI_BASE (0x40008000UL)
336 #define USART0_BASE (0x4000C000UL)
337 #define USART1_BASE (0x4000C400UL)
338 #define USART2_BASE (0x4000C800UL)
339 #define UART0_BASE (0x4000E000UL)
340 #define UART1_BASE (0x4000E400UL)
341 #define TIMER0_BASE (0x40010000UL)
342 #define TIMER1_BASE (0x40010400UL)
343 #define TIMER2_BASE (0x40010800UL)
344 #define TIMER3_BASE (0x40010C00UL)
345 #define ACMP0_BASE (0x40001000UL)
346 #define ACMP1_BASE (0x40001400UL)
347 #define LEUART0_BASE (0x40084000UL)
348 #define LEUART1_BASE (0x40084400UL)
349 #define RTC_BASE (0x40080000UL)
350 #define LETIMER0_BASE (0x40082000UL)
351 #define PCNT0_BASE (0x40086000UL)
352 #define PCNT1_BASE (0x40086400UL)
353 #define PCNT2_BASE (0x40086800UL)
354 #define I2C0_BASE (0x4000A000UL)
355 #define I2C1_BASE (0x4000A400UL)
356 #define GPIO_BASE (0x40006000UL)
357 #define VCMP_BASE (0x40000000UL)
358 #define PRS_BASE (0x400CC000UL)
359 #define ADC0_BASE (0x40002000UL)
360 #define DAC0_BASE (0x40004000UL)
361 #define LCD_BASE (0x4008A000UL)
362 #define BURTC_BASE (0x40081000UL)
363 #define WDOG_BASE (0x40088000UL)
364 #define ETM_BASE (0xE0041000UL)
365 #define CALIBRATE_BASE (0x0FE08000UL)
366 #define DEVINFO_BASE (0x0FE081B0UL)
367 #define ROMTABLE_BASE (0xE00FFFD0UL)
368 #define LOCKBITS_BASE (0x0FE04000UL)
369 #define USERDATA_BASE (0x0FE00000UL)
378 #define DMA ((DMA_TypeDef *) DMA_BASE)
379 #define AES ((AES_TypeDef *) AES_BASE)
380 #define USB ((USB_TypeDef *) USB_BASE)
381 #define MSC ((MSC_TypeDef *) MSC_BASE)
382 #define EMU ((EMU_TypeDef *) EMU_BASE)
383 #define RMU ((RMU_TypeDef *) RMU_BASE)
384 #define CMU ((CMU_TypeDef *) CMU_BASE)
385 #define LESENSE ((LESENSE_TypeDef *) LESENSE_BASE)
386 #define EBI ((EBI_TypeDef *) EBI_BASE)
387 #define USART0 ((USART_TypeDef *) USART0_BASE)
388 #define USART1 ((USART_TypeDef *) USART1_BASE)
389 #define USART2 ((USART_TypeDef *) USART2_BASE)
390 #define UART0 ((USART_TypeDef *) UART0_BASE)
391 #define UART1 ((USART_TypeDef *) UART1_BASE)
392 #define TIMER0 ((TIMER_TypeDef *) TIMER0_BASE)
393 #define TIMER1 ((TIMER_TypeDef *) TIMER1_BASE)
394 #define TIMER2 ((TIMER_TypeDef *) TIMER2_BASE)
395 #define TIMER3 ((TIMER_TypeDef *) TIMER3_BASE)
396 #define ACMP0 ((ACMP_TypeDef *) ACMP0_BASE)
397 #define ACMP1 ((ACMP_TypeDef *) ACMP1_BASE)
398 #define LEUART0 ((LEUART_TypeDef *) LEUART0_BASE)
399 #define LEUART1 ((LEUART_TypeDef *) LEUART1_BASE)
400 #define RTC ((RTC_TypeDef *) RTC_BASE)
401 #define LETIMER0 ((LETIMER_TypeDef *) LETIMER0_BASE)
402 #define PCNT0 ((PCNT_TypeDef *) PCNT0_BASE)
403 #define PCNT1 ((PCNT_TypeDef *) PCNT1_BASE)
404 #define PCNT2 ((PCNT_TypeDef *) PCNT2_BASE)
405 #define I2C0 ((I2C_TypeDef *) I2C0_BASE)
406 #define I2C1 ((I2C_TypeDef *) I2C1_BASE)
407 #define GPIO ((GPIO_TypeDef *) GPIO_BASE)
408 #define VCMP ((VCMP_TypeDef *) VCMP_BASE)
409 #define PRS ((PRS_TypeDef *) PRS_BASE)
410 #define ADC0 ((ADC_TypeDef *) ADC0_BASE)
411 #define DAC0 ((DAC_TypeDef *) DAC0_BASE)
412 #define LCD ((LCD_TypeDef *) LCD_BASE)
413 #define BURTC ((BURTC_TypeDef *) BURTC_BASE)
414 #define WDOG ((WDOG_TypeDef *) WDOG_BASE)
415 #define ETM ((ETM_TypeDef *) ETM_BASE)
416 #define CALIBRATE ((CALIBRATE_TypeDef *) CALIBRATE_BASE)
417 #define DEVINFO ((DEVINFO_TypeDef *) DEVINFO_BASE)
418 #define ROMTABLE ((ROMTABLE_TypeDef *) ROMTABLE_BASE)
427 #include "efm32lg_prs_signals.h"
436 #define MSC_UNLOCK_CODE 0x1B71
437 #define EMU_UNLOCK_CODE 0xADE8
438 #define CMU_UNLOCK_CODE 0x580E
439 #define TIMER_UNLOCK_CODE 0xCE80
440 #define GPIO_UNLOCK_CODE 0xA534
441 #define BURTC_UNLOCK_CODE 0xAEE8
452 #include "efm32lg_af_ports.h"
470 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \
471 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
EFM32LG_RMU register and bit field definitions.
EFM32LG_PRS_CH register and bit field definitions.
EFM32LG_LESENSE register and bit field definitions.
EFM32LG_VCMP register and bit field definitions.
EFM32LG_PRS register and bit field definitions.
EFM32LG_DEVINFO register and bit field definitions.
EFM32LG_RTC register and bit field definitions.
EFM32LG_USART register and bit field definitions.
EFM32LG_EMU register and bit field definitions.
CMSIS Cortex-M3 System Layer for EFM32LG devices.
EFM32LG_USB_DOEP register and bit field definitions.
EFM32LG_CALIBRATE register and bit field definitions.
EFM32LG_LESENSE_CH register and bit field definitions.
EFM32LG_CMU register and bit field definitions.
EFM32LG_ETM register and bit field definitions.
EFM32LG_USB register and bit field definitions.
EFM32LG_UART register and bit field definitions.
EFM32LG_GPIO_P register and bit field definitions.
EFM32LG_LCD register and bit field definitions.
EFM32LG_I2C register and bit field definitions.
EFM32LG_EBI register and bit field definitions.
EFM32LG_DMA_DESCRIPTOR register and bit field definitions.
EFM32LG_TIMER register and bit field definitions.
EFM32LG_DMACTRL register and bit field definitions.
EFM32LG_PCNT register and bit field definitions.
EFM32LG_LESENSE_ST register and bit field definitions.
EFM32LG_ADC register and bit field definitions.
EFM32LG_WDOG register and bit field definitions.
EFM32LG_BURTC register and bit field definitions.
EFM32LG_DMAREQ register and bit field definitions.
EFM32LG_USB_DIEP register and bit field definitions.
EFM32LG_LESENSE_BUF register and bit field definitions.
EFM32LG_TIMER_CC register and bit field definitions.
EFM32LG_GPIO register and bit field definitions.
EFM32LG_ACMP register and bit field definitions.
EFM32LG_LETIMER register and bit field definitions.
EFM32LG_ROMTABLE register and bit field definitions.
EFM32LG_AES register and bit field definitions.
EFM32LG_BURTC_RET register and bit field definitions.
EFM32LG_MSC register and bit field definitions.
EFM32LG_DAC register and bit field definitions.
EFM32LG_USB_HC register and bit field definitions.
EFM32LG_LEUART register and bit field definitions.
EFM32LG_AF_PINS register and bit field definitions.
EFM32LG_DMA_CH register and bit field definitions.
EFM32LG_DMA register and bit field definitions.