Christina Quast | f07ec9f | 2015-03-13 12:55:41 +0100 | [diff] [blame] | 1 | #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 Quast | f07ec9f | 2015-03-13 12:55:41 +0100 | [diff] [blame] | 45 | #include "pio.h" |
| 46 | #include "pio_it.h" |
| 47 | #include "pio_capture.h" |
| 48 | #include "pmc.h" |
Christina Quast | f07ec9f | 2015-03-13 12:55:41 +0100 | [diff] [blame] | 49 | #include "tc.h" |
Christina Quast | f07ec9f | 2015-03-13 12:55:41 +0100 | [diff] [blame] | 50 | #include "usart.h" |
| 51 | //#include "USBD_Config.h" |
| 52 | |
| 53 | #include "trace.h" |
| 54 | #include "wdt.h" |
| 55 | |
| 56 | #endif /* _LIB_SAM3S_ */ |