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;
113 void* pfnReset_Handler;
114 void* pfnNMI_Handler;
115 void* pfnHardFault_Handler;
116 void* pfnMemManage_Handler;
117 void* pfnBusFault_Handler;
118 void* pfnUsageFault_Handler;
119 void* pfnReserved1_Handler;
120 void* pfnReserved2_Handler;
121 void* pfnReserved3_Handler;
122 void* pfnReserved4_Handler;
123 void* pfnSVC_Handler;
124 void* pfnDebugMon_Handler;
125 void* pfnReserved5_Handler;
126 void* pfnPendSV_Handler;
127 void* pfnSysTick_Handler;
130 void* pfnSUPC_Handler;
131 void* pfnRSTC_Handler;
132 void* pfnRTC_Handler;
133 void* pfnRTT_Handler;
134 void* pfnWDT_Handler;
135 void* pfnPMC_Handler;
136 void* pfnEFC_Handler;
138 void* pfnUART0_Handler;
139 void* pfnUART1_Handler;
141 void* pfnPIOA_Handler;
142 void* pfnPIOB_Handler;
143 void* pfnPIOC_Handler;
144 void* pfnUSART0_Handler;
145 void* pfnUSART1_Handler;
149 void* pfnTWI0_Handler;
150 void* pfnTWI1_Handler;
151 void* pfnSPI_Handler;
153 void* pfnTC0_Handler;
154 void* pfnTC1_Handler;
155 void* pfnTC2_Handler;
156 void* pfnTC3_Handler;
157 void* pfnTC4_Handler;
158 void* pfnTC5_Handler;
159 void* pfnADC_Handler;
160 void* pfnDACC_Handler;
161 void* pfnPWM_Handler;
166 void NMI_Handler (
void );
168 void MemManage_Handler (
void );
171 void SVC_Handler (
void );
172 void DebugMon_Handler (
void );
173 void PendSV_Handler (
void );
177 void ADC_Handler (
void );
178 void DACC_Handler (
void );
179 void EFC_Handler (
void );
180 void PIOA_Handler (
void );
181 void PIOB_Handler (
void );
182 void PIOC_Handler (
void );
183 void PMC_Handler (
void );
184 void PWM_Handler (
void );
185 void RSTC_Handler (
void );
186 void RTC_Handler (
void );
187 void RTT_Handler (
void );
188 void SPI_Handler (
void );
189 void SUPC_Handler (
void );
190 void TC0_Handler (
void );
191 void TC1_Handler (
void );
192 void TC2_Handler (
void );
193 void TC3_Handler (
void );
194 void TC4_Handler (
void );
195 void TC5_Handler (
void );
196 void TWI0_Handler (
void );
197 void TWI1_Handler (
void );
198 void UART0_Handler (
void );
199 void UART1_Handler (
void );
200 void USART0_Handler (
void );
201 void USART1_Handler (
void );
202 void WDT_Handler (
void );
208 #define __CM3_REV 0x0200 209 #define __MPU_PRESENT 0 210 #define __NVIC_PRIO_BITS 4 211 #define __Vendor_SysTickConfig 0 218 #if !defined DONT_USE_CMSIS_INIT 219 #include "system_sam3n.h" 230 #include "component/component_adc.h" 231 #include "component/component_chipid.h" 232 #include "component/component_dacc.h" 233 #include "component/component_efc.h" 234 #include "component/component_gpbr.h" 235 #include "component/component_matrix.h" 236 #include "component/component_pdc.h" 237 #include "component/component_pio.h" 238 #include "component/component_pmc.h" 239 #include "component/component_pwm.h" 240 #include "component/component_rstc.h" 241 #include "component/component_rtc.h" 242 #include "component/component_rtt.h" 243 #include "component/component_spi.h" 244 #include "component/component_supc.h" 245 #include "component/component_tc.h" 246 #include "component/component_twi.h" 247 #include "component/component_uart.h" 248 #include "component/component_usart.h" 249 #include "component/component_wdt.h" 258 #include "instance/instance_spi.h" 259 #include "instance/instance_tc0.h" 260 #include "instance/instance_tc1.h" 261 #include "instance/instance_twi0.h" 262 #include "instance/instance_twi1.h" 263 #include "instance/instance_pwm.h" 264 #include "instance/instance_usart0.h" 265 #include "instance/instance_usart1.h" 266 #include "instance/instance_adc.h" 267 #include "instance/instance_dacc.h" 268 #include "instance/instance_matrix.h" 269 #include "instance/instance_pmc.h" 270 #include "instance/instance_uart0.h" 271 #include "instance/instance_chipid.h" 272 #include "instance/instance_uart1.h" 273 #include "instance/instance_efc.h" 274 #include "instance/instance_pioa.h" 275 #include "instance/instance_piob.h" 276 #include "instance/instance_pioc.h" 277 #include "instance/instance_rstc.h" 278 #include "instance/instance_supc.h" 279 #include "instance/instance_rtt.h" 280 #include "instance/instance_wdt.h" 281 #include "instance/instance_rtc.h" 282 #include "instance/instance_gpbr.h" 298 #define ID_UART0 ( 8) 299 #define ID_UART1 ( 9) 303 #define ID_USART0 (14) 304 #define ID_USART1 (15) 318 #define ID_PERIPH_COUNT (32) 327 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 328 #define SPI (0x40008000U) 329 #define PDC_SPI (0x40008100U) 330 #define TC0 (0x40010000U) 331 #define TC1 (0x40014000U) 332 #define TWI0 (0x40018000U) 333 #define PDC_TWI0 (0x40018100U) 334 #define TWI1 (0x4001C000U) 335 #define PWM (0x40020000U) 336 #define USART0 (0x40024000U) 337 #define PDC_USART0 (0x40024100U) 338 #define USART1 (0x40028000U) 339 #define ADC (0x40038000U) 340 #define PDC_ADC (0x40038100U) 341 #define DACC (0x4003C000U) 342 #define PDC_DACC (0x4003C100U) 343 #define MATRIX (0x400E0200U) 344 #define PMC (0x400E0400U) 345 #define UART0 (0x400E0600U) 346 #define PDC_UART0 (0x400E0700U) 347 #define CHIPID (0x400E0740U) 348 #define UART1 (0x400E0800U) 349 #define EFC (0x400E0A00U) 350 #define PIOA (0x400E0E00U) 351 #define PIOB (0x400E1000U) 352 #define PIOC (0x400E1200U) 353 #define RSTC (0x400E1400U) 354 #define SUPC (0x400E1410U) 355 #define RTT (0x400E1430U) 356 #define WDT (0x400E1450U) 357 #define RTC (0x400E1460U) 358 #define GPBR (0x400E1490U) 360 #define SPI ((Spi *)0x40008000U) 361 #define PDC_SPI ((Pdc *)0x40008100U) 362 #define TC0 ((Tc *)0x40010000U) 363 #define TC1 ((Tc *)0x40014000U) 364 #define TWI0 ((Twi *)0x40018000U) 365 #define PDC_TWI0 ((Pdc *)0x40018100U) 366 #define TWI1 ((Twi *)0x4001C000U) 367 #define PWM ((Pwm *)0x40020000U) 368 #define USART0 ((Usart *)0x40024000U) 369 #define PDC_USART0 ((Pdc *)0x40024100U) 370 #define USART1 ((Usart *)0x40028000U) 371 #define ADC ((Adc *)0x40038000U) 372 #define PDC_ADC ((Pdc *)0x40038100U) 373 #define DACC ((Dacc *)0x4003C000U) 374 #define PDC_DACC ((Pdc *)0x4003C100U) 375 #define MATRIX ((Matrix *)0x400E0200U) 376 #define PMC ((Pmc *)0x400E0400U) 377 #define UART0 ((Uart *)0x400E0600U) 378 #define PDC_UART0 ((Pdc *)0x400E0700U) 379 #define CHIPID ((Chipid *)0x400E0740U) 380 #define UART1 ((Uart *)0x400E0800U) 381 #define EFC ((Efc *)0x400E0A00U) 382 #define PIOA ((Pio *)0x400E0E00U) 383 #define PIOB ((Pio *)0x400E1000U) 384 #define PIOC ((Pio *)0x400E1200U) 385 #define RSTC ((Rstc *)0x400E1400U) 386 #define SUPC ((Supc *)0x400E1410U) 387 #define RTT ((Rtt *)0x400E1430U) 388 #define WDT ((Wdt *)0x400E1450U) 389 #define RTC ((Rtc *)0x400E1460U) 390 #define GPBR ((Gpbr *)0x400E1490U) 400 #include "pio/pio_sam3n1c.h" 407 #define IFLASH_SIZE (0x10000u) 408 #define IFLASH_PAGE_SIZE (256u) 409 #define IFLASH_LOCK_REGION_SIZE (16384u) 410 #define IFLASH_NB_OF_PAGES (256u) 411 #define IFLASH_NB_OF_LOCK_BITS (4u) 412 #define IRAM_SIZE (0x2000u) 414 #define IFLASH_ADDR (0x00400000u) 415 #define IROM_ADDR (0x00800000u) 416 #define IRAM_ADDR (0x20000000u) 423 #define CHIP_FREQ_SLCK_RC_MIN (20000UL) 424 #define CHIP_FREQ_SLCK_RC (32000UL) 425 #define CHIP_FREQ_SLCK_RC_MAX (44000UL) 426 #define CHIP_FREQ_MAINCK_RC_4MHZ (4000000UL) 427 #define CHIP_FREQ_MAINCK_RC_8MHZ (8000000UL) 428 #define CHIP_FREQ_MAINCK_RC_12MHZ (12000000UL) 429 #define CHIP_FREQ_CPU_MAX (48000000UL) 430 #define CHIP_FREQ_XTAL_32K (32768UL) 431 #define CHIP_FREQ_XTAL_12M (12000000UL) 434 #define CHIP_FLASH_WRITE_WAIT_STATE (6U) 437 #define CHIP_FREQ_FWS_0 (21000000UL) 438 #define CHIP_FREQ_FWS_1 (32000000UL) 439 #define CHIP_FREQ_FWS_2 (48000000UL)
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 WoReg
Definition: sam3n1c.h:53
Definition: sam3n1c.h:101
Definition: sam3n00a.h:102
IRQn
Definition: ARMCM0.h:35
void HardFault_Handler(void)
Definition: FreeRTOS_ARM.c:99
CMSIS Cortex-M3 Core Peripheral Access Layer Header File.
void UsageFault_Handler(void)
Definition: FreeRTOS_ARM.c:109
Definition: sam3n1c.h:100
volatile const uint32_t RoReg
Definition: sam3n1c.h:49
void SysTick_Handler(void)
SysTick_Handler.
Definition: main.c:78
void BusFault_Handler(void)
Definition: FreeRTOS_ARM.c:104
Definition: sam3n1c.h:102
volatile uint32_t RwReg
Definition: sam3n1c.h:54
Definition: sam3n1c.h:104