MDK下同时包含tm4c123gh6pm.h和hw_xx.h的编译警告问题。
编译会出现270多处警告。我察看了下主要警告是宏定义问题
就是在两个文件的宏名相同,宏体不同,请问这要如何解决,同时hw_xx.h和tm4c123gh6pm.h定义的宏有什么区别。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
MDK下同时包含tm4c123gh6pm.h和hw_xx.h的编译警告问题。
编译会出现270多处警告。我察看了下主要警告是宏定义问题
就是在两个文件的宏名相同,宏体不同,请问这要如何解决,同时hw_xx.h和tm4c123gh6pm.h定义的宏有什么区别。
新版本的库中,对于外设头文件的定义早就不用hw开头了,外设在这个文件夹中
打开一个官方的MDK工程文件配置,发现包含头文件的格式如下
#include <stdbool.h> #include <stdint.h> #include "inc/hw_memmap.h" #include "driverlib/debug.h" #include "driverlib/gpio.h" #include "driverlib/rom.h" #include "driverlib/sysctl.h"
而tm4c123gh6pm.h这样的定义在这里了
打开一个官方的MDK工程,仔细研究下配置就懂怎么建立工程了。不过推荐用CCS,仿真支持的很好。