| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #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 <stdbool.h>
- /*
- * 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 "crc.h"
- #include "mailbox_message.h"
- typedef enum {
- CHIP_HVER_NONE = -1,
- CHIP_HVER_0 = 0,
- CHIP_HVER_1 = 1,
- CHIP_HVER_COUNT
- } ChipHardwareVersion;
- typedef struct {
- uint32_t hver; /* chip hardware version number */
- uint32_t reserved[14];
- uint32_t crc;
- } ChipInfo;
- uint32_t GetChipHWVeriosn(void);
- #endif /* _LIB_CHIP_AMT630HV100_ */
|