46#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
135 void* pfnReset_Handler;
136 void* pfnNMI_Handler;
137 void* pfnHardFault_Handler;
138 void* pfnMemManage_Handler;
139 void* pfnBusFault_Handler;
140 void* pfnUsageFault_Handler;
141 void* pfnReserved1_Handler;
142 void* pfnReserved2_Handler;
143 void* pfnReserved3_Handler;
144 void* pfnReserved4_Handler;
145 void* pfnSVC_Handler;
146 void* pfnDebugMon_Handler;
147 void* pfnReserved5_Handler;
148 void* pfnPendSV_Handler;
149 void* pfnSysTick_Handler;
152 void* pfnSUPC_Handler;
153 void* pfnRSTC_Handler;
154 void* pfnRTC_Handler;
155 void* pfnRTT_Handler;
156 void* pfnWDT_Handler;
157 void* pfnPMC_Handler;
158 void* pfnEFC_Handler;
159 void* pfnUART0_Handler;
160 void* pfnUART1_Handler;
162 void* pfnPIOA_Handler;
163 void* pfnPIOB_Handler;
164 void* pfnPIOC_Handler;
165 void* pfnUSART0_Handler;
166 void* pfnUSART1_Handler;
167 void* pfnUSART2_Handler;
168 void* pfnPIOD_Handler;
169 void* pfnPIOE_Handler;
170 void* pfnHSMCI_Handler;
171 void* pfnTWIHS0_Handler;
172 void* pfnTWIHS1_Handler;
173 void* pfnSPI0_Handler;
174 void* pfnSSC_Handler;
175 void* pfnTC0_Handler;
176 void* pfnTC1_Handler;
177 void* pfnTC2_Handler;
178 void* pfnTC3_Handler;
179 void* pfnTC4_Handler;
180 void* pfnTC5_Handler;
181 void* pfnAFEC0_Handler;
182 void* pfnDACC_Handler;
183 void* pfnPWM0_Handler;
184 void* pfnICM_Handler;
185 void* pfnACC_Handler;
186 void* pfnUSBHS_Handler;
192 void* pfnAFEC1_Handler;
193 void* pfnTWIHS2_Handler;
194 void* pfnSPI1_Handler;
195 void* pfnQSPI_Handler;
196 void* pfnUART2_Handler;
197 void* pfnUART3_Handler;
198 void* pfnUART4_Handler;
199 void* pfnTC6_Handler;
200 void* pfnTC7_Handler;
201 void* pfnTC8_Handler;
202 void* pfnTC9_Handler;
203 void* pfnTC10_Handler;
204 void* pfnTC11_Handler;
208 void* pfnAES_Handler;
209 void* pfnTRNG_Handler;
210 void* pfnXDMAC_Handler;
211 void* pfnISI_Handler;
212 void* pfnPWM1_Handler;
214 void* pfnSDRAMC_Handler;
215 void* pfnRSWDT_Handler;
219void Reset_Handler (
void );
225void SVC_Handler (
void );
226void DebugMon_Handler (
void );
227void PendSV_Handler (
void );
228void SysTick_Handler (
void );
231void ACC_Handler (
void );
232void AES_Handler (
void );
233void AFEC0_Handler (
void );
234void AFEC1_Handler (
void );
235void DACC_Handler (
void );
236void EFC_Handler (
void );
237void HSMCI_Handler (
void );
238void ICM_Handler (
void );
239void ISI_Handler (
void );
240void PIOA_Handler (
void );
241void PIOB_Handler (
void );
242void PIOC_Handler (
void );
243void PIOD_Handler (
void );
244void PIOE_Handler (
void );
245void PMC_Handler (
void );
246void PWM0_Handler (
void );
247void PWM1_Handler (
void );
248void QSPI_Handler (
void );
249void RSTC_Handler (
void );
250void RSWDT_Handler (
void );
251void RTC_Handler (
void );
252void RTT_Handler (
void );
253void SDRAMC_Handler (
void );
254void SPI0_Handler (
void );
255void SPI1_Handler (
void );
256void SSC_Handler (
void );
257void SUPC_Handler (
void );
258void TC0_Handler (
void );
259void TC1_Handler (
void );
260void TC2_Handler (
void );
261void TC3_Handler (
void );
262void TC4_Handler (
void );
263void TC5_Handler (
void );
264void TC6_Handler (
void );
265void TC7_Handler (
void );
266void TC8_Handler (
void );
267void TC9_Handler (
void );
268void TC10_Handler (
void );
269void TC11_Handler (
void );
270void TRNG_Handler (
void );
271void TWIHS0_Handler (
void );
272void TWIHS1_Handler (
void );
273void TWIHS2_Handler (
void );
274void UART0_Handler (
void );
275void UART1_Handler (
void );
276void UART2_Handler (
void );
277void UART3_Handler (
void );
278void UART4_Handler (
void );
279void USART0_Handler (
void );
280void USART1_Handler (
void );
281void USART2_Handler (
void );
282void USBHS_Handler (
void );
283void WDT_Handler (
void );
284void XDMAC_Handler (
void );
290#define __CM7_REV 0x0000
291#define __MPU_PRESENT 1
292#define __NVIC_PRIO_BITS 3
293#define __FPU_PRESENT 1
295#define __ICACHE_PRESENT 1
296#define __DCACHE_PRESENT 1
297#define __DTCM_PRESENT 1
298#define __ITCM_PRESENT 1
299#define __Vendor_SysTickConfig 0
306#if !defined DONT_USE_CMSIS_INIT
307#include "system_sams70.h"
318#include "component/component_acc.h"
319#include "component/component_aes.h"
320#include "component/component_afec.h"
321#include "component/component_chipid.h"
322#include "component/component_dacc.h"
323#include "component/component_efc.h"
324#include "component/component_gpbr.h"
325#include "component/component_hsmci.h"
326#include "component/component_icm.h"
327#include "component/component_isi.h"
328#include "component/component_matrix.h"
329#include "component/component_pio.h"
330#include "component/component_pmc.h"
331#include "component/component_pwm.h"
332#include "component/component_qspi.h"
333#include "component/component_rstc.h"
334#include "component/component_rswdt.h"
335#include "component/component_rtc.h"
336#include "component/component_rtt.h"
337#include "component/component_sdramc.h"
338#include "component/component_smc.h"
339#include "component/component_spi.h"
340#include "component/component_ssc.h"
341#include "component/component_supc.h"
342#include "component/component_tc.h"
343#include "component/component_trng.h"
344#include "component/component_twihs.h"
345#include "component/component_uart.h"
346#include "component/component_usart.h"
347#include "component/component_usbhs.h"
348#include "component/component_utmi.h"
349#include "component/component_wdt.h"
350#include "component/component_xdmac.h"
360#include "instance/instance_hsmci.h"
361#include "instance/instance_ssc.h"
362#include "instance/instance_spi0.h"
363#include "instance/instance_tc0.h"
364#include "instance/instance_tc1.h"
365#include "instance/instance_tc2.h"
366#include "instance/instance_twihs0.h"
367#include "instance/instance_twihs1.h"
368#include "instance/instance_pwm0.h"
369#include "instance/instance_usart0.h"
370#include "instance/instance_usart1.h"
371#include "instance/instance_usart2.h"
372#include "instance/instance_usbhs.h"
373#include "instance/instance_afec0.h"
374#include "instance/instance_dacc.h"
375#include "instance/instance_acc.h"
376#include "instance/instance_icm.h"
377#include "instance/instance_isi.h"
378#include "instance/instance_tc3.h"
379#include "instance/instance_spi1.h"
380#include "instance/instance_pwm1.h"
381#include "instance/instance_twihs2.h"
382#include "instance/instance_afec1.h"
383#include "instance/instance_aes.h"
384#include "instance/instance_trng.h"
385#include "instance/instance_xdmac.h"
386#include "instance/instance_qspi.h"
387#include "instance/instance_smc.h"
388#include "instance/instance_sdramc.h"
389#include "instance/instance_matrix.h"
390#include "instance/instance_utmi.h"
391#include "instance/instance_pmc.h"
392#include "instance/instance_uart0.h"
393#include "instance/instance_chipid.h"
394#include "instance/instance_uart1.h"
395#include "instance/instance_efc.h"
396#include "instance/instance_pioa.h"
397#include "instance/instance_piob.h"
398#include "instance/instance_pioc.h"
399#include "instance/instance_piod.h"
400#include "instance/instance_pioe.h"
401#include "instance/instance_rstc.h"
402#include "instance/instance_supc.h"
403#include "instance/instance_rtt.h"
404#include "instance/instance_wdt.h"
405#include "instance/instance_rtc.h"
406#include "instance/instance_gpbr.h"
407#include "instance/instance_rswdt.h"
408#include "instance/instance_uart2.h"
409#include "instance/instance_uart3.h"
410#include "instance/instance_uart4.h"
433#define ID_USART0 (13)
434#define ID_USART1 (14)
435#define ID_USART2 (15)
439#define ID_TWIHS0 (19)
440#define ID_TWIHS1 (20)
456#define ID_TWIHS2 (41)
473#define ID_SDRAMC (62)
476#define ID_PERIPH_COUNT (64)
485#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
486#define HSMCI (0x40000000U)
487#define SSC (0x40004000U)
488#define SPI0 (0x40008000U)
489#define TC0 (0x4000C000U)
490#define TC1 (0x40010000U)
491#define TC2 (0x40014000U)
492#define TWIHS0 (0x40018000U)
493#define TWIHS1 (0x4001C000U)
494#define PWM0 (0x40020000U)
495#define USART0 (0x40024000U)
496#define USART1 (0x40028000U)
497#define USART2 (0x4002C000U)
498#define USBHS (0x40038000U)
499#define AFEC0 (0x4003C000U)
500#define DACC (0x40040000U)
501#define ACC (0x40044000U)
502#define ICM (0x40048000U)
503#define ISI (0x4004C000U)
504#define TC3 (0x40054000U)
505#define SPI1 (0x40058000U)
506#define PWM1 (0x4005C000U)
507#define TWIHS2 (0x40060000U)
508#define AFEC1 (0x40064000U)
509#define AES (0x4006C000U)
510#define TRNG (0x40070000U)
511#define XDMAC (0x40078000U)
512#define QSPI (0x4007C000U)
513#define SMC (0x40080000U)
514#define SDRAMC (0x40084000U)
515#define MATRIX (0x40088000U)
516#define UTMI (0x400E0400U)
517#define PMC (0x400E0600U)
518#define UART0 (0x400E0800U)
519#define CHIPID (0x400E0940U)
520#define UART1 (0x400E0A00U)
521#define EFC (0x400E0C00U)
522#define PIOA (0x400E0E00U)
523#define PIOB (0x400E1000U)
524#define PIOC (0x400E1200U)
525#define PIOD (0x400E1400U)
526#define PIOE (0x400E1600U)
527#define RSTC (0x400E1800U)
528#define SUPC (0x400E1810U)
529#define RTT (0x400E1830U)
530#define WDT (0x400E1850U)
531#define RTC (0x400E1860U)
532#define GPBR (0x400E1890U)
533#define RSWDT (0x400E1900U)
534#define UART2 (0x400E1A00U)
535#define UART3 (0x400E1C00U)
536#define UART4 (0x400E1E00U)
538#define HSMCI ((Hsmci *)0x40000000U)
539#define SSC ((Ssc *)0x40004000U)
540#define SPI0 ((Spi *)0x40008000U)
541#define TC0 ((Tc *)0x4000C000U)
542#define TC1 ((Tc *)0x40010000U)
543#define TC2 ((Tc *)0x40014000U)
544#define TWIHS0 ((Twihs *)0x40018000U)
545#define TWIHS1 ((Twihs *)0x4001C000U)
546#define PWM0 ((Pwm *)0x40020000U)
547#define USART0 ((Usart *)0x40024000U)
548#define USART1 ((Usart *)0x40028000U)
549#define USART2 ((Usart *)0x4002C000U)
550#define USBHS ((Usbhs *)0x40038000U)
551#define AFEC0 ((Afec *)0x4003C000U)
552#define DACC ((Dacc *)0x40040000U)
553#define ACC ((Acc *)0x40044000U)
554#define ICM ((Icm *)0x40048000U)
555#define ISI ((Isi *)0x4004C000U)
556#define TC3 ((Tc *)0x40054000U)
557#define SPI1 ((Spi *)0x40058000U)
558#define PWM1 ((Pwm *)0x4005C000U)
559#define TWIHS2 ((Twihs *)0x40060000U)
560#define AFEC1 ((Afec *)0x40064000U)
561#define AES ((Aes *)0x4006C000U)
562#define TRNG ((Trng *)0x40070000U)
563#define XDMAC ((Xdmac *)0x40078000U)
564#define QSPI ((Qspi *)0x4007C000U)
565#define SMC ((Smc *)0x40080000U)
566#define SDRAMC ((Sdramc *)0x40084000U)
567#define MATRIX ((Matrix *)0x40088000U)
568#define UTMI ((Utmi *)0x400E0400U)
569#define PMC ((Pmc *)0x400E0600U)
570#define UART0 ((Uart *)0x400E0800U)
571#define CHIPID ((Chipid *)0x400E0940U)
572#define UART1 ((Uart *)0x400E0A00U)
573#define EFC ((Efc *)0x400E0C00U)
574#define PIOA ((Pio *)0x400E0E00U)
575#define PIOB ((Pio *)0x400E1000U)
576#define PIOC ((Pio *)0x400E1200U)
577#define PIOD ((Pio *)0x400E1400U)
578#define PIOE ((Pio *)0x400E1600U)
579#define RSTC ((Rstc *)0x400E1800U)
580#define SUPC ((Supc *)0x400E1810U)
581#define RTT ((Rtt *)0x400E1830U)
582#define WDT ((Wdt *)0x400E1850U)
583#define RTC ((Rtc *)0x400E1860U)
584#define GPBR ((Gpbr *)0x400E1890U)
585#define RSWDT ((Rswdt *)0x400E1900U)
586#define UART2 ((Uart *)0x400E1A00U)
587#define UART3 ((Uart *)0x400E1C00U)
588#define UART4 ((Uart *)0x400E1E00U)
598#include "pio/pio_sams70q21.h"
605#define IFLASH_SIZE (0x200000u)
606#define IFLASH_PAGE_SIZE (512u)
607#define IFLASH_LOCK_REGION_SIZE (8192u)
608#define IFLASH_NB_OF_PAGES (4096u)
609#define IFLASH_NB_OF_LOCK_BITS (128u)
610#define IRAM_SIZE (0x60000u)
612#define QSPIMEM_ADDR (0x80000000u)
613#define AXIMX_ADDR (0xA0000000u)
614#define ITCM_ADDR (0x00000000u)
615#define IFLASH_ADDR (0x00400000u)
616#define IROM_ADDR (0x00800000u)
617#define DTCM_ADDR (0x20000000u)
618#define IRAM_ADDR (0x20400000u)
619#define EBI_CS0_ADDR (0x60000000u)
620#define EBI_CS1_ADDR (0x61000000u)
621#define EBI_CS2_ADDR (0x62000000u)
622#define EBI_CS3_ADDR (0x63000000u)
623#define SDRAM_CS_ADDR (0x70000000u)
629#define CHIP_JTAGID (0x05B3D03FUL)
630#define CHIP_CIDR (0xA1120E00UL)
631#define CHIP_EXID (0x00000002UL)
640#define CHIP_FREQ_SLCK_RC_MIN (20000UL)
641#define CHIP_FREQ_SLCK_RC (32000UL)
642#define CHIP_FREQ_SLCK_RC_MAX (44000UL)
643#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000UL)
644#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000UL)
645#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000UL)
646#define CHIP_FREQ_CPU_MAX (120000000UL)
647#define CHIP_FREQ_XTAL_32K (32768UL)
648#define CHIP_FREQ_XTAL_12M (12000000UL)
651#define CHIP_FREQ_FWS_0 (20000000UL)
652#define CHIP_FREQ_FWS_1 (40000000UL)
653#define CHIP_FREQ_FWS_2 (60000000UL)
654#define CHIP_FREQ_FWS_3 (80000000UL)
655#define CHIP_FREQ_FWS_4 (100000000UL)
656#define CHIP_FREQ_FWS_5 (123000000UL)
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: sams70q21.h:115
@ PendSV_IRQn
Definition: sams70q21.h:67
@ PWM1_IRQn
Definition: sams70q21.h:122
@ UART3_IRQn
Definition: sams70q21.h:110
@ XDMAC_IRQn
Definition: sams70q21.h:120
@ TC6_IRQn
Definition: sams70q21.h:112
@ TC0_IRQn
Definition: sams70q21.h:93
@ MemoryManagement_IRQn
Definition: sams70q21.h:62
@ ISI_IRQn
Definition: sams70q21.h:121
@ TWIHS1_IRQn
Definition: sams70q21.h:90
@ USART2_IRQn
Definition: sams70q21.h:85
@ USART0_IRQn
Definition: sams70q21.h:83
@ SVCall_IRQn
Definition: sams70q21.h:65
@ PIOC_IRQn
Definition: sams70q21.h:82
@ RSWDT_IRQn
Definition: sams70q21.h:124
@ AFEC0_IRQn
Definition: sams70q21.h:99
@ TC4_IRQn
Definition: sams70q21.h:97
@ SDRAMC_IRQn
Definition: sams70q21.h:123
@ TC1_IRQn
Definition: sams70q21.h:94
@ UsageFault_IRQn
Definition: sams70q21.h:64
@ SysTick_IRQn
Definition: sams70q21.h:68
@ PMC_IRQn
Definition: sams70q21.h:76
@ SUPC_IRQn
Definition: sams70q21.h:71
@ WDT_IRQn
Definition: sams70q21.h:75
@ SSC_IRQn
Definition: sams70q21.h:92
@ PIOA_IRQn
Definition: sams70q21.h:80
@ TC5_IRQn
Definition: sams70q21.h:98
@ PERIPH_COUNT_IRQn
Definition: sams70q21.h:126
@ PIOE_IRQn
Definition: sams70q21.h:87
@ AES_IRQn
Definition: sams70q21.h:118
@ BusFault_IRQn
Definition: sams70q21.h:63
@ TC7_IRQn
Definition: sams70q21.h:113
@ TC11_IRQn
Definition: sams70q21.h:117
@ DebugMonitor_IRQn
Definition: sams70q21.h:66
@ TC2_IRQn
Definition: sams70q21.h:95
@ UART1_IRQn
Definition: sams70q21.h:79
@ TWIHS2_IRQn
Definition: sams70q21.h:106
@ TC3_IRQn
Definition: sams70q21.h:96
@ TC8_IRQn
Definition: sams70q21.h:114
@ TC10_IRQn
Definition: sams70q21.h:116
@ RSTC_IRQn
Definition: sams70q21.h:72
@ PIOD_IRQn
Definition: sams70q21.h:86
@ SPI1_IRQn
Definition: sams70q21.h:107
@ UART2_IRQn
Definition: sams70q21.h:109
@ HardFault_IRQn
Definition: sams70q21.h:61
@ TRNG_IRQn
Definition: sams70q21.h:119
@ RTT_IRQn
Definition: sams70q21.h:74
@ AFEC1_IRQn
Definition: sams70q21.h:105
@ QSPI_IRQn
Definition: sams70q21.h:108
@ USART1_IRQn
Definition: sams70q21.h:84
@ RTC_IRQn
Definition: sams70q21.h:73
@ NonMaskableInt_IRQn
Definition: sams70q21.h:60
@ UART4_IRQn
Definition: sams70q21.h:111
@ TWIHS0_IRQn
Definition: sams70q21.h:89
@ PIOB_IRQn
Definition: sams70q21.h:81
@ USBHS_IRQn
Definition: sams70q21.h:104
@ PWM0_IRQn
Definition: sams70q21.h:101
@ HSMCI_IRQn
Definition: sams70q21.h:88
@ UART0_IRQn
Definition: sams70q21.h:78
@ ICM_IRQn
Definition: sams70q21.h:102
@ ACC_IRQn
Definition: sams70q21.h:103
@ EFC_IRQn
Definition: sams70q21.h:77
@ SPI0_IRQn
Definition: sams70q21.h:91
@ DACC_IRQn
Definition: sams70q21.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