same70q19.h
Go to the documentation of this file.
1 
31 /*
32  * Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a>
33  */
34 #ifndef _SAME70Q19_
35 #define _SAME70Q19_
36 
45 
46 #ifdef __cplusplus
47  extern "C" {
48 #endif
49 
50 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
51 #include <stdint.h>
52 #endif
53 
54 /* ************************************************************************** */
55 /* CMSIS DEFINITIONS FOR SAME70Q19 */
56 /* ************************************************************************** */
59 
61 typedef enum IRQn
62 {
63 /****** Cortex-M7 Processor Exceptions Numbers ******************************/
67  BusFault_IRQn = -11,
69  SVCall_IRQn = -5,
71  PendSV_IRQn = -2,
72  SysTick_IRQn = -1,
73 /****** SAME70Q19 specific Interrupt Numbers *********************************/
74 
75  SUPC_IRQn = 0,
76  RSTC_IRQn = 1,
77  RTC_IRQn = 2,
78  RTT_IRQn = 3,
79  WDT_IRQn = 4,
80  PMC_IRQn = 5,
81  EFC_IRQn = 6,
82  UART0_IRQn = 7,
83  UART1_IRQn = 8,
84  PIOA_IRQn = 10,
85  PIOB_IRQn = 11,
86  PIOC_IRQn = 12,
87  USART0_IRQn = 13,
88  USART1_IRQn = 14,
89  USART2_IRQn = 15,
90  PIOD_IRQn = 16,
91  PIOE_IRQn = 17,
92  HSMCI_IRQn = 18,
93  TWIHS0_IRQn = 19,
94  TWIHS1_IRQn = 20,
95  SPI0_IRQn = 21,
96  SSC_IRQn = 22,
97  TC0_IRQn = 23,
98  TC1_IRQn = 24,
99  TC2_IRQn = 25,
100  TC3_IRQn = 26,
101  TC4_IRQn = 27,
102  TC5_IRQn = 28,
103  AFEC0_IRQn = 29,
104  DACC_IRQn = 30,
105  PWM0_IRQn = 31,
106  ICM_IRQn = 32,
107  ACC_IRQn = 33,
108  USBHS_IRQn = 34,
113  GMAC_IRQn = 39,
114  AFEC1_IRQn = 40,
115  TWIHS2_IRQn = 41,
116  SPI1_IRQn = 42,
117  QSPI_IRQn = 43,
118  UART2_IRQn = 44,
119  UART3_IRQn = 45,
120  UART4_IRQn = 46,
121  TC6_IRQn = 47,
122  TC7_IRQn = 48,
123  TC8_IRQn = 49,
124  TC9_IRQn = 50,
125  TC10_IRQn = 51,
126  TC11_IRQn = 52,
127  AES_IRQn = 56,
128  TRNG_IRQn = 57,
129  XDMAC_IRQn = 58,
130  ISI_IRQn = 59,
131  PWM1_IRQn = 60,
132  FPU_IRQn = 61,
133  SDRAMC_IRQn = 62,
134  RSWDT_IRQn = 63,
135  CCW_IRQn = 64,
136  CCF_IRQn = 65,
139  IXC_IRQn = 68,
142 } IRQn_Type;
143 
144 typedef struct _DeviceVectors
145 {
146  /* Stack pointer */
147  void* pvStack;
148 
149  /* Cortex-M handlers */
150  void* pfnReset_Handler;
151  void* pfnNMI_Handler;
152  void* pfnHardFault_Handler;
153  void* pfnMemManage_Handler;
154  void* pfnBusFault_Handler;
155  void* pfnUsageFault_Handler;
156  void* pfnReserved1_Handler;
157  void* pfnReserved2_Handler;
158  void* pfnReserved3_Handler;
159  void* pfnReserved4_Handler;
160  void* pfnSVC_Handler;
161  void* pfnDebugMon_Handler;
162  void* pfnReserved5_Handler;
163  void* pfnPendSV_Handler;
164  void* pfnSysTick_Handler;
165 
166  /* Peripheral handlers */
167  void* pfnSUPC_Handler; /* 0 Supply Controller */
168  void* pfnRSTC_Handler; /* 1 Reset Controller */
169  void* pfnRTC_Handler; /* 2 Real Time Clock */
170  void* pfnRTT_Handler; /* 3 Real Time Timer */
171  void* pfnWDT_Handler; /* 4 Watchdog Timer */
172  void* pfnPMC_Handler; /* 5 Power Management Controller */
173  void* pfnEFC_Handler; /* 6 Enhanced Embedded Flash Controller */
174  void* pfnUART0_Handler; /* 7 UART 0 */
175  void* pfnUART1_Handler; /* 8 UART 1 */
176  void* pvReserved9;
177  void* pfnPIOA_Handler; /* 10 Parallel I/O Controller A */
178  void* pfnPIOB_Handler; /* 11 Parallel I/O Controller B */
179  void* pfnPIOC_Handler; /* 12 Parallel I/O Controller C */
180  void* pfnUSART0_Handler; /* 13 USART 0 */
181  void* pfnUSART1_Handler; /* 14 USART 1 */
182  void* pfnUSART2_Handler; /* 15 USART 2 */
183  void* pfnPIOD_Handler; /* 16 Parallel I/O Controller D */
184  void* pfnPIOE_Handler; /* 17 Parallel I/O Controller E */
185  void* pfnHSMCI_Handler; /* 18 Multimedia Card Interface */
186  void* pfnTWIHS0_Handler; /* 19 Two Wire Interface 0 HS */
187  void* pfnTWIHS1_Handler; /* 20 Two Wire Interface 1 HS */
188  void* pfnSPI0_Handler; /* 21 Serial Peripheral Interface 0 */
189  void* pfnSSC_Handler; /* 22 Synchronous Serial Controller */
190  void* pfnTC0_Handler; /* 23 Timer/Counter 0 */
191  void* pfnTC1_Handler; /* 24 Timer/Counter 1 */
192  void* pfnTC2_Handler; /* 25 Timer/Counter 2 */
193  void* pfnTC3_Handler; /* 26 Timer/Counter 3 */
194  void* pfnTC4_Handler; /* 27 Timer/Counter 4 */
195  void* pfnTC5_Handler; /* 28 Timer/Counter 5 */
196  void* pfnAFEC0_Handler; /* 29 Analog Front End 0 */
197  void* pfnDACC_Handler; /* 30 Digital To Analog Converter */
198  void* pfnPWM0_Handler; /* 31 Pulse Width Modulation 0 */
199  void* pfnICM_Handler; /* 32 Integrity Check Monitor */
200  void* pfnACC_Handler; /* 33 Analog Comparator */
201  void* pfnUSBHS_Handler; /* 34 USB Host / Device Controller */
202  void* pfnMCAN0_INT0_Handler; /* 35 Controller Area Network (MCAN0) */
203  void* pfnMCAN0_INT1_Handler; /* 36 Controller Area Network (MCAN0) */
204  void* pfnMCAN1_INT0_Handler; /* 37 Controller Area Network (MCAN1) */
205  void* pfnMCAN1_INT1_Handler; /* 38 Controller Area Network (MCAN1) */
206  void* pfnGMAC_Handler; /* 39 Ethernet MAC */
207  void* pfnAFEC1_Handler; /* 40 Analog Front End 1 */
208  void* pfnTWIHS2_Handler; /* 41 Two Wire Interface 2 HS */
209  void* pfnSPI1_Handler; /* 42 Serial Peripheral Interface 1 */
210  void* pfnQSPI_Handler; /* 43 Quad I/O Serial Peripheral Interface */
211  void* pfnUART2_Handler; /* 44 UART 2 */
212  void* pfnUART3_Handler; /* 45 UART 3 */
213  void* pfnUART4_Handler; /* 46 UART 4 */
214  void* pfnTC6_Handler; /* 47 Timer/Counter 6 */
215  void* pfnTC7_Handler; /* 48 Timer/Counter 7 */
216  void* pfnTC8_Handler; /* 49 Timer/Counter 8 */
217  void* pfnTC9_Handler; /* 50 Timer/Counter 9 */
218  void* pfnTC10_Handler; /* 51 Timer/Counter 10 */
219  void* pfnTC11_Handler; /* 52 Timer/Counter 11 */
220  void* pvReserved53;
221  void* pvReserved54;
222  void* pvReserved55;
223  void* pfnAES_Handler; /* 56 AES */
224  void* pfnTRNG_Handler; /* 57 True Random Generator */
225  void* pfnXDMAC_Handler; /* 58 DMA */
226  void* pfnISI_Handler; /* 59 Camera Interface */
227  void* pfnPWM1_Handler; /* 60 Pulse Width Modulation 1 */
228  void* pfnFPU_Handler; /* 61 Floating Point Unit Registers (FPU) */
229  void* pfnSDRAMC_Handler; /* 62 SDRAM Controller (SDRAMC) */
230  void* pfnRSWDT_Handler; /* 63 Reinforced Safety Watchdog Timer (RSWDT) */
231  void* pfnCCW_Handler; /* 64 System Control Registers (SystemControl) */
232  void* pfnCCF_Handler; /* 65 System Control Registers (SystemControl) */
233  void* pfnGMAC_Q1_Handler;/* 66 Gigabit Ethernet MAC (GMAC) */
234  void* pfnGMAC_Q2_Handler;/* 67 Gigabit Ethernet MAC (GMAC) */
235  void* pfnIXC_Handler; /* 68 Floating Point Unit Registers (FPU) */
236  void* pvReserved69;
237  void* pvReserved70;
238  void* pvReserved71;
239  void* pvReserved72;
240  void* pvReserved73;
241 } DeviceVectors;
242 
243 /* Cortex-M7 core handlers */
244 void Reset_Handler ( void );
245 void NMI_Handler ( void );
246 void HardFault_Handler ( void );
247 void MemManage_Handler ( void );
248 void BusFault_Handler ( void );
249 void UsageFault_Handler ( void );
250 void SVC_Handler ( void );
251 void DebugMon_Handler ( void );
252 void PendSV_Handler ( void );
253 void SysTick_Handler ( void );
254 
255 /* Peripherals handlers */
256 void ACC_Handler ( void );
257 void AES_Handler ( void );
258 void AFEC0_Handler ( void );
259 void AFEC1_Handler ( void );
260 void CCF_Handler ( void );
261 void CCW_Handler ( void );
262 void DACC_Handler ( void );
263 void EFC_Handler ( void );
264 void FPU_Handler ( void );
265 void GMAC_Handler ( void );
266 void HSMCI_Handler ( void );
267 void ICM_Handler ( void );
268 void ISI_Handler ( void );
269 void IXC_Handler ( void );
270 void MCAN0_INT0_Handler ( void );
271 void MCAN0_INT1_Handler ( void );
272 void MCAN1_INT0_Handler ( void );
273 void MCAN1_INT1_Handler ( void );
274 void PIOA_Handler ( void );
275 void PIOB_Handler ( void );
276 void PIOC_Handler ( void );
277 void PIOD_Handler ( void );
278 void PIOE_Handler ( void );
279 void PMC_Handler ( void );
280 void PWM0_Handler ( void );
281 void PWM1_Handler ( void );
282 void GMAC_Q1_Handler ( void );
283 void GMAC_Q2_Handler ( void );
284 void QSPI_Handler ( void );
285 void RSTC_Handler ( void );
286 void RSWDT_Handler ( void );
287 void RTC_Handler ( void );
288 void RTT_Handler ( void );
289 void SDRAMC_Handler ( void );
290 void SPI0_Handler ( void );
291 void SPI1_Handler ( void );
292 void SSC_Handler ( void );
293 void SUPC_Handler ( void );
294 void TC0_Handler ( void );
295 void TC1_Handler ( void );
296 void TC2_Handler ( void );
297 void TC3_Handler ( void );
298 void TC4_Handler ( void );
299 void TC5_Handler ( void );
300 void TC6_Handler ( void );
301 void TC7_Handler ( void );
302 void TC8_Handler ( void );
303 void TC9_Handler ( void );
304 void TC10_Handler ( void );
305 void TC11_Handler ( void );
306 void TRNG_Handler ( void );
307 void TWIHS0_Handler ( void );
308 void TWIHS1_Handler ( void );
309 void TWIHS2_Handler ( void );
310 void UART0_Handler ( void );
311 void UART1_Handler ( void );
312 void UART2_Handler ( void );
313 void UART3_Handler ( void );
314 void UART4_Handler ( void );
315 void USART0_Handler ( void );
316 void USART1_Handler ( void );
317 void USART2_Handler ( void );
318 void USBHS_Handler ( void );
319 void WDT_Handler ( void );
320 void XDMAC_Handler ( void );
321 
326 #define __CM7_REV 0x0000
327 #define __MPU_PRESENT 1
328 #define __NVIC_PRIO_BITS 3
329 #define __FPU_PRESENT 1
330 #define __FPU_DP 1
331 #define __ICACHE_PRESENT 1
332 #define __DCACHE_PRESENT 1
333 #define __DTCM_PRESENT 1
334 #define __ITCM_PRESENT 1
335 #define __Vendor_SysTickConfig 0
336 #define __SAM_M7_REVB 0
338 /*
339  * \brief CMSIS includes
340  */
341 
342 #include <core_cm7.h>
343 #if !defined DONT_USE_CMSIS_INIT
344 #include "system_same70.h"
345 #endif /* DONT_USE_CMSIS_INIT */
346 
349 /* ************************************************************************** */
351 /* ************************************************************************** */
354 
355 #include "component/acc.h"
356 #include "component/aes.h"
357 #include "component/afec.h"
358 #include "component/chipid.h"
359 #include "component/dacc.h"
360 #include "component/efc.h"
361 #include "component/gmac.h"
362 #include "component/gpbr.h"
363 #include "component/hsmci.h"
364 #include "component/icm.h"
365 #include "component/isi.h"
366 #include "component/matrix.h"
367 #include "component/mcan.h"
368 #include "component/pio.h"
369 #include "component/pmc.h"
370 #include "component/pwm.h"
371 #include "component/qspi.h"
372 #include "component/rstc.h"
373 #include "component/rswdt.h"
374 #include "component/rtc.h"
375 #include "component/rtt.h"
376 #include "component/sdramc.h"
377 #include "component/smc.h"
378 #include "component/spi.h"
379 #include "component/ssc.h"
380 #include "component/supc.h"
381 #include "component/tc.h"
382 #include "component/trng.h"
383 #include "component/twihs.h"
384 #include "component/uart.h"
385 #include "component/usart.h"
386 #include "component/usbhs.h"
387 #include "component/utmi.h"
388 #include "component/wdt.h"
389 #include "component/xdmac.h"
392 /* ************************************************************************** */
393 /* REGISTER ACCESS DEFINITIONS FOR SAME70Q19 */
394 /* ************************************************************************** */
397 
398 #include "instance/hsmci.h"
399 #include "instance/ssc.h"
400 #include "instance/spi0.h"
401 #include "instance/tc0.h"
402 #include "instance/tc1.h"
403 #include "instance/tc2.h"
404 #include "instance/twihs0.h"
405 #include "instance/twihs1.h"
406 #include "instance/pwm0.h"
407 #include "instance/usart0.h"
408 #include "instance/usart1.h"
409 #include "instance/usart2.h"
410 #include "instance/mcan0.h"
411 #include "instance/mcan1.h"
412 #include "instance/usbhs.h"
413 #include "instance/afec0.h"
414 #include "instance/dacc.h"
415 #include "instance/acc.h"
416 #include "instance/icm.h"
417 #include "instance/isi.h"
418 #include "instance/gmac.h"
419 #include "instance/tc3.h"
420 #include "instance/spi1.h"
421 #include "instance/pwm1.h"
422 #include "instance/twihs2.h"
423 #include "instance/afec1.h"
424 #include "instance/aes.h"
425 #include "instance/trng.h"
426 #include "instance/xdmac.h"
427 #include "instance/qspi.h"
428 #include "instance/smc.h"
429 #include "instance/sdramc.h"
430 #include "instance/matrix.h"
431 #include "instance/utmi.h"
432 #include "instance/pmc.h"
433 #include "instance/uart0.h"
434 #include "instance/chipid.h"
435 #include "instance/uart1.h"
436 #include "instance/efc.h"
437 #include "instance/pioa.h"
438 #include "instance/piob.h"
439 #include "instance/pioc.h"
440 #include "instance/piod.h"
441 #include "instance/pioe.h"
442 #include "instance/rstc.h"
443 #include "instance/supc.h"
444 #include "instance/rtt.h"
445 #include "instance/wdt.h"
446 #include "instance/rtc.h"
447 #include "instance/gpbr.h"
448 #include "instance/rswdt.h"
449 #include "instance/uart2.h"
450 #include "instance/uart3.h"
451 #include "instance/uart4.h"
454 /* ************************************************************************** */
455 /* PERIPHERAL ID DEFINITIONS FOR SAME70Q19 */
456 /* ************************************************************************** */
459 
460 #define ID_SUPC ( 0)
461 #define ID_RSTC ( 1)
462 #define ID_RTC ( 2)
463 #define ID_RTT ( 3)
464 #define ID_WDT ( 4)
465 #define ID_PMC ( 5)
466 #define ID_EFC ( 6)
467 #define ID_UART0 ( 7)
468 #define ID_UART1 ( 8)
469 #define ID_SMC ( 9)
470 #define ID_PIOA (10)
471 #define ID_PIOB (11)
472 #define ID_PIOC (12)
473 #define ID_USART0 (13)
474 #define ID_USART1 (14)
475 #define ID_USART2 (15)
476 #define ID_PIOD (16)
477 #define ID_PIOE (17)
478 #define ID_HSMCI (18)
479 #define ID_TWIHS0 (19)
480 #define ID_TWIHS1 (20)
481 #define ID_SPI0 (21)
482 #define ID_SSC (22)
483 #define ID_TC0 (23)
484 #define ID_TC1 (24)
485 #define ID_TC2 (25)
486 #define ID_TC3 (26)
487 #define ID_TC4 (27)
488 #define ID_TC5 (28)
489 #define ID_AFEC0 (29)
490 #define ID_DACC (30)
491 #define ID_PWM0 (31)
492 #define ID_ICM (32)
493 #define ID_ACC (33)
494 #define ID_USBHS (34)
495 #define ID_MCAN0 (35)
496 #define ID_MCAN1 (37)
497 #define ID_GMAC (39)
498 #define ID_AFEC1 (40)
499 #define ID_TWIHS2 (41)
500 #define ID_SPI1 (42)
501 #define ID_QSPI (43)
502 #define ID_UART2 (44)
503 #define ID_UART3 (45)
504 #define ID_UART4 (46)
505 #define ID_TC6 (47)
506 #define ID_TC7 (48)
507 #define ID_TC8 (49)
508 #define ID_TC9 (50)
509 #define ID_TC10 (51)
510 #define ID_TC11 (52)
511 #define ID_AES (56)
512 #define ID_TRNG (57)
513 #define ID_XDMAC (58)
514 #define ID_ISI (59)
515 #define ID_PWM1 (60)
516 #define ID_SDRAMC (62)
517 #define ID_RSWDT (63)
518 #define ID_IXC (68)
520 #define ID_PERIPH_COUNT (74)
522 
523 /* ************************************************************************** */
524 /* BASE ADDRESS DEFINITIONS FOR SAME70Q19 */
525 /* ************************************************************************** */
528 
529 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
530 #define HSMCI (0x40000000U)
531 #define SSC (0x40004000U)
532 #define SPI0 (0x40008000U)
533 #define TC0 (0x4000C000U)
534 #define TC1 (0x40010000U)
535 #define TC2 (0x40014000U)
536 #define TWIHS0 (0x40018000U)
537 #define TWIHS1 (0x4001C000U)
538 #define PWM0 (0x40020000U)
539 #define USART0 (0x40024000U)
540 #define USART1 (0x40028000U)
541 #define USART2 (0x4002C000U)
542 #define MCAN0 (0x40030000U)
543 #define MCAN1 (0x40034000U)
544 #define USBHS (0x40038000U)
545 #define AFEC0 (0x4003C000U)
546 #define DACC (0x40040000U)
547 #define ACC (0x40044000U)
548 #define ICM (0x40048000U)
549 #define ISI (0x4004C000U)
550 #define GMAC (0x40050000U)
551 #define TC3 (0x40054000U)
552 #define SPI1 (0x40058000U)
553 #define PWM1 (0x4005C000U)
554 #define TWIHS2 (0x40060000U)
555 #define AFEC1 (0x40064000U)
556 #define AES (0x4006C000U)
557 #define TRNG (0x40070000U)
558 #define XDMAC (0x40078000U)
559 #define QSPI (0x4007C000U)
560 #define SMC (0x40080000U)
561 #define SDRAMC (0x40084000U)
562 #define MATRIX (0x40088000U)
563 #define UTMI (0x400E0400U)
564 #define PMC (0x400E0600U)
565 #define UART0 (0x400E0800U)
566 #define CHIPID (0x400E0940U)
567 #define UART1 (0x400E0A00U)
568 #define EFC (0x400E0C00U)
569 #define PIOA (0x400E0E00U)
570 #define PIOB (0x400E1000U)
571 #define PIOC (0x400E1200U)
572 #define PIOD (0x400E1400U)
573 #define PIOE (0x400E1600U)
574 #define RSTC (0x400E1800U)
575 #define SUPC (0x400E1810U)
576 #define RTT (0x400E1830U)
577 #define WDT (0x400E1850U)
578 #define RTC (0x400E1860U)
579 #define GPBR (0x400E1890U)
580 #define RSWDT (0x400E1900U)
581 #define UART2 (0x400E1A00U)
582 #define UART3 (0x400E1C00U)
583 #define UART4 (0x400E1E00U)
584 #else
585 #define HSMCI ((Hsmci *)0x40000000U)
586 #define SSC ((Ssc *)0x40004000U)
587 #define SPI0 ((Spi *)0x40008000U)
588 #define TC0 ((Tc *)0x4000C000U)
589 #define TC1 ((Tc *)0x40010000U)
590 #define TC2 ((Tc *)0x40014000U)
591 #define TWIHS0 ((Twihs *)0x40018000U)
592 #define TWIHS1 ((Twihs *)0x4001C000U)
593 #define PWM0 ((Pwm *)0x40020000U)
594 #define USART0 ((Usart *)0x40024000U)
595 #define USART1 ((Usart *)0x40028000U)
596 #define USART2 ((Usart *)0x4002C000U)
597 #define MCAN0 ((Mcan *)0x40030000U)
598 #define MCAN1 ((Mcan *)0x40034000U)
599 #define USBHS ((Usbhs *)0x40038000U)
600 #define AFEC0 ((Afec *)0x4003C000U)
601 #define DACC ((Dacc *)0x40040000U)
602 #define ACC ((Acc *)0x40044000U)
603 #define ICM ((Icm *)0x40048000U)
604 #define ISI ((Isi *)0x4004C000U)
605 #define GMAC ((Gmac *)0x40050000U)
606 #define TC3 ((Tc *)0x40054000U)
607 #define SPI1 ((Spi *)0x40058000U)
608 #define PWM1 ((Pwm *)0x4005C000U)
609 #define TWIHS2 ((Twihs *)0x40060000U)
610 #define AFEC1 ((Afec *)0x40064000U)
611 #define AES ((Aes *)0x4006C000U)
612 #define TRNG ((Trng *)0x40070000U)
613 #define XDMAC ((Xdmac *)0x40078000U)
614 #define QSPI ((Qspi *)0x4007C000U)
615 #define SMC ((Smc *)0x40080000U)
616 #define SDRAMC ((Sdramc *)0x40084000U)
617 #define MATRIX ((Matrix *)0x40088000U)
618 #define UTMI ((Utmi *)0x400E0400U)
619 #define PMC ((Pmc *)0x400E0600U)
620 #define UART0 ((Uart *)0x400E0800U)
621 #define CHIPID ((Chipid *)0x400E0940U)
622 #define UART1 ((Uart *)0x400E0A00U)
623 #define EFC ((Efc *)0x400E0C00U)
624 #define PIOA ((Pio *)0x400E0E00U)
625 #define PIOB ((Pio *)0x400E1000U)
626 #define PIOC ((Pio *)0x400E1200U)
627 #define PIOD ((Pio *)0x400E1400U)
628 #define PIOE ((Pio *)0x400E1600U)
629 #define RSTC ((Rstc *)0x400E1800U)
630 #define SUPC ((Supc *)0x400E1810U)
631 #define RTT ((Rtt *)0x400E1830U)
632 #define WDT ((Wdt *)0x400E1850U)
633 #define RTC ((Rtc *)0x400E1860U)
634 #define GPBR ((Gpbr *)0x400E1890U)
635 #define RSWDT ((Rswdt *)0x400E1900U)
636 #define UART2 ((Uart *)0x400E1A00U)
637 #define UART3 ((Uart *)0x400E1C00U)
638 #define UART4 ((Uart *)0x400E1E00U)
639 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
640 
642 /* ************************************************************************** */
643 /* PIO DEFINITIONS FOR SAME70Q19 */
644 /* ************************************************************************** */
647 
648 #include "pio/same70q19.h"
651 /* ************************************************************************** */
652 /* MEMORY MAPPING DEFINITIONS FOR SAME70Q19 */
653 /* ************************************************************************** */
654 
655 #define IFLASH_SIZE (0x80000u)
656 #define IFLASH_PAGE_SIZE (512u)
657 #define IFLASH_LOCK_REGION_SIZE (8192u)
658 #define IFLASH_NB_OF_PAGES (1024u)
659 #define IFLASH_NB_OF_LOCK_BITS (32u)
660 #define IRAM_SIZE (0x40000u)
661 
662 #define QSPIMEM_ADDR (0x80000000u)
663 #define AXIMX_ADDR (0xA0000000u)
664 #define ITCM_ADDR (0x00000000u)
665 #define IFLASH_ADDR (0x00400000u)
666 #define IROM_ADDR (0x00800000u)
667 #define DTCM_ADDR (0x20000000u)
668 #define IRAM_ADDR (0x20400000u)
669 #define EBI_CS0_ADDR (0x60000000u)
670 #define EBI_CS1_ADDR (0x61000000u)
671 #define EBI_CS2_ADDR (0x62000000u)
672 #define EBI_CS3_ADDR (0x63000000u)
673 #define SDRAM_CS_ADDR (0x70000000u)
675 /* ************************************************************************** */
676 /* MISCELLANEOUS DEFINITIONS FOR SAME70Q19 */
677 /* ************************************************************************** */
678 
679 #define CHIP_JTAGID (0x05B3D03FUL)
680 #define CHIP_CIDR (0xA10D0A00UL)
681 #define CHIP_EXID (0x00000002UL)
682 
683 /* ************************************************************************** */
684 /* ELECTRICAL DEFINITIONS FOR SAME70Q19 */
685 /* ************************************************************************** */
686 
687 /* %ATMEL_ELECTRICAL% */
688 
689 /* Device characteristics */
690 #define CHIP_FREQ_SLCK_RC_MIN (20000UL)
691 #define CHIP_FREQ_SLCK_RC (32000UL)
692 #define CHIP_FREQ_SLCK_RC_MAX (44000UL)
693 #define CHIP_FREQ_MAINCK_RC_4MHZ (4000000UL)
694 #define CHIP_FREQ_MAINCK_RC_8MHZ (8000000UL)
695 #define CHIP_FREQ_MAINCK_RC_12MHZ (12000000UL)
696 #define CHIP_FREQ_CPU_MAX (300000000UL)
697 #define CHIP_FREQ_XTAL_32K (32768UL)
698 #define CHIP_FREQ_XTAL_12M (12000000UL)
699 
700 /* Embedded Flash Read Wait State (for Worst-Case Conditions) */
701 #define CHIP_FREQ_FWS_0 (23000000UL)
702 #define CHIP_FREQ_FWS_1 (46000000UL)
703 #define CHIP_FREQ_FWS_2 (69000000UL)
704 #define CHIP_FREQ_FWS_3 (92000000UL)
705 #define CHIP_FREQ_FWS_4 (115000000UL)
706 #define CHIP_FREQ_FWS_5 (138000000UL)
707 #define CHIP_FREQ_FWS_6 (150000000UL)
709 #ifdef __cplusplus
710 }
711 #endif
712 
715 #endif /* _SAME70Q19_ */
enum IRQn IRQn_Type
void * pfnAFEC1_Handler
Definition: same70j19.h:190
void * pfnUART4_Handler
Definition: same70n19.h:203
void UART1_Handler(void)
Definition: d_usartDMA.c:1642
void * pfnXDMAC_Handler
Definition: same70j19.h:208
void TC1_Handler(void)
void * pfnUART3_Handler
Definition: same70n19.h:202
void * pfnPWM1_Handler
Definition: same70j19.h:210
void BusFault_Handler(void)
Definition: rtos.c:211
void * pfnBusFault_Handler
Definition: same70j19.h:137
void * pfnTWIHS1_Handler
Definition: same70j19.h:170
void * pvReserved55
Definition: same70j19.h:205
void * pfnPIOB_Handler
Definition: same70j19.h:161
void FPU_Handler(void)
void * pfnAFEC0_Handler
Definition: same70j19.h:179
void PIOB_Handler(void)
void * pvReserved72
Definition: same70j19.h:222
void * pfnTC11_Handler
Definition: same70j19.h:202
void * pvReserved73
Definition: same70j19.h:223
void * pfnPIOE_Handler
Definition: same70q19.h:184
void HardFault_Handler(void)
Definition: rtos.c:248
void * pfnUART2_Handler
Definition: same70j19.h:194
void * pfnSSC_Handler
Definition: same70j19.h:172
void PWM0_Handler(void)
void * pfnISI_Handler
Definition: same70j19.h:209
void NMI_Handler(void)
void * pfnHardFault_Handler
Definition: same70j19.h:135
void SVC_Handler(void)
void GMAC_Handler(void)
void TC0_Handler(void)
void * pfnMCAN1_INT0_Handler
Definition: same70n19.h:194
void * pfnSVC_Handler
Definition: same70j19.h:143
void TC10_Handler(void)
void * pfnUSART2_Handler
Definition: same70n19.h:172
void * pvReserved71
Definition: same70j19.h:221
void TWIHS0_Handler(void)
void * pfnTC4_Handler
Definition: same70q19.h:194
void ACC_Handler(void)
void * pvStack
Definition: same70j19.h:130
void MCAN0_INT1_Handler(void)
void UART0_Handler(void)
Definition: d_usartDMA.c:1641
void * pfnRSWDT_Handler
Definition: same70j19.h:213
void * pfnUSBHS_Handler
Definition: same70j19.h:184
void IXC_Handler(void)
void UART2_Handler(void)
Definition: d_usartDMA.c:1643
void * pfnTC6_Handler
Definition: same70q19.h:214
void * pfnCCF_Handler
Definition: same70j19.h:215
void UsageFault_Handler(void)
Definition: rtos.c:226
void * pfnUSART0_Handler
Definition: same70j19.h:163
void USBHS_Handler(void)
Definition: USBD_HAL.c:1008
void * pfnPWM0_Handler
Definition: same70j19.h:181
void * pfnSDRAMC_Handler
Definition: same70q19.h:229
void SPI1_Handler(void)
void USART0_Handler(void)
Definition: d_usartDMA.c:1646
void * pfnGMAC_Handler
Definition: same70j19.h:189
void TC7_Handler(void)
void QSPI_Handler(void)
void CCF_Handler(void)
void PendSV_Handler(void)
void * pvReserved9
Definition: same70j19.h:159
void PIOE_Handler(void)
void * pfnMemManage_Handler
Definition: same70j19.h:136
void RSWDT_Handler(void)
void * pfnDebugMon_Handler
Definition: same70j19.h:144
void * pfnPIOD_Handler
Definition: same70j19.h:166
void TWIHS1_Handler(void)
void DACC_Handler(void)
void * pfnTC2_Handler
Definition: same70j19.h:175
void RSTC_Handler(void)
void * pfnHSMCI_Handler
Definition: same70n19.h:175
void PIOD_Handler(void)
void TRNG_Handler(void)
void SUPC_Handler(void)
CMSIS Cortex-M7 Core Peripheral Access Layer Header File.
void * pfnReset_Handler
Definition: same70j19.h:133
void PWM1_Handler(void)
void * pfnUART1_Handler
Definition: same70j19.h:158
void MCAN1_INT0_Handler(void)
void * pfnSysTick_Handler
Definition: same70j19.h:147
void EFC_Handler(void)
void * pfnACC_Handler
Definition: same70j19.h:183
void * pfnWDT_Handler
Definition: same70j19.h:154
void * pfnICM_Handler
Definition: same70j19.h:182
void * pfnTC7_Handler
Definition: same70q19.h:215
void * pfnCCW_Handler
Definition: same70j19.h:214
void * pfnFPU_Handler
Definition: same70j19.h:211
void * pfnIXC_Handler
Definition: same70j19.h:218
void SSC_Handler(void)
void * pfnReserved2_Handler
Definition: same70j19.h:140
void TC4_Handler(void)
void GMAC_Q1_Handler(void)
void SPI0_Handler(void)
void WDT_Handler(void)
void * pfnReserved4_Handler
Definition: same70j19.h:142
void * pfnRTT_Handler
Definition: same70j19.h:153
void TWIHS2_Handler(void)
void * pfnUSART1_Handler
Definition: same70j19.h:164
void PMC_Handler(void)
void TC5_Handler(void)
void * pfnTC5_Handler
Definition: same70q19.h:195
void TC11_Handler(void)
void * pfnAES_Handler
Definition: same70j19.h:206
void MCAN1_INT1_Handler(void)
void TC8_Handler(void)
void * pfnPendSV_Handler
Definition: same70j19.h:146
void * pvReserved69
Definition: same70j19.h:219
void * pvReserved54
Definition: same70j19.h:204
void USART2_Handler(void)
Definition: d_usartDMA.c:1648
void * pfnSPI1_Handler
Definition: same70q19.h:209
void * pfnMCAN1_INT1_Handler
Definition: same70n19.h:195
void MemManage_Handler(void)
Definition: rtos.c:196
void AFEC1_Handler(void)
void * pvReserved53
Definition: same70j19.h:203
void * pfnTC0_Handler
Definition: same70j19.h:173
struct _DeviceVectors DeviceVectors
void * pfnTWIHS0_Handler
Definition: same70j19.h:169
void * pfnGMAC_Q1_Handler
Definition: same70j19.h:216
void * pfnDACC_Handler
Definition: same70j19.h:180
void * pfnUART0_Handler
Definition: same70j19.h:157
void TC3_Handler(void)
void * pfnNMI_Handler
Definition: same70j19.h:134
void * pfnTC9_Handler
Definition: same70j19.h:200
void * pfnUsageFault_Handler
Definition: same70j19.h:138
void TC2_Handler(void)
void * pfnTC10_Handler
Definition: same70j19.h:201
void CCW_Handler(void)
void AFEC0_Handler(void)
void SysTick_Handler(void)
void MCAN0_INT0_Handler(void)
void PIOC_Handler(void)
void * pfnPIOA_Handler
Definition: same70j19.h:160
void * pfnPIOC_Handler
Definition: same70q19.h:179
IRQn
Definition: same70j19.h:62
void * pfnEFC_Handler
Definition: same70j19.h:156
void * pfnTRNG_Handler
Definition: same70j19.h:207
void RTC_Handler(void)
void DebugMon_Handler(void)
void * pfnGMAC_Q2_Handler
Definition: same70j19.h:217
void * pfnMCAN0_INT0_Handler
Definition: same70j19.h:185
void GMAC_Q2_Handler(void)
void * pfnMCAN0_INT1_Handler
Definition: same70j19.h:186
void PIOA_Handler(void)
void TC6_Handler(void)
void HSMCI_Handler(void)
void * pfnTWIHS2_Handler
Definition: same70n19.h:198
void * pfnRTC_Handler
Definition: same70j19.h:152
void UART3_Handler(void)
Definition: d_usartDMA.c:1644
void * pfnSPI0_Handler
Definition: same70n19.h:178
void * pfnReserved3_Handler
Definition: same70j19.h:141
void * pfnReserved5_Handler
Definition: same70j19.h:145
void * pfnTC1_Handler
Definition: same70j19.h:174
void * pvReserved70
Definition: same70j19.h:220
void * pfnPMC_Handler
Definition: same70j19.h:155
void * pfnQSPI_Handler
Definition: same70j19.h:193
void * pfnRSTC_Handler
Definition: same70j19.h:151
void TC9_Handler(void)
void * pfnSUPC_Handler
Definition: same70j19.h:150
void UART4_Handler(void)
Definition: d_usartDMA.c:1645
void AES_Handler(void)
void * pfnReserved1_Handler
Definition: same70j19.h:139
void ISI_Handler(void)
void USART1_Handler(void)
Definition: d_usartDMA.c:1647
void SDRAMC_Handler(void)
void XDMAC_Handler(void)
Definition: d_usartDMA.c:704
void ICM_Handler(void)
void RTT_Handler(void)
Definition: d_time.c:22
void * pfnTC3_Handler
Definition: same70q19.h:193
void Reset_Handler(void)
This is the code that gets called on processor reset. To initialize the device, and call the main() r...
void * pfnTC8_Handler
Definition: same70q19.h:216


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:05