官方SDK移植
1.新建cc.h文件
SDK包里面会用到很多数据类型,所以我们需要在cc.h中定义一些常用的数据类型。
#define __I volatile
#define __O volatile
#define __IO volatile
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef signed char s8;
typedef signed short s16;
typedef signed int s32;
typedef signed long long s64;
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long u64;
2.移植文件
需要移植的文件fsl_common.h、fsl_iomuxc.h、MCIMX6Y2.h。
设备为MCIMX6Y2,意思是在这个文件夹下找需要的三个文件。