46 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 typedef volatile const uint32_t
RoReg;
51 typedef volatile uint32_t
RoReg;
53 typedef volatile uint32_t
WoReg;
54 typedef volatile uint32_t
RwReg;
128 void* pfnReset_Handler;
129 void* pfnNMI_Handler;
130 void* pfnHardFault_Handler;
131 void* pfnMemManage_Handler;
132 void* pfnBusFault_Handler;
133 void* pfnUsageFault_Handler;
134 void* pfnReserved1_Handler;
135 void* pfnReserved2_Handler;
136 void* pfnReserved3_Handler;
137 void* pfnReserved4_Handler;
138 void* pfnSVC_Handler;
139 void* pfnDebugMon_Handler;
140 void* pfnReserved5_Handler;
141 void* pfnPendSV_Handler;
142 void* pfnSysTick_Handler;
145 void* pfnSUPC_Handler;
146 void* pfnRSTC_Handler;
147 void* pfnRTC_Handler;
148 void* pfnRTT_Handler;
149 void* pfnWDT_Handler;
150 void* pfnPMC_Handler;
151 void* pfnEFC0_Handler;
152 void* pfnEFC1_Handler;
153 void* pfnUART_Handler;
154 void* pfnSMC_Handler;
156 void* pfnPIOA_Handler;
157 void* pfnPIOB_Handler;
158 void* pfnPIOC_Handler;
159 void* pfnPIOD_Handler;
162 void* pfnUSART0_Handler;
163 void* pfnUSART1_Handler;
164 void* pfnUSART2_Handler;
165 void* pfnUSART3_Handler;
166 void* pfnHSMCI_Handler;
167 void* pfnTWI0_Handler;
168 void* pfnTWI1_Handler;
169 void* pfnSPI0_Handler;
171 void* pfnSSC_Handler;
172 void* pfnTC0_Handler;
173 void* pfnTC1_Handler;
174 void* pfnTC2_Handler;
175 void* pfnTC3_Handler;
176 void* pfnTC4_Handler;
177 void* pfnTC5_Handler;
178 void* pfnTC6_Handler;
179 void* pfnTC7_Handler;
180 void* pfnTC8_Handler;
181 void* pfnPWM_Handler;
182 void* pfnADC_Handler;
183 void* pfnDACC_Handler;
184 void* pfnDMAC_Handler;
185 void* pfnUOTGHS_Handler;
186 void* pfnTRNG_Handler;
187 void* pfnEMAC_Handler;
188 void* pfnCAN0_Handler;
189 void* pfnCAN1_Handler;
194 void NMI_Handler (
void );
196 void MemManage_Handler (
void );
199 void SVC_Handler (
void );
200 void DebugMon_Handler (
void );
201 void PendSV_Handler (
void );
205 void ADC_Handler (
void );
206 void CAN0_Handler (
void );
207 void CAN1_Handler (
void );
208 void DACC_Handler (
void );
209 void DMAC_Handler (
void );
210 void EFC0_Handler (
void );
211 void EFC1_Handler (
void );
212 void EMAC_Handler (
void );
213 void HSMCI_Handler (
void );
214 void PIOA_Handler (
void );
215 void PIOB_Handler (
void );
216 void PIOC_Handler (
void );
217 void PIOD_Handler (
void );
218 void PMC_Handler (
void );
219 void PWM_Handler (
void );
220 void RSTC_Handler (
void );
221 void RTC_Handler (
void );
222 void RTT_Handler (
void );
223 void SMC_Handler (
void );
224 void SPI0_Handler (
void );
225 void SSC_Handler (
void );
226 void SUPC_Handler (
void );
227 void TC0_Handler (
void );
228 void TC1_Handler (
void );
229 void TC2_Handler (
void );
230 void TC3_Handler (
void );
231 void TC4_Handler (
void );
232 void TC5_Handler (
void );
233 void TC6_Handler (
void );
234 void TC7_Handler (
void );
235 void TC8_Handler (
void );
236 void TRNG_Handler (
void );
237 void TWI0_Handler (
void );
238 void TWI1_Handler (
void );
239 void UART_Handler (
void );
240 void UOTGHS_Handler (
void );
241 void USART0_Handler (
void );
242 void USART1_Handler (
void );
243 void USART2_Handler (
void );
244 void USART3_Handler (
void );
245 void WDT_Handler (
void );
251 #define __CM3_REV 0x0200 252 #define __MPU_PRESENT 1 253 #define __NVIC_PRIO_BITS 4 254 #define __Vendor_SysTickConfig 0 261 #if !defined DONT_USE_CMSIS_INIT 273 #include "component/component_adc.h" 274 #include "component/component_can.h" 275 #include "component/component_chipid.h" 276 #include "component/component_dacc.h" 277 #include "component/component_dmac.h" 278 #include "component/component_efc.h" 279 #include "component/component_emac.h" 280 #include "component/component_gpbr.h" 281 #include "component/component_hsmci.h" 282 #include "component/component_matrix.h" 283 #include "component/component_pdc.h" 284 #include "component/component_pio.h" 285 #include "component/component_pmc.h" 286 #include "component/component_pwm.h" 287 #include "component/component_rstc.h" 288 #include "component/component_rtc.h" 289 #include "component/component_rtt.h" 290 #include "component/component_smc.h" 291 #include "component/component_spi.h" 292 #include "component/component_ssc.h" 293 #include "component/component_supc.h" 294 #include "component/component_tc.h" 295 #include "component/component_trng.h" 296 #include "component/component_twi.h" 297 #include "component/component_uart.h" 298 #include "component/component_uotghs.h" 299 #include "component/component_usart.h" 300 #include "component/component_wdt.h" 309 #include "instance/instance_hsmci.h" 310 #include "instance/instance_ssc.h" 311 #include "instance/instance_spi0.h" 312 #include "instance/instance_tc0.h" 313 #include "instance/instance_tc1.h" 314 #include "instance/instance_tc2.h" 315 #include "instance/instance_twi0.h" 316 #include "instance/instance_twi1.h" 317 #include "instance/instance_pwm.h" 318 #include "instance/instance_usart0.h" 319 #include "instance/instance_usart1.h" 320 #include "instance/instance_usart2.h" 321 #include "instance/instance_usart3.h" 322 #include "instance/instance_uotghs.h" 323 #include "instance/instance_emac.h" 324 #include "instance/instance_can0.h" 325 #include "instance/instance_can1.h" 326 #include "instance/instance_trng.h" 327 #include "instance/instance_adc.h" 328 #include "instance/instance_dmac.h" 329 #include "instance/instance_dacc.h" 330 #include "instance/instance_smc.h" 331 #include "instance/instance_matrix.h" 332 #include "instance/instance_pmc.h" 333 #include "instance/instance_uart.h" 334 #include "instance/instance_chipid.h" 335 #include "instance/instance_efc0.h" 336 #include "instance/instance_efc1.h" 337 #include "instance/instance_pioa.h" 338 #include "instance/instance_piob.h" 339 #include "instance/instance_pioc.h" 340 #include "instance/instance_piod.h" 341 #include "instance/instance_rstc.h" 342 #include "instance/instance_supc.h" 343 #include "instance/instance_rtt.h" 344 #include "instance/instance_wdt.h" 345 #include "instance/instance_rtc.h" 346 #include "instance/instance_gpbr.h" 369 #define ID_USART0 (17) 370 #define ID_USART1 (18) 371 #define ID_USART2 (19) 372 #define ID_USART3 (20) 373 #define ID_HSMCI (21) 391 #define ID_UOTGHS (40) 397 #define ID_PERIPH_COUNT (45) 406 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 407 #define HSMCI (0x40000000U) 408 #define SSC (0x40004000U) 409 #define SPI0 (0x40008000U) 410 #define TC0 (0x40080000U) 411 #define TC1 (0x40084000U) 412 #define TC2 (0x40088000U) 413 #define TWI0 (0x4008C000U) 414 #define PDC_TWI0 (0x4008C100U) 415 #define TWI1 (0x40090000U) 416 #define PDC_TWI1 (0x40090100U) 417 #define PWM (0x40094000U) 418 #define PDC_PWM (0x40094100U) 419 #define USART0 (0x40098000U) 420 #define PDC_USART0 (0x40098100U) 421 #define USART1 (0x4009C000U) 422 #define PDC_USART1 (0x4009C100U) 423 #define USART2 (0x400A0000U) 424 #define PDC_USART2 (0x400A0100U) 425 #define USART3 (0x400A4000U) 426 #define PDC_USART3 (0x400A4100U) 427 #define UOTGHS (0x400AC000U) 428 #define EMAC (0x400B0000U) 429 #define CAN0 (0x400B4000U) 430 #define CAN1 (0x400B8000U) 431 #define TRNG (0x400BC000U) 432 #define ADC (0x400C0000U) 433 #define PDC_ADC (0x400C0100U) 434 #define DMAC (0x400C4000U) 435 #define DACC (0x400C8000U) 436 #define PDC_DACC (0x400C8100U) 437 #define SMC (0x400E0000U) 438 #define MATRIX (0x400E0400U) 439 #define PMC (0x400E0600U) 440 #define UART (0x400E0800U) 441 #define PDC_UART (0x400E0900U) 442 #define CHIPID (0x400E0940U) 443 #define EFC0 (0x400E0A00U) 444 #define EFC1 (0x400E0C00U) 445 #define PIOA (0x400E0E00U) 446 #define PIOB (0x400E1000U) 447 #define PIOC (0x400E1200U) 448 #define PIOD (0x400E1400U) 449 #define RSTC (0x400E1A00U) 450 #define SUPC (0x400E1A10U) 451 #define RTT (0x400E1A30U) 452 #define WDT (0x400E1A50U) 453 #define RTC (0x400E1A60U) 454 #define GPBR (0x400E1A90U) 456 #define HSMCI ((Hsmci *)0x40000000U) 457 #define SSC ((Ssc *)0x40004000U) 458 #define SPI0 ((Spi *)0x40008000U) 459 #define TC0 ((Tc *)0x40080000U) 460 #define TC1 ((Tc *)0x40084000U) 461 #define TC2 ((Tc *)0x40088000U) 462 #define TWI0 ((Twi *)0x4008C000U) 463 #define PDC_TWI0 ((Pdc *)0x4008C100U) 464 #define TWI1 ((Twi *)0x40090000U) 465 #define PDC_TWI1 ((Pdc *)0x40090100U) 466 #define PWM ((Pwm *)0x40094000U) 467 #define PDC_PWM ((Pdc *)0x40094100U) 468 #define USART0 ((Usart *)0x40098000U) 469 #define PDC_USART0 ((Pdc *)0x40098100U) 470 #define USART1 ((Usart *)0x4009C000U) 471 #define PDC_USART1 ((Pdc *)0x4009C100U) 472 #define USART2 ((Usart *)0x400A0000U) 473 #define PDC_USART2 ((Pdc *)0x400A0100U) 474 #define USART3 ((Usart *)0x400A4000U) 475 #define PDC_USART3 ((Pdc *)0x400A4100U) 476 #define UOTGHS ((Uotghs *)0x400AC000U) 477 #define EMAC ((Emac *)0x400B0000U) 478 #define CAN0 ((Can *)0x400B4000U) 479 #define CAN1 ((Can *)0x400B8000U) 480 #define TRNG ((Trng *)0x400BC000U) 481 #define ADC ((Adc *)0x400C0000U) 482 #define PDC_ADC ((Pdc *)0x400C0100U) 483 #define DMAC ((Dmac *)0x400C4000U) 484 #define DACC ((Dacc *)0x400C8000U) 485 #define PDC_DACC ((Pdc *)0x400C8100U) 486 #define SMC ((Smc *)0x400E0000U) 487 #define MATRIX ((Matrix *)0x400E0400U) 488 #define PMC ((Pmc *)0x400E0600U) 489 #define UART ((Uart *)0x400E0800U) 490 #define PDC_UART ((Pdc *)0x400E0900U) 491 #define CHIPID ((Chipid *)0x400E0940U) 492 #define EFC0 ((Efc *)0x400E0A00U) 493 #define EFC1 ((Efc *)0x400E0C00U) 494 #define PIOA ((Pio *)0x400E0E00U) 495 #define PIOB ((Pio *)0x400E1000U) 496 #define PIOC ((Pio *)0x400E1200U) 497 #define PIOD ((Pio *)0x400E1400U) 498 #define RSTC ((Rstc *)0x400E1A00U) 499 #define SUPC ((Supc *)0x400E1A10U) 500 #define RTT ((Rtt *)0x400E1A30U) 501 #define WDT ((Wdt *)0x400E1A50U) 502 #define RTC ((Rtc *)0x400E1A60U) 503 #define GPBR ((Gpbr *)0x400E1A90U) 513 #include "pio/pio_sam3x8e.h" 520 #define IFLASH0_SIZE (0x40000u) 521 #define IFLASH0_PAGE_SIZE (256u) 522 #define IFLASH0_LOCK_REGION_SIZE (16384u) 523 #define IFLASH0_NB_OF_PAGES (1024u) 524 #define IFLASH1_SIZE (0x40000u) 525 #define IFLASH1_PAGE_SIZE (256u) 526 #define IFLASH1_LOCK_REGION_SIZE (16384u) 527 #define IFLASH1_NB_OF_PAGES (1024u) 528 #define IRAM0_SIZE (0x10000u) 529 #define IRAM1_SIZE (0x8000u) 530 #define NFCRAM_SIZE (0x1000u) 531 #define IFLASH_SIZE (IFLASH0_SIZE+IFLASH1_SIZE) 532 #define IRAM_SIZE (IRAM0_SIZE+IRAM1_SIZE) 534 #define IFLASH0_ADDR (0x00080000u) 535 #if defined IFLASH0_SIZE 536 #define IFLASH1_ADDR (IFLASH0_ADDR+IFLASH0_SIZE) 538 #define IROM_ADDR (0x00100000u) 539 #define IRAM0_ADDR (0x20000000u) 540 #define IRAM1_ADDR (0x20080000u) 541 #define NFC_RAM_ADDR (0x20100000u) 542 #define UOTGHS_RAM_ADDR (0x20180000u) 543 #define EBI_CS0_ADDR (0x60000000u) 544 #define EBI_CS1_ADDR (0x61000000u) 545 #define EBI_CS2_ADDR (0x62000000u) 546 #define EBI_CS3_ADDR (0x63000000u) 547 #define EBI_CS4_ADDR (0x64000000u) 548 #define EBI_CS5_ADDR (0x65000000u) 549 #define EBI_CS6_ADDR (0x66000000u) 550 #define EBI_CS7_ADDR (0x67000000u) 557 #define CHIP_FREQ_SLCK_RC_MIN (20000UL) 558 #define CHIP_FREQ_SLCK_RC (32000UL) 559 #define CHIP_FREQ_SLCK_RC_MAX (44000UL) 560 #define CHIP_FREQ_MAINCK_RC_4MHZ (4000000UL) 561 #define CHIP_FREQ_MAINCK_RC_8MHZ (8000000UL) 562 #define CHIP_FREQ_MAINCK_RC_12MHZ (12000000UL) 563 #define CHIP_FREQ_CPU_MAX (84000000UL) 564 #define CHIP_FREQ_XTAL_32K (32768UL) 565 #define CHIP_FREQ_XTAL_12M (12000000UL) 568 #define CHIP_FLASH_WRITE_WAIT_STATE (6U) 571 #define CHIP_FREQ_FWS_0 (22500000UL) 572 #define CHIP_FREQ_FWS_1 (34000000UL) 573 #define CHIP_FREQ_FWS_2 (53000000UL) 574 #define CHIP_FREQ_FWS_3 (78000000UL)
Definition: sam3x8e.h:113
Definition: sam3x8e.h:108
Definition: sam3x8e.h:106
Definition: sam3x8e.h:111
void SysTick_Handler(void)
SysTick_Handler.
Definition: main.c:78
void BusFault_Handler(void)
Definition: FreeRTOS_ARM.c:104
Definition: sam3x8e.h:114
Definition: sam3n00a.h:102
Definition: sam3x8e.h:100
IRQn
Definition: ARMCM0.h:35
Definition: sam3x8e.h:107
Definition: sam3x8e.h:115
CMSIS Cortex-M3 Core Peripheral Access Layer Header File.
CMSIS Cortex-M# Device Peripheral Access Layer Header File for SAM3 devices.
void Reset_Handler(void)
This is the code that gets called on processor reset. To initialize the device, and call the main() r...
Definition: startup_sam3n.c:172
volatile uint32_t RwReg
Definition: sam3x8e.h:54
Definition: sam3x8e.h:110
Definition: sam3x8e.h:102
void HardFault_Handler(void)
Definition: FreeRTOS_ARM.c:99
Definition: sam3x8e.h:101
void UsageFault_Handler(void)
Definition: FreeRTOS_ARM.c:109
volatile const uint32_t RoReg
Definition: sam3x8e.h:49
Definition: sam3x8e.h:104
Definition: sam3x8e.h:103
Definition: sam3x8e.h:105
Definition: sam3x8e.h:109
Definition: sam3x8e.h:116
volatile uint32_t WoReg
Definition: sam3x8e.h:53
Definition: sam3x8e.h:117
Definition: sam3x8e.h:112
Definition: sam3x8e.h:119