1 简介
FreeRTOS中的FreeRTOSConfig.h文件使用#define
来定义宏定义实现的。使用时可以直接复制,再根据自己的需要修改。
2"INCLUDE_"开始的宏
使用"INCLUDE_"开始的宏使能或除能FreeRTOS中相应的API函数。
/* Set the following definitions to 1 to include the API function, or zero
to exclude the API function. */
#define INCLUDE_vTaskPrioritySet 1
#define INCLUDE_uxTaskPriorityGet 1
#define INCLUDE_vTaskDelete 1
#define INCLUDE_vTaskCleanUpResources 1
#define INCLUDE_vTaskSuspend 1
#define INCLUDE_vTaskDelayUntil 1
#define INCLUDE_vTaskDelay 1
#define INCLUDE_xTaskGetSchedulerState 1
#define INCLUDE_xTaskGetCurrentTaskHandle 1