blob: fd74e54a6a702711310a1daf389e21e4cd2c800c [file] [log] [blame]
Christina Quast2d18f172014-11-22 19:48:48 +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#endif