1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-11 22:24:13 +01:00
Arduino/hardware/sam/system/libsam/chip.h

48 lines
952 B
C
Raw Normal View History

2011-09-06 21:05:41 +02:00
/*
%atmel_license%
*/
#ifndef _LIB_SAM3S_
#define _LIB_SAM3S_
/*
2011-09-06 21:05:41 +02:00
* Core and peripherals registers definitions
*/
2011-09-06 21:05:41 +02:00
#include "include/sam3.h"
/** Define MAX number of Interrupts: (IRQn_Type+1) + 8 for CM3 core */
#define EXTERNAL_NUM_INTERRUPTS (UDP_IRQn+1+8)
/* Define attribute */
#if defined ( __GNUC__ ) /* GCC CS3 */
#define WEAK __attribute__ ((weak))
2011-09-06 21:05:41 +02:00
#elif defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
#define WEAK __weak
#endif
/* Define NO_INIT attribute */
#if defined ( __GNUC__ )
#define NO_INIT
2011-09-06 21:05:41 +02:00
#elif defined ( __ICCARM__ )
#define NO_INIT __no_init
#endif
/*
* Peripherals
*/
#include "include/adc.h"
#include "include/pio.h"
#include "include/pmc.h"
#include "include/pwmc.h"
#include "include/rtc.h"
#include "include/rtt.h"
#include "include/spi.h"
#include "include/tc.h"
#include "include/twi.h"
#include "include/usart.h"
#include "include/wdt.h"
2011-07-11 01:51:24 +02:00
#include "include/timetick.h"
#endif /* _LIB_SAM3S_ */