在freertos中创建了一个静态任务,发现代码报红
编译过后错误,报
main.c(185): error: #513: a value of type "int" cannot be assigned to an entity of type "TaskHandle_t"
大概意思是不能转换为TaskHandle_t,不能返回啥的
经过排查
FreeRtos.h
第777行代码
#ifndef configSUPPORT_STATIC_ALLOCATION
/* Defaults to 0 for backward compatibility. */
#define configSUPPORT_STATIC_ALLOCATION 0
#endif
configSUPPORT_STATIC_ALLOCATION 0的0改为1