EFM32 Jade Gecko 1 Software Documentation  efm32jg1-doc-5.1.2
efm32jg1b200f256gm48.h
Go to the documentation of this file.
1 /**************************************************************************/
34 #ifndef EFM32JG1B200F256GM48_H
35 #define EFM32JG1B200F256GM48_H
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 /**************************************************************************/
46 /**************************************************************************/
52 typedef enum IRQn
53 {
54 /****** Cortex-M3 Processor Exceptions Numbers ********************************************/
58  BusFault_IRQn = -11,
60  SVCall_IRQn = -5,
62  PendSV_IRQn = -2,
63  SysTick_IRQn = -1,
65 /****** EFM32JG1B Peripheral Interrupt Numbers ********************************************/
66 
67  EMU_IRQn = 0,
68  WDOG0_IRQn = 2,
69  LDMA_IRQn = 8,
71  TIMER0_IRQn = 10,
74  ACMP0_IRQn = 13,
75  ADC0_IRQn = 14,
76  IDAC0_IRQn = 15,
77  I2C0_IRQn = 16,
79  TIMER1_IRQn = 18,
82  LEUART0_IRQn = 21,
83  PCNT0_IRQn = 22,
84  CMU_IRQn = 23,
85  MSC_IRQn = 24,
86  CRYPTO_IRQn = 25,
88  RTCC_IRQn = 29,
90 } IRQn_Type;
91 
92 /**************************************************************************/
97 #define __MPU_PRESENT 1
98 #define __VTOR_PRESENT 1
99 #define __NVIC_PRIO_BITS 3
100 #define __Vendor_SysTickConfig 0
104 /**************************************************************************/
110 #define _EFM32_JADE_FAMILY 1
111 #define _EFM_DEVICE
112 #define _SILICON_LABS_32B_SERIES_1
113 #define _SILICON_LABS_32B_SERIES 1
114 #define _SILICON_LABS_32B_SERIES_1_CONFIG_1
115 #define _SILICON_LABS_32B_SERIES_1_CONFIG 1
116 #define _SILICON_LABS_GECKO_INTERNAL_SDID 80
117 #define _SILICON_LABS_GECKO_INTERNAL_SDID_80
118 #define _SILICON_LABS_32B_PLATFORM_2
119 #define _SILICON_LABS_32B_PLATFORM 2
120 #define _SILICON_LABS_32B_PLATFORM_2_GEN_1
121 #define _SILICON_LABS_32B_PLATFORM_2_GEN 1
123 /* If part number is not defined as compiler option, define it */
124 #if !defined(EFM32JG1B200F256GM48)
125 #define EFM32JG1B200F256GM48 1
126 #endif
127 
129 #define PART_NUMBER "EFM32JG1B200F256GM48"
132 #define FLASH_MEM_BASE ((uint32_t) 0x00000000UL)
133 #define FLASH_MEM_SIZE ((uint32_t) 0x10000000UL)
134 #define FLASH_MEM_END ((uint32_t) 0x0FFFFFFFUL)
135 #define FLASH_MEM_BITS ((uint32_t) 0x0000001CUL)
136 #define RAM_CODE_MEM_BASE ((uint32_t) 0x10000000UL)
137 #define RAM_CODE_MEM_SIZE ((uint32_t) 0x7C00UL)
138 #define RAM_CODE_MEM_END ((uint32_t) 0x10007BFFUL)
139 #define RAM_CODE_MEM_BITS ((uint32_t) 0x0000000FUL)
140 #define PER_BITCLR_MEM_BASE ((uint32_t) 0x44000000UL)
141 #define PER_BITCLR_MEM_SIZE ((uint32_t) 0xE8000UL)
142 #define PER_BITCLR_MEM_END ((uint32_t) 0x440E7FFFUL)
143 #define PER_BITCLR_MEM_BITS ((uint32_t) 0x00000014UL)
144 #define CRYPTO_BITSET_MEM_BASE ((uint32_t) 0x460F0000UL)
145 #define CRYPTO_BITSET_MEM_SIZE ((uint32_t) 0x400UL)
146 #define CRYPTO_BITSET_MEM_END ((uint32_t) 0x460F03FFUL)
147 #define CRYPTO_BITSET_MEM_BITS ((uint32_t) 0x0000000AUL)
148 #define CRYPTO_MEM_BASE ((uint32_t) 0x400F0000UL)
149 #define CRYPTO_MEM_SIZE ((uint32_t) 0x400UL)
150 #define CRYPTO_MEM_END ((uint32_t) 0x400F03FFUL)
151 #define CRYPTO_MEM_BITS ((uint32_t) 0x0000000AUL)
152 #define CRYPTO_BITCLR_MEM_BASE ((uint32_t) 0x440F0000UL)
153 #define CRYPTO_BITCLR_MEM_SIZE ((uint32_t) 0x400UL)
154 #define CRYPTO_BITCLR_MEM_END ((uint32_t) 0x440F03FFUL)
155 #define CRYPTO_BITCLR_MEM_BITS ((uint32_t) 0x0000000AUL)
156 #define PER_BITSET_MEM_BASE ((uint32_t) 0x46000000UL)
157 #define PER_BITSET_MEM_SIZE ((uint32_t) 0xE8000UL)
158 #define PER_BITSET_MEM_END ((uint32_t) 0x460E7FFFUL)
159 #define PER_BITSET_MEM_BITS ((uint32_t) 0x00000014UL)
160 #define PER_MEM_BASE ((uint32_t) 0x40000000UL)
161 #define PER_MEM_SIZE ((uint32_t) 0xE8000UL)
162 #define PER_MEM_END ((uint32_t) 0x400E7FFFUL)
163 #define PER_MEM_BITS ((uint32_t) 0x00000014UL)
164 #define RAM_MEM_BASE ((uint32_t) 0x20000000UL)
165 #define RAM_MEM_SIZE ((uint32_t) 0x7C00UL)
166 #define RAM_MEM_END ((uint32_t) 0x20007BFFUL)
167 #define RAM_MEM_BITS ((uint32_t) 0x0000000FUL)
170 #define BITBAND_PER_BASE ((uint32_t) 0x42000000UL)
171 #define BITBAND_RAM_BASE ((uint32_t) 0x22000000UL)
174 #define FLASH_BASE (0x00000000UL)
175 #define FLASH_SIZE (0x00040000UL)
176 #define FLASH_PAGE_SIZE 2048
177 #define SRAM_BASE (0x20000000UL)
178 #define SRAM_SIZE (0x00008000UL)
179 #define __CM3_REV 0x201
180 #define PRS_CHAN_COUNT 12
181 #define DMA_CHAN_COUNT 8
182 #define EXT_IRQ_COUNT 34
185 #define AFCHAN_MAX 72
186 #define AFCHANLOC_MAX 32
187 
188 #define AFACHAN_MAX 61
189 
190 /* Part number capabilities */
191 
192 #define TIMER_PRESENT
193 #define TIMER_COUNT 2
194 #define USART_PRESENT
195 #define USART_COUNT 2
196 #define LEUART_PRESENT
197 #define LEUART_COUNT 1
198 #define LETIMER_PRESENT
199 #define LETIMER_COUNT 1
200 #define PCNT_PRESENT
201 #define PCNT_COUNT 1
202 #define I2C_PRESENT
203 #define I2C_COUNT 1
204 #define ADC_PRESENT
205 #define ADC_COUNT 1
206 #define ACMP_PRESENT
207 #define ACMP_COUNT 2
208 #define IDAC_PRESENT
209 #define IDAC_COUNT 1
210 #define WDOG_PRESENT
211 #define WDOG_COUNT 1
212 #define MSC_PRESENT
213 #define MSC_COUNT 1
214 #define EMU_PRESENT
215 #define EMU_COUNT 1
216 #define RMU_PRESENT
217 #define RMU_COUNT 1
218 #define CMU_PRESENT
219 #define CMU_COUNT 1
220 #define CRYPTO_PRESENT
221 #define CRYPTO_COUNT 1
222 #define GPIO_PRESENT
223 #define GPIO_COUNT 1
224 #define PRS_PRESENT
225 #define PRS_COUNT 1
226 #define LDMA_PRESENT
227 #define LDMA_COUNT 1
228 #define GPCRC_PRESENT
229 #define GPCRC_COUNT 1
230 #define CRYOTIMER_PRESENT
231 #define CRYOTIMER_COUNT 1
232 #define RTCC_PRESENT
233 #define RTCC_COUNT 1
234 #define BOOTLOADER_PRESENT
235 #define BOOTLOADER_COUNT 1
236 
237 #include "core_cm3.h" /* Cortex-M3 processor and core peripherals */
238 #include "system_efm32jg1b.h" /* System Header File */
239 
242 /**************************************************************************/
248 #include "efm32jg1b_msc.h"
249 #include "efm32jg1b_emu.h"
250 #include "efm32jg1b_rmu.h"
251 #include "efm32jg1b_cmu.h"
252 #include "efm32jg1b_crypto.h"
253 #include "efm32jg1b_gpio_p.h"
254 #include "efm32jg1b_gpio.h"
255 #include "efm32jg1b_prs_ch.h"
256 #include "efm32jg1b_prs.h"
257 #include "efm32jg1b_ldma_ch.h"
258 #include "efm32jg1b_ldma.h"
259 #include "efm32jg1b_gpcrc.h"
260 #include "efm32jg1b_timer_cc.h"
261 #include "efm32jg1b_timer.h"
262 #include "efm32jg1b_usart.h"
263 #include "efm32jg1b_leuart.h"
264 #include "efm32jg1b_letimer.h"
265 #include "efm32jg1b_cryotimer.h"
266 #include "efm32jg1b_pcnt.h"
267 #include "efm32jg1b_i2c.h"
268 #include "efm32jg1b_adc.h"
269 #include "efm32jg1b_acmp.h"
270 #include "efm32jg1b_idac.h"
271 #include "efm32jg1b_rtcc_cc.h"
272 #include "efm32jg1b_rtcc_ret.h"
273 #include "efm32jg1b_rtcc.h"
274 #include "efm32jg1b_wdog_pch.h"
275 #include "efm32jg1b_wdog.h"
277 #include "efm32jg1b_devinfo.h"
278 #include "efm32jg1b_romtable.h"
279 
282 /**************************************************************************/
287 #define MSC_BASE (0x400E0000UL)
288 #define EMU_BASE (0x400E3000UL)
289 #define RMU_BASE (0x400E5000UL)
290 #define CMU_BASE (0x400E4000UL)
291 #define CRYPTO_BASE (0x400F0000UL)
292 #define GPIO_BASE (0x4000A000UL)
293 #define PRS_BASE (0x400E6000UL)
294 #define LDMA_BASE (0x400E2000UL)
295 #define GPCRC_BASE (0x4001C000UL)
296 #define TIMER0_BASE (0x40018000UL)
297 #define TIMER1_BASE (0x40018400UL)
298 #define USART0_BASE (0x40010000UL)
299 #define USART1_BASE (0x40010400UL)
300 #define LEUART0_BASE (0x4004A000UL)
301 #define LETIMER0_BASE (0x40046000UL)
302 #define CRYOTIMER_BASE (0x4001E000UL)
303 #define PCNT0_BASE (0x4004E000UL)
304 #define I2C0_BASE (0x4000C000UL)
305 #define ADC0_BASE (0x40002000UL)
306 #define ACMP0_BASE (0x40000000UL)
307 #define ACMP1_BASE (0x40000400UL)
308 #define IDAC0_BASE (0x40006000UL)
309 #define RTCC_BASE (0x40042000UL)
310 #define WDOG0_BASE (0x40052000UL)
311 #define DEVINFO_BASE (0x0FE081B0UL)
312 #define ROMTABLE_BASE (0xE00FFFD0UL)
313 #define LOCKBITS_BASE (0x0FE04000UL)
314 #define USERDATA_BASE (0x0FE00000UL)
318 /**************************************************************************/
323 #define MSC ((MSC_TypeDef *) MSC_BASE)
324 #define EMU ((EMU_TypeDef *) EMU_BASE)
325 #define RMU ((RMU_TypeDef *) RMU_BASE)
326 #define CMU ((CMU_TypeDef *) CMU_BASE)
327 #define CRYPTO ((CRYPTO_TypeDef *) CRYPTO_BASE)
328 #define GPIO ((GPIO_TypeDef *) GPIO_BASE)
329 #define PRS ((PRS_TypeDef *) PRS_BASE)
330 #define LDMA ((LDMA_TypeDef *) LDMA_BASE)
331 #define GPCRC ((GPCRC_TypeDef *) GPCRC_BASE)
332 #define TIMER0 ((TIMER_TypeDef *) TIMER0_BASE)
333 #define TIMER1 ((TIMER_TypeDef *) TIMER1_BASE)
334 #define USART0 ((USART_TypeDef *) USART0_BASE)
335 #define USART1 ((USART_TypeDef *) USART1_BASE)
336 #define LEUART0 ((LEUART_TypeDef *) LEUART0_BASE)
337 #define LETIMER0 ((LETIMER_TypeDef *) LETIMER0_BASE)
338 #define CRYOTIMER ((CRYOTIMER_TypeDef *) CRYOTIMER_BASE)
339 #define PCNT0 ((PCNT_TypeDef *) PCNT0_BASE)
340 #define I2C0 ((I2C_TypeDef *) I2C0_BASE)
341 #define ADC0 ((ADC_TypeDef *) ADC0_BASE)
342 #define ACMP0 ((ACMP_TypeDef *) ACMP0_BASE)
343 #define ACMP1 ((ACMP_TypeDef *) ACMP1_BASE)
344 #define IDAC0 ((IDAC_TypeDef *) IDAC0_BASE)
345 #define RTCC ((RTCC_TypeDef *) RTCC_BASE)
346 #define WDOG0 ((WDOG_TypeDef *) WDOG0_BASE)
347 #define DEVINFO ((DEVINFO_TypeDef *) DEVINFO_BASE)
348 #define ROMTABLE ((ROMTABLE_TypeDef *) ROMTABLE_BASE)
352 /**************************************************************************/
357 #define TIMER_OFFSET 0x400
358 #define USART_OFFSET 0x400
359 #define LEUART_OFFSET 0x400
360 #define LETIMER_OFFSET 0x400
361 #define PCNT_OFFSET 0x400
362 #define I2C_OFFSET 0x400
363 #define ADC_OFFSET 0x400
364 #define ACMP_OFFSET 0x400
365 #define IDAC_OFFSET 0x400
366 #define WDOG_OFFSET 0x400
371 /**************************************************************************/
376 #include "efm32jg1b_prs_signals.h"
377 #include "efm32jg1b_dmareq.h"
378 
379 /**************************************************************************/
383 #define MSC_UNLOCK_CODE 0x1B71
384 #define EMU_UNLOCK_CODE 0xADE8
385 #define RMU_UNLOCK_CODE 0xE084
386 #define CMU_UNLOCK_CODE 0x580E
387 #define GPIO_UNLOCK_CODE 0xA534
388 #define TIMER_UNLOCK_CODE 0xCE80
389 #define RTCC_UNLOCK_CODE 0xAEE8
395 /**************************************************************************/
400 #include "efm32jg1b_af_ports.h"
401 #include "efm32jg1b_af_pins.h"
402 
405 /**************************************************************************/
418 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \
419  REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
420 
425 #ifdef __cplusplus
426 }
427 #endif
428 #endif /* EFM32JG1B200F256GM48_H */
EFM32JG1B_GPCRC register and bit field definitions.
EFM32JG1B_DEVINFO register and bit field definitions.
EFM32JG1B_LDMA register and bit field definitions.
EFM32JG1B_LEUART register and bit field definitions.
EFM32JG1B_CMU register and bit field definitions.
EFM32JG1B_TIMER_CC register and bit field definitions.
EFM32JG1B_EMU register and bit field definitions.
EFM32JG1B_RTCC_CC register and bit field definitions.
EFM32JG1B_LETIMER register and bit field definitions.
EFM32JG1B_ROMTABLE register and bit field definitions.
EFM32JG1B_PCNT register and bit field definitions.
EFM32JG1B_RMU register and bit field definitions.
EFM32JG1B_WDOG register and bit field definitions.
EFM32JG1B_ACMP register and bit field definitions.
EFM32JG1B_LDMA_CH register and bit field definitions.
EFM32JG1B_PRS_CH register and bit field definitions.
EFM32JG1B_GPIO_P register and bit field definitions.
EFM32JG1B_AF_PINS register and bit field definitions.
EFM32JG1B_USART register and bit field definitions.
EFM32JG1B_RTCC_RET register and bit field definitions.
EFM32JG1B_I2C register and bit field definitions.
EFM32JG1B_DMA_DESCRIPTOR register and bit field definitions.
EFM32JG1B_CRYPTO register and bit field definitions.
EFM32JG1B_GPIO register and bit field definitions.
EFM32JG1B_ADC register and bit field definitions.
EFM32JG1B_PRS register and bit field definitions.
EFM32JG1B_RTCC register and bit field definitions.
EFM32JG1B_IDAC register and bit field definitions.
EFM32JG1B_MSC register and bit field definitions.
CMSIS Cortex-M3/M4 System Layer for EFM32 devices.
EFM32JG1B_CRYOTIMER register and bit field definitions.
EFM32JG1B_DMAREQ register and bit field definitions.
enum IRQn IRQn_Type
EFM32JG1B_WDOG_PCH register and bit field definitions.
EFM32JG1B_TIMER register and bit field definitions.