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