RTEMS  5.0.0
same70q21.h
1 /* ---------------------------------------------------------------------------- */
2 /* Atmel Microcontroller Software Support */
3 /* SAM Software Package License */
4 /* ---------------------------------------------------------------------------- */
5 /* Copyright (c) 2015, Atmel Corporation */
6 /* */
7 /* All rights reserved. */
8 /* */
9 /* Redistribution and use in source and binary forms, with or without */
10 /* modification, are permitted provided that the following condition is met: */
11 /* */
12 /* - Redistributions of source code must retain the above copyright notice, */
13 /* this list of conditions and the disclaimer below. */
14 /* */
15 /* Atmel's name may not be used to endorse or promote products derived from */
16 /* this software without specific prior written permission. */
17 /* */
18 /* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR */
19 /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
20 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */
21 /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, */
22 /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
23 /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */
24 /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
25 /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
26 /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
27 /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
28 /* ---------------------------------------------------------------------------- */
29 
30 #ifndef _SAME70Q21_
31 #define _SAME70Q21_
32 
41 
42 #ifdef __cplusplus
43  extern "C" {
44 #endif
45 
46 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
47 #include <stdint.h>
48 #endif
49 
50 /* ************************************************************************** */
51 /* CMSIS DEFINITIONS FOR SAME70Q21 */
52 /* ************************************************************************** */
55 
57 typedef enum IRQn
58 {
59 /****** Cortex-M7 Processor Exceptions Numbers ******************************/
63  BusFault_IRQn = -11,
65  SVCall_IRQn = -5,
67  PendSV_IRQn = -2,
68  SysTick_IRQn = -1,
69 /****** SAME70Q21 specific Interrupt Numbers *********************************/
70 
71  SUPC_IRQn = 0,
72  RSTC_IRQn = 1,
73  RTC_IRQn = 2,
74  RTT_IRQn = 3,
75  WDT_IRQn = 4,
76  PMC_IRQn = 5,
77  EFC_IRQn = 6,
78  UART0_IRQn = 7,
79  UART1_IRQn = 8,
80  PIOA_IRQn = 10,
81  PIOB_IRQn = 11,
82  PIOC_IRQn = 12,
83  USART0_IRQn = 13,
84  USART1_IRQn = 14,
85  USART2_IRQn = 15,
86  PIOD_IRQn = 16,
87  PIOE_IRQn = 17,
88  HSMCI_IRQn = 18,
89  TWIHS0_IRQn = 19,
90  TWIHS1_IRQn = 20,
91  SPI0_IRQn = 21,
92  SSC_IRQn = 22,
93  TC0_IRQn = 23,
94  TC1_IRQn = 24,
95  TC2_IRQn = 25,
96  TC3_IRQn = 26,
97  TC4_IRQn = 27,
98  TC5_IRQn = 28,
99  AFEC0_IRQn = 29,
100  DACC_IRQn = 30,
101  PWM0_IRQn = 31,
102  ICM_IRQn = 32,
103  ACC_IRQn = 33,
104  USBHS_IRQn = 34,
105  MCAN0_IRQn = 35,
107  MCAN1_IRQn = 37,
109  GMAC_IRQn = 39,
110  AFEC1_IRQn = 40,
111  TWIHS2_IRQn = 41,
112  SPI1_IRQn = 42,
113  QSPI_IRQn = 43,
114  UART2_IRQn = 44,
115  UART3_IRQn = 45,
116  UART4_IRQn = 46,
117  TC6_IRQn = 47,
118  TC7_IRQn = 48,
119  TC8_IRQn = 49,
120  TC9_IRQn = 50,
121  TC10_IRQn = 51,
122  TC11_IRQn = 52,
123  AES_IRQn = 56,
124  TRNG_IRQn = 57,
125  XDMAC_IRQn = 58,
126  ISI_IRQn = 59,
127  PWM1_IRQn = 60,
128  SDRAMC_IRQn = 62,
129  RSWDT_IRQn = 63,
132 } IRQn_Type;
133 
134 typedef struct _DeviceVectors
135 {
136  /* Stack pointer */
137  void* pvStack;
138 
139  /* Cortex-M handlers */
140  void* pfnReset_Handler;
141  void* pfnNMI_Handler;
142  void* pfnHardFault_Handler;
143  void* pfnMemManage_Handler;
144  void* pfnBusFault_Handler;
145  void* pfnUsageFault_Handler;
146  void* pfnReserved1_Handler;
147  void* pfnReserved2_Handler;
148  void* pfnReserved3_Handler;
149  void* pfnReserved4_Handler;
150  void* pfnSVC_Handler;
151  void* pfnDebugMon_Handler;
152  void* pfnReserved5_Handler;
153  void* pfnPendSV_Handler;
154  void* pfnSysTick_Handler;
155 
156  /* Peripheral handlers */
157  void* pfnSUPC_Handler; /* 0 Supply Controller */
158  void* pfnRSTC_Handler; /* 1 Reset Controller */
159  void* pfnRTC_Handler; /* 2 Real Time Clock */
160  void* pfnRTT_Handler; /* 3 Real Time Timer */
161  void* pfnWDT_Handler; /* 4 Watchdog Timer */
162  void* pfnPMC_Handler; /* 5 Power Management Controller */
163  void* pfnEFC_Handler; /* 6 Enhanced Embedded Flash Controller */
164  void* pfnUART0_Handler; /* 7 UART 0 */
165  void* pfnUART1_Handler; /* 8 UART 1 */
166  void* pvReserved9;
167  void* pfnPIOA_Handler; /* 10 Parallel I/O Controller A */
168  void* pfnPIOB_Handler; /* 11 Parallel I/O Controller B */
169  void* pfnPIOC_Handler; /* 12 Parallel I/O Controller C */
170  void* pfnUSART0_Handler; /* 13 USART 0 */
171  void* pfnUSART1_Handler; /* 14 USART 1 */
172  void* pfnUSART2_Handler; /* 15 USART 2 */
173  void* pfnPIOD_Handler; /* 16 Parallel I/O Controller D */
174  void* pfnPIOE_Handler; /* 17 Parallel I/O Controller E */
175  void* pfnHSMCI_Handler; /* 18 Multimedia Card Interface */
176  void* pfnTWIHS0_Handler; /* 19 Two Wire Interface 0 HS */
177  void* pfnTWIHS1_Handler; /* 20 Two Wire Interface 1 HS */
178  void* pfnSPI0_Handler; /* 21 Serial Peripheral Interface 0 */
179  void* pfnSSC_Handler; /* 22 Synchronous Serial Controller */
180  void* pfnTC0_Handler; /* 23 Timer/Counter 0 */
181  void* pfnTC1_Handler; /* 24 Timer/Counter 1 */
182  void* pfnTC2_Handler; /* 25 Timer/Counter 2 */
183  void* pfnTC3_Handler; /* 26 Timer/Counter 3 */
184  void* pfnTC4_Handler; /* 27 Timer/Counter 4 */
185  void* pfnTC5_Handler; /* 28 Timer/Counter 5 */
186  void* pfnAFEC0_Handler; /* 29 Analog Front End 0 */
187  void* pfnDACC_Handler; /* 30 Digital To Analog Converter */
188  void* pfnPWM0_Handler; /* 31 Pulse Width Modulation 0 */
189  void* pfnICM_Handler; /* 32 Integrity Check Monitor */
190  void* pfnACC_Handler; /* 33 Analog Comparator */
191  void* pfnUSBHS_Handler; /* 34 USB Host / Device Controller */
192  void* pfnMCAN0_Handler; /* 35 MCAN Controller 0 */
193  void* pfnMCAN0_Line1_Handler; /* 36 MCAN Controller 0 */
194  void* pfnMCAN1_Handler; /* 37 MCAN Controller 1 */
195  void* pfnMCAN1_Line1_Handler; /* 38 MCAN Controller 1 */
196  void* pfnGMAC_Handler; /* 39 Ethernet MAC */
197  void* pfnAFEC1_Handler; /* 40 Analog Front End 1 */
198  void* pfnTWIHS2_Handler; /* 41 Two Wire Interface 2 HS */
199  void* pfnSPI1_Handler; /* 42 Serial Peripheral Interface 1 */
200  void* pfnQSPI_Handler; /* 43 Quad I/O Serial Peripheral Interface */
201  void* pfnUART2_Handler; /* 44 UART 2 */
202  void* pfnUART3_Handler; /* 45 UART 3 */
203  void* pfnUART4_Handler; /* 46 UART 4 */
204  void* pfnTC6_Handler; /* 47 Timer/Counter 6 */
205  void* pfnTC7_Handler; /* 48 Timer/Counter 7 */
206  void* pfnTC8_Handler; /* 49 Timer/Counter 8 */
207  void* pfnTC9_Handler; /* 50 Timer/Counter 9 */
208  void* pfnTC10_Handler; /* 51 Timer/Counter 10 */
209  void* pfnTC11_Handler; /* 52 Timer/Counter 11 */
210  void* pvReserved53;
211  void* pvReserved54;
212  void* pvReserved55;
213  void* pfnAES_Handler; /* 56 AES */
214  void* pfnTRNG_Handler; /* 57 True Random Generator */
215  void* pfnXDMAC_Handler; /* 58 DMA */
216  void* pfnISI_Handler; /* 59 Camera Interface */
217  void* pfnPWM1_Handler; /* 60 Pulse Width Modulation 1 */
218  void* pvReserved61;
219  void* pfnSDRAMC_Handler; /* 62 SDRAM Controller */
220  void* pfnRSWDT_Handler; /* 63 Reinforced Secure Watchdog Timer */
221 } DeviceVectors;
222 
223 /* Cortex-M7 core handlers */
224 void Reset_Handler ( void );
225 void NMI_Handler ( void );
226 void HardFault_Handler ( void );
227 void MemManage_Handler ( void );
228 void BusFault_Handler ( void );
229 void UsageFault_Handler ( void );
230 void SVC_Handler ( void );
231 void DebugMon_Handler ( void );
232 void PendSV_Handler ( void );
233 void SysTick_Handler ( void );
234 
235 /* Peripherals handlers */
236 void ACC_Handler ( void );
237 void AES_Handler ( void );
238 void AFEC0_Handler ( void );
239 void AFEC1_Handler ( void );
240 void DACC_Handler ( void );
241 void EFC_Handler ( void );
242 void GMAC_Handler ( void );
243 void HSMCI_Handler ( void );
244 void ICM_Handler ( void );
245 void ISI_Handler ( void );
246 void MCAN0_Handler ( void );
247 void MCAN0_Line1_Handler ( void );
248 void MCAN1_Handler ( void );
249 void MCAN1_Line1_Handler ( void );
250 void PIOA_Handler ( void );
251 void PIOB_Handler ( void );
252 void PIOC_Handler ( void );
253 void PIOD_Handler ( void );
254 void PIOE_Handler ( void );
255 void PMC_Handler ( void );
256 void PWM0_Handler ( void );
257 void PWM1_Handler ( void );
258 void QSPI_Handler ( void );
259 void RSTC_Handler ( void );
260 void RSWDT_Handler ( void );
261 void RTC_Handler ( void );
262 void RTT_Handler ( void );
263 void SDRAMC_Handler ( void );
264 void SPI0_Handler ( void );
265 void SPI1_Handler ( void );
266 void SSC_Handler ( void );
267 void SUPC_Handler ( void );
268 void TC0_Handler ( void );
269 void TC1_Handler ( void );
270 void TC2_Handler ( void );
271 void TC3_Handler ( void );
272 void TC4_Handler ( void );
273 void TC5_Handler ( void );
274 void TC6_Handler ( void );
275 void TC7_Handler ( void );
276 void TC8_Handler ( void );
277 void TC9_Handler ( void );
278 void TC10_Handler ( void );
279 void TC11_Handler ( void );
280 void TRNG_Handler ( void );
281 void TWIHS0_Handler ( void );
282 void TWIHS1_Handler ( void );
283 void TWIHS2_Handler ( void );
284 void UART0_Handler ( void );
285 void UART1_Handler ( void );
286 void UART2_Handler ( void );
287 void UART3_Handler ( void );
288 void UART4_Handler ( void );
289 void USART0_Handler ( void );
290 void USART1_Handler ( void );
291 void USART2_Handler ( void );
292 void USBHS_Handler ( void );
293 void WDT_Handler ( void );
294 void XDMAC_Handler ( void );
295 
300 #define __CM7_REV 0x0000
301 #define __MPU_PRESENT 1
302 #define __NVIC_PRIO_BITS 3
303 #define __FPU_PRESENT 1
304 #define __FPU_DP 1
305 #define __ICACHE_PRESENT 1
306 #define __DCACHE_PRESENT 1
307 #define __DTCM_PRESENT 1
308 #define __ITCM_PRESENT 1
309 #define __Vendor_SysTickConfig 0
311 /*
312  * \brief CMSIS includes
313  */
314 
315 #include <core_cm7.h>
316 #if !defined DONT_USE_CMSIS_INIT
317 #include "system_same70.h"
318 #endif /* DONT_USE_CMSIS_INIT */
319 
322 /* ************************************************************************** */
324 /* ************************************************************************** */
327 
328 #include "component/component_acc.h"
329 #include "component/component_aes.h"
330 #include "component/component_afec.h"
331 #include "component/component_chipid.h"
332 #include "component/component_dacc.h"
333 #include "component/component_efc.h"
334 #include "component/component_gmac.h"
335 #include "component/component_gpbr.h"
336 #include "component/component_hsmci.h"
337 #include "component/component_icm.h"
338 #include "component/component_isi.h"
339 #include "component/component_matrix.h"
340 #include "component/component_mcan.h"
341 #include "component/component_pio.h"
342 #include "component/component_pmc.h"
343 #include "component/component_pwm.h"
344 #include "component/component_qspi.h"
345 #include "component/component_rstc.h"
346 #include "component/component_rswdt.h"
347 #include "component/component_rtc.h"
348 #include "component/component_rtt.h"
349 #include "component/component_sdramc.h"
350 #include "component/component_smc.h"
351 #include "component/component_spi.h"
352 #include "component/component_ssc.h"
353 #include "component/component_supc.h"
354 #include "component/component_tc.h"
355 #include "component/component_trng.h"
356 #include "component/component_twihs.h"
357 #include "component/component_uart.h"
358 #include "component/component_usart.h"
359 #include "component/component_usbhs.h"
360 #include "component/component_utmi.h"
361 #include "component/component_wdt.h"
362 #include "component/component_xdmac.h"
365 #ifndef __rtems__
366 /* ************************************************************************** */
367 /* REGISTER ACCESS DEFINITIONS FOR SAME70Q21 */
368 /* ************************************************************************** */
371 
372 #include "instance/instance_hsmci.h"
373 #include "instance/instance_ssc.h"
374 #include "instance/instance_spi0.h"
375 #include "instance/instance_tc0.h"
376 #include "instance/instance_tc1.h"
377 #include "instance/instance_tc2.h"
378 #include "instance/instance_twihs0.h"
379 #include "instance/instance_twihs1.h"
380 #include "instance/instance_pwm0.h"
381 #include "instance/instance_usart0.h"
382 #include "instance/instance_usart1.h"
383 #include "instance/instance_usart2.h"
384 #include "instance/instance_mcan0.h"
385 #include "instance/instance_mcan1.h"
386 #include "instance/instance_usbhs.h"
387 #include "instance/instance_afec0.h"
388 #include "instance/instance_dacc.h"
389 #include "instance/instance_acc.h"
390 #include "instance/instance_icm.h"
391 #include "instance/instance_isi.h"
392 #include "instance/instance_gmac.h"
393 #include "instance/instance_tc3.h"
394 #include "instance/instance_spi1.h"
395 #include "instance/instance_pwm1.h"
396 #include "instance/instance_twihs2.h"
397 #include "instance/instance_afec1.h"
398 #include "instance/instance_aes.h"
399 #include "instance/instance_trng.h"
400 #include "instance/instance_xdmac.h"
401 #include "instance/instance_qspi.h"
402 #include "instance/instance_smc.h"
403 #include "instance/instance_sdramc.h"
404 #include "instance/instance_matrix.h"
405 #include "instance/instance_utmi.h"
406 #include "instance/instance_pmc.h"
407 #include "instance/instance_uart0.h"
408 #include "instance/instance_chipid.h"
409 #include "instance/instance_uart1.h"
410 #include "instance/instance_efc.h"
411 #include "instance/instance_pioa.h"
412 #include "instance/instance_piob.h"
413 #include "instance/instance_pioc.h"
414 #include "instance/instance_piod.h"
415 #include "instance/instance_pioe.h"
416 #include "instance/instance_rstc.h"
417 #include "instance/instance_supc.h"
418 #include "instance/instance_rtt.h"
419 #include "instance/instance_wdt.h"
420 #include "instance/instance_rtc.h"
421 #include "instance/instance_gpbr.h"
422 #include "instance/instance_rswdt.h"
423 #include "instance/instance_uart2.h"
424 #include "instance/instance_uart3.h"
425 #include "instance/instance_uart4.h"
427 #endif /* __rtems__ */
428 
429 /* ************************************************************************** */
430 /* PERIPHERAL ID DEFINITIONS FOR SAME70Q21 */
431 /* ************************************************************************** */
434 
435 #define ID_SUPC ( 0)
436 #define ID_RSTC ( 1)
437 #define ID_RTC ( 2)
438 #define ID_RTT ( 3)
439 #define ID_WDT ( 4)
440 #define ID_PMC ( 5)
441 #define ID_EFC ( 6)
442 #define ID_UART0 ( 7)
443 #define ID_UART1 ( 8)
444 #define ID_SMC ( 9)
445 #define ID_PIOA (10)
446 #define ID_PIOB (11)
447 #define ID_PIOC (12)
448 #define ID_USART0 (13)
449 #define ID_USART1 (14)
450 #define ID_USART2 (15)
451 #define ID_PIOD (16)
452 #define ID_PIOE (17)
453 #define ID_HSMCI (18)
454 #define ID_TWIHS0 (19)
455 #define ID_TWIHS1 (20)
456 #define ID_SPI0 (21)
457 #define ID_SSC (22)
458 #define ID_TC0 (23)
459 #define ID_TC1 (24)
460 #define ID_TC2 (25)
461 #define ID_TC3 (26)
462 #define ID_TC4 (27)
463 #define ID_TC5 (28)
464 #define ID_AFEC0 (29)
465 #define ID_DACC (30)
466 #define ID_PWM0 (31)
467 #define ID_ICM (32)
468 #define ID_ACC (33)
469 #define ID_USBHS (34)
470 #define ID_MCAN0 (35)
471 #define ID_MCAN1 (37)
472 #define ID_GMAC (39)
473 #define ID_AFEC1 (40)
474 #define ID_TWIHS2 (41)
475 #define ID_SPI1 (42)
476 #define ID_QSPI (43)
477 #define ID_UART2 (44)
478 #define ID_UART3 (45)
479 #define ID_UART4 (46)
480 #define ID_TC6 (47)
481 #define ID_TC7 (48)
482 #define ID_TC8 (49)
483 #define ID_TC9 (50)
484 #define ID_TC10 (51)
485 #define ID_TC11 (52)
486 #define ID_AES (56)
487 #define ID_TRNG (57)
488 #define ID_XDMAC (58)
489 #define ID_ISI (59)
490 #define ID_PWM1 (60)
491 #define ID_SDRAMC (62)
492 #define ID_RSWDT (63)
494 #define ID_PERIPH_COUNT (64)
496 
497 /* ************************************************************************** */
498 /* BASE ADDRESS DEFINITIONS FOR SAME70Q21 */
499 /* ************************************************************************** */
502 
503 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
504 #define HSMCI (0x40000000U)
505 #define SSC (0x40004000U)
506 #define SPI0 (0x40008000U)
507 #define TC0 (0x4000C000U)
508 #define TC1 (0x40010000U)
509 #define TC2 (0x40014000U)
510 #define TWIHS0 (0x40018000U)
511 #define TWIHS1 (0x4001C000U)
512 #define PWM0 (0x40020000U)
513 #define USART0 (0x40024000U)
514 #define USART1 (0x40028000U)
515 #define USART2 (0x4002C000U)
516 #define MCAN0 (0x40030000U)
517 #define MCAN1 (0x40034000U)
518 #define USBHS (0x40038000U)
519 #define AFEC0 (0x4003C000U)
520 #define DACC (0x40040000U)
521 #define ACC (0x40044000U)
522 #define ICM (0x40048000U)
523 #define ISI (0x4004C000U)
524 #define GMAC (0x40050000U)
525 #define TC3 (0x40054000U)
526 #define SPI1 (0x40058000U)
527 #define PWM1 (0x4005C000U)
528 #define TWIHS2 (0x40060000U)
529 #define AFEC1 (0x40064000U)
530 #define AES (0x4006C000U)
531 #define TRNG (0x40070000U)
532 #define XDMAC (0x40078000U)
533 #define QSPI (0x4007C000U)
534 #define SMC (0x40080000U)
535 #define SDRAMC (0x40084000U)
536 #define MATRIX (0x40088000U)
537 #define UTMI (0x400E0400U)
538 #define PMC (0x400E0600U)
539 #define UART0 (0x400E0800U)
540 #define CHIPID (0x400E0940U)
541 #define UART1 (0x400E0A00U)
542 #define EFC (0x400E0C00U)
543 #define PIOA (0x400E0E00U)
544 #define PIOB (0x400E1000U)
545 #define PIOC (0x400E1200U)
546 #define PIOD (0x400E1400U)
547 #define PIOE (0x400E1600U)
548 #define RSTC (0x400E1800U)
549 #define SUPC (0x400E1810U)
550 #define RTT (0x400E1830U)
551 #define WDT (0x400E1850U)
552 #define RTC (0x400E1860U)
553 #define GPBR (0x400E1890U)
554 #define RSWDT (0x400E1900U)
555 #define UART2 (0x400E1A00U)
556 #define UART3 (0x400E1C00U)
557 #define UART4 (0x400E1E00U)
558 #else
559 #define HSMCI ((Hsmci *)0x40000000U)
560 #define SSC ((Ssc *)0x40004000U)
561 #define SPI0 ((Spi *)0x40008000U)
562 #define TC0 ((Tc *)0x4000C000U)
563 #define TC1 ((Tc *)0x40010000U)
564 #define TC2 ((Tc *)0x40014000U)
565 #define TWIHS0 ((Twihs *)0x40018000U)
566 #define TWIHS1 ((Twihs *)0x4001C000U)
567 #define PWM0 ((Pwm *)0x40020000U)
568 #define USART0 ((Usart *)0x40024000U)
569 #define USART1 ((Usart *)0x40028000U)
570 #define USART2 ((Usart *)0x4002C000U)
571 #define MCAN0 ((Mcan *)0x40030000U)
572 #define MCAN1 ((Mcan *)0x40034000U)
573 #define USBHS ((Usbhs *)0x40038000U)
574 #define AFEC0 ((Afec *)0x4003C000U)
575 #define DACC ((Dacc *)0x40040000U)
576 #define ACC ((Acc *)0x40044000U)
577 #define ICM ((Icm *)0x40048000U)
578 #define ISI ((Isi *)0x4004C000U)
579 #define GMAC ((Gmac *)0x40050000U)
580 #define TC3 ((Tc *)0x40054000U)
581 #define SPI1 ((Spi *)0x40058000U)
582 #define PWM1 ((Pwm *)0x4005C000U)
583 #define TWIHS2 ((Twihs *)0x40060000U)
584 #define AFEC1 ((Afec *)0x40064000U)
585 #define AES ((Aes *)0x4006C000U)
586 #define TRNG ((Trng *)0x40070000U)
587 #define XDMAC ((Xdmac *)0x40078000U)
588 #define QSPI ((Qspi *)0x4007C000U)
589 #define SMC ((Smc *)0x40080000U)
590 #define SDRAMC ((Sdramc *)0x40084000U)
591 #define MATRIX ((Matrix *)0x40088000U)
592 #define UTMI ((Utmi *)0x400E0400U)
593 #define PMC ((Pmc *)0x400E0600U)
594 #define UART0 ((Uart *)0x400E0800U)
595 #define CHIPID ((Chipid *)0x400E0940U)
596 #define UART1 ((Uart *)0x400E0A00U)
597 #define EFC ((Efc *)0x400E0C00U)
598 #define PIOA ((Pio *)0x400E0E00U)
599 #define PIOB ((Pio *)0x400E1000U)
600 #define PIOC ((Pio *)0x400E1200U)
601 #define PIOD ((Pio *)0x400E1400U)
602 #define PIOE ((Pio *)0x400E1600U)
603 #define RSTC ((Rstc *)0x400E1800U)
604 #define SUPC ((Supc *)0x400E1810U)
605 #define RTT ((Rtt *)0x400E1830U)
606 #define WDT ((Wdt *)0x400E1850U)
607 #define RTC ((Rtc *)0x400E1860U)
608 #define GPBR ((Gpbr *)0x400E1890U)
609 #define RSWDT ((Rswdt *)0x400E1900U)
610 #define UART2 ((Uart *)0x400E1A00U)
611 #define UART3 ((Uart *)0x400E1C00U)
612 #define UART4 ((Uart *)0x400E1E00U)
613 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
614 
616 /* ************************************************************************** */
617 /* PIO DEFINITIONS FOR SAME70Q21 */
618 /* ************************************************************************** */
621 
622 #include "pio/pio_same70q21.h"
625 /* ************************************************************************** */
626 /* MEMORY MAPPING DEFINITIONS FOR SAME70Q21 */
627 /* ************************************************************************** */
628 
629 #define IFLASH_SIZE (0x200000u)
630 #define IFLASH_PAGE_SIZE (512u)
631 #define IFLASH_LOCK_REGION_SIZE (8192u)
632 #define IFLASH_NB_OF_PAGES (4096u)
633 #define IFLASH_NB_OF_LOCK_BITS (128u)
634 #define IRAM_SIZE (0x60000u)
635 
636 #define QSPIMEM_ADDR (0x80000000u)
637 #define AXIMX_ADDR (0xA0000000u)
638 #define ITCM_ADDR (0x00000000u)
639 #define IFLASH_ADDR (0x00400000u)
640 #define IROM_ADDR (0x00800000u)
641 #define DTCM_ADDR (0x20000000u)
642 #define IRAM_ADDR (0x20400000u)
643 #define EBI_CS0_ADDR (0x60000000u)
644 #define EBI_CS1_ADDR (0x61000000u)
645 #define EBI_CS2_ADDR (0x62000000u)
646 #define EBI_CS3_ADDR (0x63000000u)
647 #define SDRAM_CS_ADDR (0x70000000u)
648 #define USBHS_RAM_ADDR (0xA0100000u)
650 /* ************************************************************************** */
651 /* MISCELLANEOUS DEFINITIONS FOR SAME70Q21 */
652 /* ************************************************************************** */
653 
654 #define CHIP_JTAGID (0x05B3D03FUL)
655 #define CHIP_CIDR (0xA1020E00UL)
656 #define CHIP_EXID (0x00000002UL)
657 
658 /* ************************************************************************** */
659 /* ELECTRICAL DEFINITIONS FOR SAME70Q21 */
660 /* ************************************************************************** */
661 
662 /* %ATMEL_ELECTRICAL% */
663 
664 /* Device characteristics */
665 #define CHIP_FREQ_SLCK_RC_MIN (20000UL)
666 #define CHIP_FREQ_SLCK_RC (32000UL)
667 #define CHIP_FREQ_SLCK_RC_MAX (44000UL)
668 #define CHIP_FREQ_MAINCK_RC_4MHZ (4000000UL)
669 #define CHIP_FREQ_MAINCK_RC_8MHZ (8000000UL)
670 #define CHIP_FREQ_MAINCK_RC_12MHZ (12000000UL)
671 #define CHIP_FREQ_CPU_MAX (120000000UL)
672 #define CHIP_FREQ_XTAL_32K (32768UL)
673 #define CHIP_FREQ_XTAL_12M (12000000UL)
674 
675 /* Embedded Flash Read Wait State (VDDCORE set at 1.20V) */
676 #define CHIP_FREQ_FWS_0 (20000000UL)
677 #define CHIP_FREQ_FWS_1 (40000000UL)
678 #define CHIP_FREQ_FWS_2 (60000000UL)
679 #define CHIP_FREQ_FWS_3 (80000000UL)
680 #define CHIP_FREQ_FWS_4 (100000000UL)
681 #define CHIP_FREQ_FWS_5 (123000000UL)
683 #ifdef __cplusplus
684 }
685 #endif
686 
689 #endif /* _SAME70Q21_ */
Definition: same70q21.h:83
Definition: same70q21.h:119
Definition: same70q21.h:78
Definition: same70q21.h:94
Definition: same70q21.h:74
Definition: same70q21.h:90
Definition: same70q21.h:68
Definition: same70q21.h:95
Definition: same70q21.h:92
Definition: same70q21.h:126
Definition: same70q21.h:65
Definition: same70q21.h:112
Definition: same70q21.h:105
Definition: same70q21.h:80
Definition: same70q21.h:102
Definition: same70q21.h:86
Definition: same70q21.h:121
Definition: same70q21.h:82
Definition: same70q21.h:96
Definition: same70q21.h:122
void BusFault_Handler(void)
Default BusFault interrupt handler.
Definition: exceptions.c:193
Definition: same70q21.h:97
Definition: same70q21.h:91
Definition: same70q21.h:131
Definition: same70q21.h:106
Definition: same70q21.h:114
Definition: same70q21.h:115
Definition: same70q21.h:72
Definition: same70q21.h:76
Definition: same70q21.h:71
Definition: same70q21.h:87
Definition: same70q21.h:118
CMSIS Cortex-M7 Core Peripheral Access Layer Header File.
Definition: same70q21.h:66
Definition: same70q21.h:128
Definition: same70q21.h:61
Definition: same70q21.h:111
Definition: same70j19.h:121
Definition: same70q21.h:73
Definition: same70q21.h:85
Definition: same70q21.h:116
void UsageFault_Handler(void)
Default UsageFault interrupt handler.
Definition: exceptions.c:207
Definition: same70q21.h:77
Definition: same70q21.h:125
Definition: same70q21.h:108
Definition: same70q21.h:84
Definition: same70q21.h:100
Definition: same70q21.h:124
Definition: same70q21.h:62
Definition: same70q21.h:67
Definition: same70q21.h:60
Definition: same70q21.h:127
Definition: same70q21.h:110
Definition: same70q21.h:63
enum IRQn IRQn_Type
IRQn
Definition: same70j19.h:57
Definition: same70q21.h:98
Definition: same70q21.h:89
Definition: same70q21.h:109
Definition: same70q21.h:103
Definition: same70q21.h:104
void MemManage_Handler(void)
Default MemManage interrupt handler.
Definition: exceptions.c:180
Definition: same70q21.h:120
Definition: same70q21.h:101
Definition: same70q21.h:64
Definition: same70q21.h:81
void NMI_Handler(void)
Default NMI interrupt handler.
Definition: exceptions.c:53
Definition: same70q21.h:113
Definition: same70q21.h:107
Definition: same70q21.h:123
Definition: same70q21.h:93
Definition: same70q21.h:99
void HardFault_Handler(void)
Default HardFault interrupt handler.
Definition: exceptions.c:168
Definition: same70q21.h:88
Definition: same70q21.h:79
Definition: same70q21.h:117
Definition: same70q21.h:75
Definition: same70q21.h:129