STM32编译时出现如下错误 XX is used as a header guard here, followed by #define of a different macro 这种问题出现的原因可能是文件名与工程的库函数或参数名定义重名,改变名字即可,或者define后边的书写错误