STM32常见错误error: #268: declaration may not appear after executable statement in block

此错误中文意思:声明不能在可执行语句后出现。

表示有变量在函数后面声明,应该改为在函数开头声明变量。

因为keil 默认编译标准是C89,解决方法:

猜你喜欢

转载自blog.csdn.net/weixin_46672094/article/details/116356696
今日推荐