blob: 3c25ce3b16654f84694274c9f2305b9a1d420d7c [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 */
Christina Quastf07ec9f2015-03-13 12:55:41 +010045#include "pio.h"
46#include "pio_it.h"
47#include "pio_capture.h"
48#include "pmc.h"
Christina Quastf07ec9f2015-03-13 12:55:41 +010049#include "tc.h"
Christina Quastf07ec9f2015-03-13 12:55:41 +010050#include "usart.h"
51//#include "USBD_Config.h"
52
53#include "trace.h"
54#include "wdt.h"
Harald Welte8ee15db2016-03-20 16:00:39 +010055#include "unique_id.h"
Christina Quastf07ec9f2015-03-13 12:55:41 +010056
57#endif /* _LIB_SAM3S_ */