//启用软件定时器

#define configUSE_TIMERS 1

//软件定时器优先级

#define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES-1)

//软件定时器队列长度

#define configTIMER_QUEUE_LENGTH 10

//软件定时器任务堆栈大小

#define configTIMER_TASK_STACK_DEPTH (configMINIMAL_STACK_SIZE*2)

/************************************************************

FreeRTOS可选函数配置选项

************************************************************/

#define INCLUDE_xTaskGetSchedulerState 1

#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_eTaskGetState 1

#define INCLUDE_xTimerPendFunctionCall 1

//#define INCLUDE_xTaskGetCurrentTaskHandle 1

//#define INCLUDE_uxTaskGetStackHighWaterMark 0

//#define INCLUDE_xTaskGetIdleTaskHandle 0

/******************************************************************

FreeRTOS与中断有关的配置选项

******************************************************************/

#ifdef __NVIC_PRIO_BITS

#define configPRIO_BITS __NVIC_PRIO_BITS

#else

#define configPRIO_BITS 4

#endif

//中断最低优先级

#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 15

//系统可管理的最高中断优先级

#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5

#define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY 《《 (8 - configPRIO_BITS) ) /* 240 */

#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 《《 (8 - configPRIO_BITS) )

/****************************************************************

FreeRTOS与中断服务函数有关的配置选项