#ifndef _LIB_CHIP_sama5d4_ | |
#define _LIB_CHIP_sama5d4_ | |
/* | |
* Peripherals registers definitions | |
*/ | |
#if defined sama5d4x | |
#include "include/sama5d4.h" | |
#else | |
#warning Library does not support the specified chip, specifying sama5d4x | |
#define sama5d4x | |
#include "include/sama5d4.h" | |
#endif | |
/* 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 and compiler specific symbols */ | |
#if defined ( __CC_ARM ) | |
#define NO_INIT | |
#define __ASM __asm /*!< asm keyword for ARM Compiler */ | |
#define __INLINE __inline /*!< inline keyword for ARM Compiler */ | |
#elif defined ( __ICCARM__ ) | |
#define NO_INIT __no_init | |
#define __ASM __asm /*!< asm keyword for IAR Compiler */ | |
#define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */ | |
#elif defined ( __GNUC__ ) | |
#define __ASM asm /*!< asm keyword for GNU Compiler */ | |
#define __INLINE inline /*!< inline keyword for GNU Compiler */ | |
#define NO_INIT | |
#endif | |
#define CP15_PRESENT | |
/* | |
* Peripherals | |
*/ | |
#include "include/adc.h" | |
#include "include/async.h" | |
#include "include/mmu.h" | |
#include "cp15/cp15.h" | |
#include "cp15/cp15_pmu.h" | |
#include "tz/mon_macros.h" | |
#include "tz/mon.h" | |
#include "include/l2cc.h" | |
#include "include/aic.h" | |
#include "include/pio.h" | |
#include "include/pio_it.h" | |
#include "include/pmc.h" | |
#include "include/pwmc.h" | |
#include "include/usart.h" | |
#include "include/xdmac.h" | |
#include "include/spi.h" | |
#include "include/pit.h" | |
#include "include/wdt.h" | |
#include "include/tc.h" | |
#include "include/smcNfc.h" | |
#include "include/twi.h" | |
#include "include/trace.h" | |
#include "include/hsmci.h" | |
#include "include/trng.h" | |
#include "include/tdes.h" | |
#include "include/aes.h" | |
#include "include/aesb.h" | |
#include "include/sha.h" | |
#include "include/icm.h" | |
#include "include/gmac.h" | |
#include "include/catb.h" | |
#include "include/udphs.h" | |
#include "include/video.h" | |
#include "include/isi.h" | |
#include "include/ssc.h" | |
#include "include/rtc.h" | |
#include "include/rstc.h" | |
#endif /* _LIB_CHIP_sama5d4_ */ |