“线程:测试”中讨论的其它部件
您好,
使用 drivelb 时,使用 driverlib 的 EMIF 驱动程序进行编译时出错。
我们将其缩小到 stdbool.h 和 stdint.h,但驱动程序库的 emif.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.
您好,
使用 drivelb 时,使用 driverlib 的 EMIF 驱动程序进行编译时出错。
我们将其缩小到 stdbool.h 和 stdint.h,但驱动程序库的 emif.h 文件中缺少包含,因此我想向您提出此问题,以便其他人知道,并在以后的版本中解决此问题。
我认为只有 在存在调试预处理程序变量的情况下,才会出现该错误。
此致,
克莱蒙特
我没有确切的错误,因为是我的同事经历了错误,我忘记了。
这是编译器无法识别 bool,uint16_t 和 Int16_t 的结果。
但基本上,我们只是从该处理器的驱动程序库中包括 emif.h,并且由于 emif.h 中没有#include <stdint.h>或#include <stdbool.h>(与其他驱动程序头文件(例如 bgcrc.h)相比,如果您查看包含的头文件),它会弹出错误。
也许您没有遇到这种情况,因为在 EMIF 的测试代码中,您在包括 emif.h 头文件之前包含了这两个头文件。
此致,
克莱蒙特