在跑代码的时候,本来没错的突然报错
error: #35: #error directive: “include FreeRTOS.h must appear in source files before include task.h”
原因是:
引用了 #include “task.h” 的时候没有 #include “FreeRTOS.h” ,且先 #include “FreeRTOS.h”
参考了https://blog.csdn.net/qq_23852045/article/details/108750503原文及评论

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐