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.
.\driverlib\timer.h(247): error: #20: identifier "bool" is undefined
.\driverlib\timer.h(249): error: #20: identifier "bool" is undefined
.\driverlib\timer.h(253): error: #20: identifier "bool" is undefined
.\driverlib\timer.h(255): error: #20: identifier "bool" is undefined
.\driverlib\timer.h(281): error: #20: identifier "bool" is undefined
调用timer.h头文件时为什么会出现这个错误,编译环境是MDK4.72,开发板是TM4C1294XL
确保你的工程中每一个c源码的最前面写得是:
#include <stdint.h>
#include <stdbool.h>
这两个必须放在源码中的其他库函数的头文件include之前。