46 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 126 void* pfnReset_Handler;
127 void* pfnNMI_Handler;
128 void* pfnHardFault_Handler;
129 void* pfnMemManage_Handler;
130 void* pfnBusFault_Handler;
131 void* pfnUsageFault_Handler;
132 void* pfnReserved1_Handler;
133 void* pfnReserved2_Handler;
134 void* pfnReserved3_Handler;
135 void* pfnReserved4_Handler;
136 void* pfnSVC_Handler;
137 void* pfnDebugMon_Handler;
138 void* pfnReserved5_Handler;
139 void* pfnPendSV_Handler;
140 void* pfnSysTick_Handler;
143 void* pfnSUPC_Handler;
144 void* pfnRSTC_Handler;
145 void* pfnRTC_Handler;
146 void* pfnRTT_Handler;
147 void* pfnWDT_Handler;
148 void* pfnPMC_Handler;
149 void* pfnEFC_Handler;
150 void* pfnUART0_Handler;
151 void* pfnUART1_Handler;
153 void* pfnPIOA_Handler;
154 void* pfnPIOB_Handler;
156 void* pfnUSART0_Handler;
157 void* pfnUSART1_Handler;
158 void* pfnUSART2_Handler;
159 void* pfnPIOD_Handler;
161 void* pfnHSMCI_Handler;
162 void* pfnTWIHS0_Handler;
163 void* pfnTWIHS1_Handler;
164 void* pfnSPI0_Handler;
165 void* pfnSSC_Handler;
166 void* pfnTC0_Handler;
167 void* pfnTC1_Handler;
168 void* pfnTC2_Handler;
172 void* pfnAFEC0_Handler;
173 void* pfnDACC_Handler;
174 void* pfnPWM0_Handler;
175 void* pfnICM_Handler;
176 void* pfnACC_Handler;
177 void* pfnUSBHS_Handler;
183 void* pfnAFEC1_Handler;
184 void* pfnTWIHS2_Handler;
185 void* pfnSPI1_Handler;
186 void* pfnQSPI_Handler;
187 void* pfnUART2_Handler;
188 void* pfnUART3_Handler;
189 void* pfnUART4_Handler;
193 void* pfnTC9_Handler;
194 void* pfnTC10_Handler;
195 void* pfnTC11_Handler;
199 void* pfnAES_Handler;
200 void* pfnTRNG_Handler;
201 void* pfnXDMAC_Handler;
202 void* pfnISI_Handler;
203 void* pfnPWM1_Handler;
206 void* pfnRSWDT_Handler;
210 void Reset_Handler (
void );
216 void SVC_Handler (
void );
217 void DebugMon_Handler (
void );
218 void PendSV_Handler (
void );
219 void SysTick_Handler (
void );
222 void ACC_Handler (
void );
223 void AES_Handler (
void );
224 void AFEC0_Handler (
void );
225 void AFEC1_Handler (
void );
226 void DACC_Handler (
void );
227 void EFC_Handler (
void );
228 void HSMCI_Handler (
void );
229 void ICM_Handler (
void );
230 void ISI_Handler (
void );
231 void PIOA_Handler (
void );
232 void PIOB_Handler (
void );
233 void PIOD_Handler (
void );
234 void PMC_Handler (
void );
235 void PWM0_Handler (
void );
236 void PWM1_Handler (
void );
237 void QSPI_Handler (
void );
238 void RSTC_Handler (
void );
239 void RSWDT_Handler (
void );
240 void RTC_Handler (
void );
241 void RTT_Handler (
void );
242 void SPI0_Handler (
void );
243 void SPI1_Handler (
void );
244 void SSC_Handler (
void );
245 void SUPC_Handler (
void );
246 void TC0_Handler (
void );
247 void TC1_Handler (
void );
248 void TC2_Handler (
void );
249 void TC9_Handler (
void );
250 void TC10_Handler (
void );
251 void TC11_Handler (
void );
252 void TRNG_Handler (
void );
253 void TWIHS0_Handler (
void );
254 void TWIHS1_Handler (
void );
255 void TWIHS2_Handler (
void );
256 void UART0_Handler (
void );
257 void UART1_Handler (
void );
258 void UART2_Handler (
void );
259 void UART3_Handler (
void );
260 void UART4_Handler (
void );
261 void USART0_Handler (
void );
262 void USART1_Handler (
void );
263 void USART2_Handler (
void );
264 void USBHS_Handler (
void );
265 void WDT_Handler (
void );
266 void XDMAC_Handler (
void );
272 #define __CM7_REV 0x0000 273 #define __MPU_PRESENT 1 274 #define __NVIC_PRIO_BITS 3 275 #define __FPU_PRESENT 1 277 #define __ICACHE_PRESENT 1 278 #define __DCACHE_PRESENT 1 279 #define __DTCM_PRESENT 1 280 #define __ITCM_PRESENT 1 281 #define __Vendor_SysTickConfig 0 288 #if !defined DONT_USE_CMSIS_INIT 289 #include "system_sams70.h" 300 #include "component/component_acc.h" 301 #include "component/component_aes.h" 302 #include "component/component_afec.h" 303 #include "component/component_chipid.h" 304 #include "component/component_dacc.h" 305 #include "component/component_efc.h" 306 #include "component/component_gpbr.h" 307 #include "component/component_hsmci.h" 308 #include "component/component_icm.h" 309 #include "component/component_isi.h" 310 #include "component/component_matrix.h" 311 #include "component/component_pio.h" 312 #include "component/component_pmc.h" 313 #include "component/component_pwm.h" 314 #include "component/component_qspi.h" 315 #include "component/component_rstc.h" 316 #include "component/component_rswdt.h" 317 #include "component/component_rtc.h" 318 #include "component/component_rtt.h" 319 #include "component/component_spi.h" 320 #include "component/component_ssc.h" 321 #include "component/component_supc.h" 322 #include "component/component_tc.h" 323 #include "component/component_trng.h" 324 #include "component/component_twihs.h" 325 #include "component/component_uart.h" 326 #include "component/component_usart.h" 327 #include "component/component_usbhs.h" 328 #include "component/component_utmi.h" 329 #include "component/component_wdt.h" 330 #include "component/component_xdmac.h" 340 #include "instance/instance_hsmci.h" 341 #include "instance/instance_ssc.h" 342 #include "instance/instance_spi0.h" 343 #include "instance/instance_tc0.h" 344 #include "instance/instance_twihs0.h" 345 #include "instance/instance_twihs1.h" 346 #include "instance/instance_pwm0.h" 347 #include "instance/instance_usart0.h" 348 #include "instance/instance_usart1.h" 349 #include "instance/instance_usart2.h" 350 #include "instance/instance_usbhs.h" 351 #include "instance/instance_afec0.h" 352 #include "instance/instance_dacc.h" 353 #include "instance/instance_acc.h" 354 #include "instance/instance_icm.h" 355 #include "instance/instance_isi.h" 356 #include "instance/instance_tc3.h" 357 #include "instance/instance_spi1.h" 358 #include "instance/instance_pwm1.h" 359 #include "instance/instance_twihs2.h" 360 #include "instance/instance_afec1.h" 361 #include "instance/instance_aes.h" 362 #include "instance/instance_trng.h" 363 #include "instance/instance_xdmac.h" 364 #include "instance/instance_qspi.h" 365 #include "instance/instance_matrix.h" 366 #include "instance/instance_utmi.h" 367 #include "instance/instance_pmc.h" 368 #include "instance/instance_uart0.h" 369 #include "instance/instance_chipid.h" 370 #include "instance/instance_uart1.h" 371 #include "instance/instance_efc.h" 372 #include "instance/instance_pioa.h" 373 #include "instance/instance_piob.h" 374 #include "instance/instance_piod.h" 375 #include "instance/instance_rstc.h" 376 #include "instance/instance_supc.h" 377 #include "instance/instance_rtt.h" 378 #include "instance/instance_wdt.h" 379 #include "instance/instance_rtc.h" 380 #include "instance/instance_gpbr.h" 381 #include "instance/instance_rswdt.h" 382 #include "instance/instance_uart2.h" 383 #include "instance/instance_uart3.h" 384 #include "instance/instance_uart4.h" 401 #define ID_UART0 ( 7) 402 #define ID_UART1 ( 8) 405 #define ID_USART0 (13) 406 #define ID_USART1 (14) 407 #define ID_USART2 (15) 409 #define ID_HSMCI (18) 410 #define ID_TWIHS0 (19) 411 #define ID_TWIHS1 (20) 417 #define ID_AFEC0 (29) 422 #define ID_USBHS (34) 423 #define ID_AFEC1 (40) 424 #define ID_TWIHS2 (41) 427 #define ID_UART2 (44) 428 #define ID_UART3 (45) 429 #define ID_UART4 (46) 435 #define ID_XDMAC (58) 438 #define ID_RSWDT (63) 440 #define ID_PERIPH_COUNT (64) 449 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 450 #define HSMCI (0x40000000U) 451 #define SSC (0x40004000U) 452 #define SPI0 (0x40008000U) 453 #define TC0 (0x4000C000U) 454 #define TWIHS0 (0x40018000U) 455 #define TWIHS1 (0x4001C000U) 456 #define PWM0 (0x40020000U) 457 #define USART0 (0x40024000U) 458 #define USART1 (0x40028000U) 459 #define USART2 (0x4002C000U) 460 #define USBHS (0x40038000U) 461 #define AFEC0 (0x4003C000U) 462 #define DACC (0x40040000U) 463 #define ACC (0x40044000U) 464 #define ICM (0x40048000U) 465 #define ISI (0x4004C000U) 466 #define TC3 (0x40054000U) 467 #define SPI1 (0x40058000U) 468 #define PWM1 (0x4005C000U) 469 #define TWIHS2 (0x40060000U) 470 #define AFEC1 (0x40064000U) 471 #define AES (0x4006C000U) 472 #define TRNG (0x40070000U) 473 #define XDMAC (0x40078000U) 474 #define QSPI (0x4007C000U) 475 #define MATRIX (0x40088000U) 476 #define UTMI (0x400E0400U) 477 #define PMC (0x400E0600U) 478 #define UART0 (0x400E0800U) 479 #define CHIPID (0x400E0940U) 480 #define UART1 (0x400E0A00U) 481 #define EFC (0x400E0C00U) 482 #define PIOA (0x400E0E00U) 483 #define PIOB (0x400E1000U) 484 #define PIOD (0x400E1400U) 485 #define RSTC (0x400E1800U) 486 #define SUPC (0x400E1810U) 487 #define RTT (0x400E1830U) 488 #define WDT (0x400E1850U) 489 #define RTC (0x400E1860U) 490 #define GPBR (0x400E1890U) 491 #define RSWDT (0x400E1900U) 492 #define UART2 (0x400E1A00U) 493 #define UART3 (0x400E1C00U) 494 #define UART4 (0x400E1E00U) 496 #define HSMCI ((Hsmci *)0x40000000U) 497 #define SSC ((Ssc *)0x40004000U) 498 #define SPI0 ((Spi *)0x40008000U) 499 #define TC0 ((Tc *)0x4000C000U) 500 #define TWIHS0 ((Twihs *)0x40018000U) 501 #define TWIHS1 ((Twihs *)0x4001C000U) 502 #define PWM0 ((Pwm *)0x40020000U) 503 #define USART0 ((Usart *)0x40024000U) 504 #define USART1 ((Usart *)0x40028000U) 505 #define USART2 ((Usart *)0x4002C000U) 506 #define USBHS ((Usbhs *)0x40038000U) 507 #define AFEC0 ((Afec *)0x4003C000U) 508 #define DACC ((Dacc *)0x40040000U) 509 #define ACC ((Acc *)0x40044000U) 510 #define ICM ((Icm *)0x40048000U) 511 #define ISI ((Isi *)0x4004C000U) 512 #define TC3 ((Tc *)0x40054000U) 513 #define SPI1 ((Spi *)0x40058000U) 514 #define PWM1 ((Pwm *)0x4005C000U) 515 #define TWIHS2 ((Twihs *)0x40060000U) 516 #define AFEC1 ((Afec *)0x40064000U) 517 #define AES ((Aes *)0x4006C000U) 518 #define TRNG ((Trng *)0x40070000U) 519 #define XDMAC ((Xdmac *)0x40078000U) 520 #define QSPI ((Qspi *)0x4007C000U) 521 #define MATRIX ((Matrix *)0x40088000U) 522 #define UTMI ((Utmi *)0x400E0400U) 523 #define PMC ((Pmc *)0x400E0600U) 524 #define UART0 ((Uart *)0x400E0800U) 525 #define CHIPID ((Chipid *)0x400E0940U) 526 #define UART1 ((Uart *)0x400E0A00U) 527 #define EFC ((Efc *)0x400E0C00U) 528 #define PIOA ((Pio *)0x400E0E00U) 529 #define PIOB ((Pio *)0x400E1000U) 530 #define PIOD ((Pio *)0x400E1400U) 531 #define RSTC ((Rstc *)0x400E1800U) 532 #define SUPC ((Supc *)0x400E1810U) 533 #define RTT ((Rtt *)0x400E1830U) 534 #define WDT ((Wdt *)0x400E1850U) 535 #define RTC ((Rtc *)0x400E1860U) 536 #define GPBR ((Gpbr *)0x400E1890U) 537 #define RSWDT ((Rswdt *)0x400E1900U) 538 #define UART2 ((Uart *)0x400E1A00U) 539 #define UART3 ((Uart *)0x400E1C00U) 540 #define UART4 ((Uart *)0x400E1E00U) 550 #include "pio/pio_sams70n20.h" 557 #define IFLASH_SIZE (0x100000u) 558 #define IFLASH_PAGE_SIZE (512u) 559 #define IFLASH_LOCK_REGION_SIZE (8192u) 560 #define IFLASH_NB_OF_PAGES (2048u) 561 #define IFLASH_NB_OF_LOCK_BITS (64u) 562 #define IRAM_SIZE (0x60000u) 564 #define QSPIMEM_ADDR (0x80000000u) 565 #define AXIMX_ADDR (0xA0000000u) 566 #define ITCM_ADDR (0x00000000u) 567 #define IFLASH_ADDR (0x00400000u) 568 #define IROM_ADDR (0x00800000u) 569 #define DTCM_ADDR (0x20000000u) 570 #define IRAM_ADDR (0x20400000u) 571 #define EBI_CS0_ADDR (0x60000000u) 572 #define EBI_CS1_ADDR (0x61000000u) 573 #define EBI_CS2_ADDR (0x62000000u) 574 #define EBI_CS3_ADDR (0x63000000u) 575 #define SDRAM_CS_ADDR (0x70000000u) 581 #define CHIP_JTAGID (0x05B3D03FUL) 582 #define CHIP_CIDR (0xA1120C00UL) 583 #define CHIP_EXID (0x00000001UL) 592 #define CHIP_FREQ_SLCK_RC_MIN (20000UL) 593 #define CHIP_FREQ_SLCK_RC (32000UL) 594 #define CHIP_FREQ_SLCK_RC_MAX (44000UL) 595 #define CHIP_FREQ_MAINCK_RC_4MHZ (4000000UL) 596 #define CHIP_FREQ_MAINCK_RC_8MHZ (8000000UL) 597 #define CHIP_FREQ_MAINCK_RC_12MHZ (12000000UL) 598 #define CHIP_FREQ_CPU_MAX (120000000UL) 599 #define CHIP_FREQ_XTAL_32K (32768UL) 600 #define CHIP_FREQ_XTAL_12M (12000000UL) 603 #define CHIP_FREQ_FWS_0 (20000000UL) 604 #define CHIP_FREQ_FWS_1 (40000000UL) 605 #define CHIP_FREQ_FWS_2 (60000000UL) 606 #define CHIP_FREQ_FWS_3 (80000000UL) 607 #define CHIP_FREQ_FWS_4 (100000000UL) 608 #define CHIP_FREQ_FWS_5 (123000000UL) Definition: sams70n20.h:82
Definition: sams70n20.h:78
Definition: sams70n20.h:92
Definition: sams70n20.h:74
Definition: sams70n20.h:88
Definition: sams70n20.h:68
Definition: sams70n20.h:93
Definition: sams70n20.h:90
Definition: sams70n20.h:113
Definition: sams70n20.h:65
Definition: sams70n20.h:102
Definition: sams70n20.h:80
Definition: sams70n20.h:97
Definition: sams70n20.h:85
Definition: sams70n20.h:108
Definition: sams70n20.h:109
Definition: sams70n20.h:89
Definition: sams70n20.h:117
Definition: sams70n20.h:104
Definition: sams70n20.h:105
Definition: sams70n20.h:72
Definition: sams70n20.h:76
Definition: sams70n20.h:71
CMSIS Cortex-M7 Core Peripheral Access Layer Header File.
Definition: sams70n20.h:66
void HardFault_Handler(void)
Default HardFault interrupt handler.
Definition: exceptions.c:168
Definition: sams70n20.h:61
Definition: sams70n20.h:101
Definition: same70j19.h:121
Definition: sams70n20.h:73
Definition: sams70n20.h:84
Definition: sams70n20.h:106
void MemManage_Handler(void)
Default MemManage interrupt handler.
Definition: exceptions.c:180
Definition: sams70n20.h:77
Definition: sams70n20.h:112
void NMI_Handler(void)
Default NMI interrupt handler.
Definition: exceptions.c:53
void BusFault_Handler(void)
Default BusFault interrupt handler.
Definition: exceptions.c:193
Definition: sams70n20.h:83
Definition: sams70n20.h:95
Definition: sams70n20.h:111
Definition: sams70n20.h:62
Definition: sams70n20.h:67
Definition: sams70n20.h:60
Definition: sams70n20.h:114
Definition: sams70n20.h:100
Definition: sams70n20.h:63
IRQn
Definition: same70j19.h:57
Definition: sams70n20.h:87
Definition: sams70n20.h:98
Definition: sams70n20.h:99
Definition: sams70n20.h:107
Definition: sams70n20.h:96
Definition: sams70n20.h:64
void UsageFault_Handler(void)
Default UsageFault interrupt handler.
Definition: exceptions.c:207
Definition: sams70n20.h:81
Definition: sams70n20.h:103
Definition: sams70n20.h:110
Definition: sams70n20.h:91
Definition: sams70n20.h:94
Definition: sams70n20.h:86
Definition: sams70n20.h:79
Definition: sams70n20.h:75
Definition: sams70n20.h:115