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;
117 void* pfnReset_Handler;
118 void* pfnNMI_Handler;
119 void* pfnHardFault_Handler;
120 void* pfnMemManage_Handler;
121 void* pfnBusFault_Handler;
122 void* pfnUsageFault_Handler;
123 void* pfnReserved1_Handler;
124 void* pfnReserved2_Handler;
125 void* pfnReserved3_Handler;
126 void* pfnReserved4_Handler;
127 void* pfnSVC_Handler;
128 void* pfnDebugMon_Handler;
129 void* pfnReserved5_Handler;
130 void* pfnPendSV_Handler;
131 void* pfnSysTick_Handler;
134 void* pfnSUPC_Handler;
135 void* pfnRSTC_Handler;
136 void* pfnRTC_Handler;
137 void* pfnRTT_Handler;
138 void* pfnWDT_Handler;
139 void* pfnPMC_Handler;
140 void* pfnEFC0_Handler;
141 void* pfnEFC1_Handler;
142 void* pfnUART_Handler;
143 void* pfnSMC_Handler;
144 void* pfnPIOA_Handler;
145 void* pfnPIOB_Handler;
146 void* pfnPIOC_Handler;
147 void* pfnUSART0_Handler;
148 void* pfnUSART1_Handler;
149 void* pfnUSART2_Handler;
150 void* pfnUSART3_Handler;
151 void* pfnHSMCI_Handler;
152 void* pfnTWI0_Handler;
153 void* pfnTWI1_Handler;
154 void* pfnSPI_Handler;
155 void* pfnSSC_Handler;
156 void* pfnTC0_Handler;
157 void* pfnTC1_Handler;
158 void* pfnTC2_Handler;
159 void* pfnPWM_Handler;
160 void* pfnADC12B_Handler;
161 void* pfnADC_Handler;
162 void* pfnDMAC_Handler;
163 void* pfnUDPHS_Handler;
168 void NMI_Handler (
void );
170 void MemManage_Handler (
void );
173 void SVC_Handler (
void );
174 void DebugMon_Handler (
void );
175 void PendSV_Handler (
void );
179 void ADC_Handler (
void );
180 void ADC12B_Handler (
void );
181 void DMAC_Handler (
void );
182 void EFC0_Handler (
void );
183 void EFC1_Handler (
void );
184 void HSMCI_Handler (
void );
185 void PIOA_Handler (
void );
186 void PIOB_Handler (
void );
187 void PIOC_Handler (
void );
188 void PMC_Handler (
void );
189 void PWM_Handler (
void );
190 void RSTC_Handler (
void );
191 void RTC_Handler (
void );
192 void RTT_Handler (
void );
193 void SMC_Handler (
void );
194 void SPI_Handler (
void );
195 void SSC_Handler (
void );
196 void SUPC_Handler (
void );
197 void TC0_Handler (
void );
198 void TC1_Handler (
void );
199 void TC2_Handler (
void );
200 void TWI0_Handler (
void );
201 void TWI1_Handler (
void );
202 void UART_Handler (
void );
203 void UDPHS_Handler (
void );
204 void USART0_Handler (
void );
205 void USART1_Handler (
void );
206 void USART2_Handler (
void );
207 void USART3_Handler (
void );
208 void WDT_Handler (
void );
214 #define __CM3_REV 0x0200 215 #define __MPU_PRESENT 1 216 #define __NVIC_PRIO_BITS 4 217 #define __Vendor_SysTickConfig 0 224 #if !defined DONT_USE_CMSIS_INIT 236 #include "component/component_adc.h" 237 #include "component/component_adc12b.h" 238 #include "component/component_chipid.h" 239 #include "component/component_dmac.h" 240 #include "component/component_efc.h" 241 #include "component/component_gpbr.h" 242 #include "component/component_hsmci.h" 243 #include "component/component_matrix.h" 244 #include "component/component_pdc.h" 245 #include "component/component_pio.h" 246 #include "component/component_pmc.h" 247 #include "component/component_pwm.h" 248 #include "component/component_rstc.h" 249 #include "component/component_rtc.h" 250 #include "component/component_rtt.h" 251 #include "component/component_smc.h" 252 #include "component/component_spi.h" 253 #include "component/component_ssc.h" 254 #include "component/component_supc.h" 255 #include "component/component_tc.h" 256 #include "component/component_twi.h" 257 #include "component/component_uart.h" 258 #include "component/component_udphs.h" 259 #include "component/component_usart.h" 260 #include "component/component_wdt.h" 269 #include "instance/instance_hsmci.h" 270 #include "instance/instance_ssc.h" 271 #include "instance/instance_spi.h" 272 #include "instance/instance_tc0.h" 273 #include "instance/instance_twi0.h" 274 #include "instance/instance_twi1.h" 275 #include "instance/instance_pwm.h" 276 #include "instance/instance_usart0.h" 277 #include "instance/instance_usart1.h" 278 #include "instance/instance_usart2.h" 279 #include "instance/instance_usart3.h" 280 #include "instance/instance_udphs.h" 281 #include "instance/instance_adc12b.h" 282 #include "instance/instance_adc.h" 283 #include "instance/instance_dmac.h" 284 #include "instance/instance_smc.h" 285 #include "instance/instance_matrix.h" 286 #include "instance/instance_pmc.h" 287 #include "instance/instance_uart.h" 288 #include "instance/instance_chipid.h" 289 #include "instance/instance_efc0.h" 290 #include "instance/instance_efc1.h" 291 #include "instance/instance_pioa.h" 292 #include "instance/instance_piob.h" 293 #include "instance/instance_pioc.h" 294 #include "instance/instance_rstc.h" 295 #include "instance/instance_supc.h" 296 #include "instance/instance_rtt.h" 297 #include "instance/instance_wdt.h" 298 #include "instance/instance_rtc.h" 299 #include "instance/instance_gpbr.h" 321 #define ID_USART0 (13) 322 #define ID_USART1 (14) 323 #define ID_USART2 (15) 324 #define ID_USART3 (16) 325 #define ID_HSMCI (17) 334 #define ID_ADC12B (26) 337 #define ID_UDPHS (29) 339 #define ID_PERIPH_COUNT (30) 348 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 349 #define HSMCI (0x40000000U) 350 #define SSC (0x40004000U) 351 #define SPI (0x40008000U) 352 #define TC0 (0x40080000U) 353 #define TWI0 (0x40084000U) 354 #define PDC_TWI0 (0x40084100U) 355 #define TWI1 (0x40088000U) 356 #define PDC_TWI1 (0x40088100U) 357 #define PWM (0x4008C000U) 358 #define PDC_PWM (0x4008C100U) 359 #define USART0 (0x40090000U) 360 #define PDC_USART0 (0x40090100U) 361 #define USART1 (0x40094000U) 362 #define PDC_USART1 (0x40094100U) 363 #define USART2 (0x40098000U) 364 #define PDC_USART2 (0x40098100U) 365 #define USART3 (0x4009C000U) 366 #define PDC_USART3 (0x4009C100U) 367 #define UDPHS (0x400A4000U) 368 #define ADC12B (0x400A8000U) 369 #define PDC_ADC12B (0x400A8100U) 370 #define ADC (0x400AC000U) 371 #define PDC_ADC (0x400AC100U) 372 #define DMAC (0x400B0000U) 373 #define SMC (0x400E0000U) 374 #define MATRIX (0x400E0200U) 375 #define PMC (0x400E0400U) 376 #define UART (0x400E0600U) 377 #define PDC_UART (0x400E0700U) 378 #define CHIPID (0x400E0740U) 379 #define EFC0 (0x400E0800U) 380 #define EFC1 (0x400E0A00U) 381 #define PIOA (0x400E0C00U) 382 #define PIOB (0x400E0E00U) 383 #define PIOC (0x400E1000U) 384 #define RSTC (0x400E1200U) 385 #define SUPC (0x400E1210U) 386 #define RTT (0x400E1230U) 387 #define WDT (0x400E1250U) 388 #define RTC (0x400E1260U) 389 #define GPBR (0x400E1290U) 391 #define HSMCI ((Hsmci *)0x40000000U) 392 #define SSC ((Ssc *)0x40004000U) 393 #define SPI ((Spi *)0x40008000U) 394 #define TC0 ((Tc *)0x40080000U) 395 #define TWI0 ((Twi *)0x40084000U) 396 #define PDC_TWI0 ((Pdc *)0x40084100U) 397 #define TWI1 ((Twi *)0x40088000U) 398 #define PDC_TWI1 ((Pdc *)0x40088100U) 399 #define PWM ((Pwm *)0x4008C000U) 400 #define PDC_PWM ((Pdc *)0x4008C100U) 401 #define USART0 ((Usart *)0x40090000U) 402 #define PDC_USART0 ((Pdc *)0x40090100U) 403 #define USART1 ((Usart *)0x40094000U) 404 #define PDC_USART1 ((Pdc *)0x40094100U) 405 #define USART2 ((Usart *)0x40098000U) 406 #define PDC_USART2 ((Pdc *)0x40098100U) 407 #define USART3 ((Usart *)0x4009C000U) 408 #define PDC_USART3 ((Pdc *)0x4009C100U) 409 #define UDPHS ((Udphs *)0x400A4000U) 410 #define ADC12B ((Adc12b *)0x400A8000U) 411 #define PDC_ADC12B ((Pdc *)0x400A8100U) 412 #define ADC ((Adc *)0x400AC000U) 413 #define PDC_ADC ((Pdc *)0x400AC100U) 414 #define DMAC ((Dmac *)0x400B0000U) 415 #define SMC ((Smc *)0x400E0000U) 416 #define MATRIX ((Matrix *)0x400E0200U) 417 #define PMC ((Pmc *)0x400E0400U) 418 #define UART ((Uart *)0x400E0600U) 419 #define PDC_UART ((Pdc *)0x400E0700U) 420 #define CHIPID ((Chipid *)0x400E0740U) 421 #define EFC0 ((Efc *)0x400E0800U) 422 #define EFC1 ((Efc *)0x400E0A00U) 423 #define PIOA ((Pio *)0x400E0C00U) 424 #define PIOB ((Pio *)0x400E0E00U) 425 #define PIOC ((Pio *)0x400E1000U) 426 #define RSTC ((Rstc *)0x400E1200U) 427 #define SUPC ((Supc *)0x400E1210U) 428 #define RTT ((Rtt *)0x400E1230U) 429 #define WDT ((Wdt *)0x400E1250U) 430 #define RTC ((Rtc *)0x400E1260U) 431 #define GPBR ((Gpbr *)0x400E1290U) 441 #include "pio/pio_sam3u1e.h" 448 #define IFLASH0_SIZE (0x10000u) 449 #define IFLASH0_PAGE_SIZE (256u) 450 #define IFLASH0_LOCK_REGION_SIZE (8192u) 451 #define IFLASH0_NB_OF_PAGES (256u) 452 #define IRAM0_SIZE (0x2000u) 453 #define IRAM1_SIZE (0x2000u) 454 #define NFCRAM_SIZE (0x1000u) 455 #define IFLASH_SIZE (IFLASH0_SIZE) 456 #define IRAM_SIZE (IRAM0_SIZE+IRAM1_SIZE) 458 #define IFLASH0_ADDR (0x00080000u) 459 #define IROM_ADDR (0x00180000u) 460 #define IRAM0_ADDR (0x20000000u) 461 #define IRAM1_ADDR (0x20080000u) 462 #define NFC_RAM_ADDR (0x20100000u) 463 #define UDPHS_RAM_ADDR (0x20180000u) 470 #define CHIP_FREQ_SLCK_RC_MIN (20000UL) 471 #define CHIP_FREQ_SLCK_RC (32000UL) 472 #define CHIP_FREQ_SLCK_RC_MAX (44000UL) 473 #define CHIP_FREQ_MAINCK_RC_4MHZ (4000000UL) 474 #define CHIP_FREQ_MAINCK_RC_8MHZ (8000000UL) 475 #define CHIP_FREQ_MAINCK_RC_12MHZ (12000000UL) 476 #define CHIP_FREQ_CPU_MAX (96000000UL) 477 #define CHIP_FREQ_XTAL_32K (32768UL) 478 #define CHIP_FREQ_XTAL_12M (12000000UL) 481 #define CHIP_FLASH_WRITE_WAIT_STATE (6U) 484 #define CHIP_FREQ_FWS_0 (24000000UL) 485 #define CHIP_FREQ_FWS_1 (40000000UL) 486 #define CHIP_FREQ_FWS_2 (72000000UL) 487 #define CHIP_FREQ_FWS_3 (84000000UL)
Definition: sam3u1e.h:103
Definition: sam3n00a.h:102
Definition: sam3u1e.h:106
void BusFault_Handler(void)
Definition: FreeRTOS_ARM.c:104
IRQn
Definition: ARMCM0.h:35
volatile uint32_t WoReg
Definition: sam3u1e.h:53
void UsageFault_Handler(void)
Definition: FreeRTOS_ARM.c:109
CMSIS Cortex-M3 Core Peripheral Access Layer Header File.
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
void SysTick_Handler(void)
SysTick_Handler.
Definition: main.c:78
Definition: sam3u1e.h:104
Definition: sam3u1e.h:101
Definition: sam3u1e.h:100
void HardFault_Handler(void)
Definition: FreeRTOS_ARM.c:99
Definition: sam3u1e.h:102
CMSIS Cortex-M# Device Peripheral Access Layer Header File for SAM3 devices.
Definition: sam3u1e.h:105
volatile const uint32_t RoReg
Definition: sam3u1e.h:49
volatile uint32_t RwReg
Definition: sam3u1e.h:54
Definition: sam3u1e.h:108