51 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 297 #define __CM7_REV 0x0000 298 #define __MPU_PRESENT 1 299 #define __NVIC_PRIO_BITS 3 300 #define __FPU_PRESENT 1 302 #define __ICACHE_PRESENT 1 303 #define __DCACHE_PRESENT 1 304 #define __DTCM_PRESENT 1 305 #define __ITCM_PRESENT 1 306 #define __Vendor_SysTickConfig 0 307 #define __SAM_M7_REVB 1 314 #if !defined DONT_USE_CMSIS_INIT 420 #define ID_UART0 ( 7) 421 #define ID_UART1 ( 8) 424 #define ID_USART0 (13) 425 #define ID_USART1 (14) 427 #define ID_TWIHS0 (19) 428 #define ID_TWIHS1 (20) 433 #define ID_AFEC0 (29) 438 #define ID_USBHS (34) 439 #define ID_MCAN0 (35) 440 #define ID_MCAN1 (37) 442 #define ID_AFEC1 (40) 444 #define ID_UART2 (44) 450 #define ID_XDMAC (58) 453 #define ID_RSWDT (63) 456 #define ID_PERIPH_COUNT (74) 465 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 466 #define SSC (0x40004000U) 467 #define TC0 (0x4000C000U) 468 #define TWIHS0 (0x40018000U) 469 #define TWIHS1 (0x4001C000U) 470 #define PWM0 (0x40020000U) 471 #define USART0 (0x40024000U) 472 #define USART1 (0x40028000U) 473 #define MCAN0 (0x40030000U) 474 #define MCAN1 (0x40034000U) 475 #define USBHS (0x40038000U) 476 #define AFEC0 (0x4003C000U) 477 #define DACC (0x40040000U) 478 #define ACC (0x40044000U) 479 #define ICM (0x40048000U) 480 #define ISI (0x4004C000U) 481 #define GMAC (0x40050000U) 482 #define TC3 (0x40054000U) 483 #define PWM1 (0x4005C000U) 484 #define AFEC1 (0x40064000U) 485 #define AES (0x4006C000U) 486 #define TRNG (0x40070000U) 487 #define XDMAC (0x40078000U) 488 #define QSPI (0x4007C000U) 489 #define MATRIX (0x40088000U) 490 #define UTMI (0x400E0400U) 491 #define PMC (0x400E0600U) 492 #define UART0 (0x400E0800U) 493 #define CHIPID (0x400E0940U) 494 #define UART1 (0x400E0A00U) 495 #define EFC (0x400E0C00U) 496 #define PIOA (0x400E0E00U) 497 #define PIOB (0x400E1000U) 498 #define PIOD (0x400E1400U) 499 #define RSTC (0x400E1800U) 500 #define SUPC (0x400E1810U) 501 #define RTT (0x400E1830U) 502 #define WDT (0x400E1850U) 503 #define RTC (0x400E1860U) 504 #define GPBR (0x400E1890U) 505 #define RSWDT (0x400E1900U) 506 #define UART2 (0x400E1A00U) 508 #define SSC ((Ssc *)0x40004000U) 509 #define TC0 ((Tc *)0x4000C000U) 510 #define TWIHS0 ((Twihs *)0x40018000U) 511 #define TWIHS1 ((Twihs *)0x4001C000U) 512 #define PWM0 ((Pwm *)0x40020000U) 513 #define USART0 ((Usart *)0x40024000U) 514 #define USART1 ((Usart *)0x40028000U) 515 #define MCAN0 ((Mcan *)0x40030000U) 516 #define MCAN1 ((Mcan *)0x40034000U) 517 #define USBHS ((Usbhs *)0x40038000U) 518 #define AFEC0 ((Afec *)0x4003C000U) 519 #define DACC ((Dacc *)0x40040000U) 520 #define ACC ((Acc *)0x40044000U) 521 #define ICM ((Icm *)0x40048000U) 522 #define ISI ((Isi *)0x4004C000U) 523 #define GMAC ((Gmac *)0x40050000U) 524 #define TC3 ((Tc *)0x40054000U) 525 #define PWM1 ((Pwm *)0x4005C000U) 526 #define AFEC1 ((Afec *)0x40064000U) 527 #define AES ((Aes *)0x4006C000U) 528 #define TRNG ((Trng *)0x40070000U) 529 #define XDMAC ((Xdmac *)0x40078000U) 530 #define QSPI ((Qspi *)0x4007C000U) 531 #define MATRIX ((Matrix *)0x40088000U) 532 #define UTMI ((Utmi *)0x400E0400U) 533 #define PMC ((Pmc *)0x400E0600U) 534 #define UART0 ((Uart *)0x400E0800U) 535 #define CHIPID ((Chipid *)0x400E0940U) 536 #define UART1 ((Uart *)0x400E0A00U) 537 #define EFC ((Efc *)0x400E0C00U) 538 #define PIOA ((Pio *)0x400E0E00U) 539 #define PIOB ((Pio *)0x400E1000U) 540 #define PIOD ((Pio *)0x400E1400U) 541 #define RSTC ((Rstc *)0x400E1800U) 542 #define SUPC ((Supc *)0x400E1810U) 543 #define RTT ((Rtt *)0x400E1830U) 544 #define WDT ((Wdt *)0x400E1850U) 545 #define RTC ((Rtc *)0x400E1860U) 546 #define GPBR ((Gpbr *)0x400E1890U) 547 #define RSWDT ((Rswdt *)0x400E1900U) 548 #define UART2 ((Uart *)0x400E1A00U) 565 #define IFLASH_SIZE (0x200000u) 566 #define IFLASH_PAGE_SIZE (512u) 567 #define IFLASH_LOCK_REGION_SIZE (8192u) 568 #define IFLASH_NB_OF_PAGES (4096u) 569 #define IFLASH_NB_OF_LOCK_BITS (128u) 570 #define IRAM_SIZE (0x60000u) 572 #define QSPIMEM_ADDR (0x80000000u) 573 #define AXIMX_ADDR (0xA0000000u) 574 #define ITCM_ADDR (0x00000000u) 575 #define IFLASH_ADDR (0x00400000u) 576 #define IROM_ADDR (0x00800000u) 577 #define DTCM_ADDR (0x20000000u) 578 #define IRAM_ADDR (0x20400000u) 579 #define EBI_CS0_ADDR (0x60000000u) 580 #define EBI_CS1_ADDR (0x61000000u) 581 #define EBI_CS2_ADDR (0x62000000u) 582 #define EBI_CS3_ADDR (0x63000000u) 583 #define SDRAM_CS_ADDR (0x70000000u) 589 #define CHIP_JTAGID (0x05B3D03FUL) 590 #define CHIP_CIDR (0xA1020E01UL) 591 #define CHIP_EXID (0x00000000UL) 600 #define CHIP_FREQ_SLCK_RC_MIN (20000UL) 601 #define CHIP_FREQ_SLCK_RC (32000UL) 602 #define CHIP_FREQ_SLCK_RC_MAX (44000UL) 603 #define CHIP_FREQ_MAINCK_RC_4MHZ (4000000UL) 604 #define CHIP_FREQ_MAINCK_RC_8MHZ (8000000UL) 605 #define CHIP_FREQ_MAINCK_RC_12MHZ (12000000UL) 606 #define CHIP_FREQ_CPU_MAX (300000000UL) 607 #define CHIP_FREQ_XTAL_32K (32768UL) 608 #define CHIP_FREQ_XTAL_12M (12000000UL) 611 #define CHIP_FREQ_FWS_0 (23000000UL) 612 #define CHIP_FREQ_FWS_1 (46000000UL) 613 #define CHIP_FREQ_FWS_2 (69000000UL) 614 #define CHIP_FREQ_FWS_3 (92000000UL) 615 #define CHIP_FREQ_FWS_4 (115000000UL) 616 #define CHIP_FREQ_FWS_5 (138000000UL) 617 #define CHIP_FREQ_FWS_6 (150000000UL)
void HardFault_Handler(void)
void * pfnBusFault_Handler
void * pfnGMAC_Q5_Handler
void DebugMon_Handler(void)
void USART1_Handler(void)
void * pfnHardFault_Handler
void TWIHS0_Handler(void)
void * pfnGMAC_Q3_Handler
void UsageFault_Handler(void)
void SysTick_Handler(void)
void * pfnMemManage_Handler
void * pfnDebugMon_Handler
void USART0_Handler(void)
void GMAC_Q3_Handler(void)
void * pfnGMAC_Q4_Handler
void BusFault_Handler(void)
CMSIS Cortex-M7 Core Peripheral Access Layer Header File.
void * pfnSysTick_Handler
void MCAN0_INT1_Handler(void)
void MemManage_Handler(void)
void * pfnReserved2_Handler
void * pfnReserved4_Handler
void GMAC_Q4_Handler(void)
void AFEC0_Handler(void)
Interrupt handler for AFEC0.
void AFEC1_Handler(void)
Interrupt handler for AFEC1.
void GMAC_Q5_Handler(void)
void * pfnGMAC_Q1_Handler
void * pfnUsageFault_Handler
void TWIHS1_Handler(void)
void MCAN0_INT0_Handler(void)
void * pfnGMAC_Q2_Handler
void * pfnMCAN0_INT0_Handler
void * pfnMCAN0_INT1_Handler
struct _DeviceVectors DeviceVectors
void * pfnReserved3_Handler
void * pfnReserved5_Handler
void GMAC_Q2_Handler(void)
void Reset_Handler(void)
This is the code that gets called on processor reset. To initialize the device, and call the main() r...
void GMAC_Q1_Handler(void)
void * pfnReserved1_Handler
void PendSV_Handler(void)