blob: a22c84e19cd87e84e0c515de47c3ad9d413d848b [file] [log] [blame]
Christina Quastf07ec9f2015-03-13 12:55:41 +01001#ifndef _LIB_SAM3S_
2#define _LIB_SAM3S_
3
4/*
5 * Peripherals registers definitions
6 */
7#if defined sam3s4
8#elif defined sam3s2
9#elif defined sam3s1
10#else
11 #warning Library does not support the specified chip, specifying sam3s4.
12 #define sam3s4
13#endif
14#include "SAM3S.h"
15
16
17/* Define attribute */
18#if defined ( __CC_ARM ) /* Keil µVision 4 */
19 #define WEAK __attribute__ ((weak))
20#elif defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
21 #define WEAK __weak
22#elif defined ( __GNUC__ ) /* GCC CS3 2009q3-68 */
23 #define WEAK __attribute__ ((weak))
24#endif
25
26/* Define NO_INIT attribute */
27#if defined ( __CC_ARM )
28 #define NO_INIT
29#elif defined ( __ICCARM__ )
30 #define NO_INIT __no_init
31#elif defined ( __GNUC__ )
32 #define NO_INIT
33#endif
34
35
36/*
37 * Core
38 */
39
40#include "exceptions.h"
41
42/*
43 * Peripherals
44 */
45#include "acc.h"
46#include "adc.h"
47#include "async.h"
48#include "crccu.h"
49#include "dacc.h"
50#include "efc.h"
51#include "flashd.h"
52#include "hsmci.h"
53#include "pio.h"
54#include "pio_it.h"
55#include "pio_capture.h"
56#include "pmc.h"
57#include "pwmc.h"
58#include "rtc.h"
59#include "rtt.h"
60#include "spi.h"
61#include "spi_pdc.h"
62#include "ssc.h"
63#include "tc.h"
64#include "twi.h"
65#include "twid.h"
66#include "usart.h"
67//#include "USBD_Config.h"
68
69#include "trace.h"
70#include "wdt.h"
71
72#endif /* _LIB_SAM3S_ */