#ifndef _LIB_CHIP_AMT630HV160_ #define _LIB_CHIP_AMT630HV160_ /* * Peripherals registers definitions */ #if defined AMT630HV160 #include "include/amt630hv160.h" #else #warning Library does not support the specified chip, specifying AMT630HV160 #define AMT630HV160 #include "include/amt630hv160.h" #endif /* Define attribute */ #if defined ( __CC_ARM ) /* Keil 礦ision 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 struct device { const char *init_name; }; #include /* * Peripherals */ #include "errno.h" #include "mmu.h" #include "cp15/cp15.h" #include "trace.h" #include "sysctl.h" #include "gic.h" #include "timer.h" #include "uart.h" #include "clock.h" #include "pinctrl.h" #include "gpio.h" #include "i2c.h" #include "i2c-gpio.h" #include "i2c-dw.h" #include "spi.h" #include "wdt.h" #include "rtc.h" #include "dma.h" #include "lcd.h" #include "pwm.h" #include "itu.h" #include "pxp.h" #include "adc.h" #include "sdmmc.h" #include "mmcsd_core.h" #include "vdec.h" #include "blend2d.h" #include "remote.h" #include "video_buf.h" #include "sema.h" #include "mailbox.h" #include "rdc.h" #include "i2s.h" #include "eth.h" #include "qoi_dec.h" #include "adc.h" #include "mailbox_message.h" #endif /* _LIB_CHIP_AMT630HV100_ */