From f07ec9fa4b427be713b8affc866ea3d12e180d4f Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Fri, 13 Mar 2015 12:55:41 +0100 Subject: [PATCH] Header file with includes --- .../libchip_sam3s/chip.h | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 sam3s_example/atmel_softpack_libraries/libchip_sam3s/chip.h diff --git a/sam3s_example/atmel_softpack_libraries/libchip_sam3s/chip.h b/sam3s_example/atmel_softpack_libraries/libchip_sam3s/chip.h new file mode 100644 index 00000000..a22c84e1 --- /dev/null +++ b/sam3s_example/atmel_softpack_libraries/libchip_sam3s/chip.h @@ -0,0 +1,72 @@ +#ifndef _LIB_SAM3S_ +#define _LIB_SAM3S_ + +/* + * Peripherals registers definitions + */ +#if defined sam3s4 +#elif defined sam3s2 +#elif defined sam3s1 +#else + #warning Library does not support the specified chip, specifying sam3s4. + #define sam3s4 +#endif +#include "SAM3S.h" + + +/* Define attribute */ +#if defined ( __CC_ARM ) /* Keil µVision 4 */ + #define WEAK __attribute__ ((weak)) +#elif defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */ + #define WEAK __weak +#elif defined ( __GNUC__ ) /* GCC CS3 2009q3-68 */ + #define WEAK __attribute__ ((weak)) +#endif + +/* Define NO_INIT attribute */ +#if defined ( __CC_ARM ) + #define NO_INIT +#elif defined ( __ICCARM__ ) + #define NO_INIT __no_init +#elif defined ( __GNUC__ ) + #define NO_INIT +#endif + + +/* + * Core + */ + +#include "exceptions.h" + +/* + * Peripherals + */ +#include "acc.h" +#include "adc.h" +#include "async.h" +#include "crccu.h" +#include "dacc.h" +#include "efc.h" +#include "flashd.h" +#include "hsmci.h" +#include "pio.h" +#include "pio_it.h" +#include "pio_capture.h" +#include "pmc.h" +#include "pwmc.h" +#include "rtc.h" +#include "rtt.h" +#include "spi.h" +#include "spi_pdc.h" +#include "ssc.h" +#include "tc.h" +#include "twi.h" +#include "twid.h" +#include "usart.h" +//#include "USBD_Config.h" + +#include "trace.h" +#include "wdt.h" + +#endif /* _LIB_SAM3S_ */