|
|
@@ -68,28 +68,28 @@
|
|
|
* See http://www.freertos.org/a00110.html.
|
|
|
*----------------------------------------------------------*/
|
|
|
|
|
|
-#define configUSE_PREEMPTION 1 //使用抢先式内核
|
|
|
-#define configUSE_IDLE_HOOK 1 //使用空闲钩子
|
|
|
-#define configUSE_TICK_HOOK 1 //不使用时间片钩子
|
|
|
-
|
|
|
-#define configCPU_CLOCK_HZ ( ( unsigned long ) 40000000 ) /* =12.0MHz xtal multiplied by 5 using the PLL. *///内部处理器执行频率
|
|
|
-
|
|
|
-#define configTICK_RATE_HZ ( ( portTickType ) 1000u ) //时间片中断的频率
|
|
|
-#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 63) //应用程序中可用优先级的数目
|
|
|
-#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 90 ) //空闲任务使用的堆栈大小
|
|
|
-#define configTOTAL_HEAP_SIZE ( ( size_t ) 12 * 1024 ) //内核中可用的RAM数量,heap2使用
|
|
|
-#define configMAX_TASK_NAME_LEN ( 8 ) //创建任务名称最大允许长度
|
|
|
-#define configUSE_TRACE_FACILITY 0 //是否使用可视化追踪
|
|
|
-#define configUSE_16_BIT_TICKS 0 //定义portTickType
|
|
|
-#define configIDLE_SHOULD_YIELD 1 //讲阻止空闲任务让出时间直到他的时间片用完
|
|
|
-#define configUSE_HEAP3 1
|
|
|
+#define configUSE_PREEMPTION 1 //使锟斤拷锟斤拷锟斤拷式锟节猴拷
|
|
|
+#define configUSE_IDLE_HOOK 1 //使锟矫匡拷锟叫癸拷锟斤拷
|
|
|
+#define configUSE_TICK_HOOK 1 //锟斤拷使锟斤拷时锟斤拷片锟斤拷锟斤拷
|
|
|
+
|
|
|
+#define configCPU_CLOCK_HZ ( ( unsigned long ) 40000000 ) /* =12.0MHz xtal multiplied by 5 using the PLL. *///锟节诧拷锟斤拷锟斤拷锟斤拷执锟斤拷频锟斤拷
|
|
|
+
|
|
|
+#define configTICK_RATE_HZ ( ( portTickType ) 1000u ) //时锟斤拷片锟叫断碉拷频锟斤拷
|
|
|
+#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 63) //应锟矫筹拷锟斤拷锟叫匡拷锟斤拷锟斤拷锟饺硷拷锟斤拷锟斤拷目
|
|
|
+#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 90 ) //锟斤拷锟斤拷锟斤拷锟斤拷使锟矫的讹拷栈锟斤拷小
|
|
|
+#define configTOTAL_HEAP_SIZE ( ( size_t ) 12 * 1024 ) //锟节猴拷锟叫匡拷锟矫碉拷RAM锟斤拷锟斤拷,heap2使锟斤拷
|
|
|
+#define configMAX_TASK_NAME_LEN ( 8 ) //锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�
|
|
|
+#define configUSE_TRACE_FACILITY 0 //锟角凤拷使锟矫匡拷锟接伙拷追锟斤拷
|
|
|
+#define configUSE_16_BIT_TICKS 0 //锟斤拷锟斤拷portTickType
|
|
|
+#define configIDLE_SHOULD_YIELD 1 //锟斤拷锟斤拷止锟斤拷锟斤拷锟斤拷锟斤拷锟矫筹拷时锟斤拷直锟斤拷锟斤拷锟斤拷时锟斤拷片锟斤拷锟斤拷
|
|
|
+#define configUSE_HEAP3 0
|
|
|
|
|
|
#define configQUEUE_REGISTRY_SIZE 0
|
|
|
-#define configSEMAPHORE_INIT_VALUE 5 //创建信号量的最大计数值
|
|
|
+#define configSEMAPHORE_INIT_VALUE 5 //锟斤拷锟斤拷锟脚猴拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷值
|
|
|
|
|
|
/* Co-routine definitions. */
|
|
|
-#define configUSE_CO_ROUTINES 0 //不使用合作轮转式程序
|
|
|
-#define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) //合作式应用程序中可用的优先级数目
|
|
|
+#define configUSE_CO_ROUTINES 0 //锟斤拷使锟矫猴拷锟斤拷锟斤拷转式锟斤拷锟斤拷
|
|
|
+#define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) //锟斤拷锟斤拷式应锟矫筹拷锟斤拷锟叫匡拷锟矫碉拷锟斤拷锟饺硷拷锟斤拷目
|
|
|
|
|
|
#define configTIMER_TASK_STACK_DEPTH 400
|
|
|
|
|
|
@@ -108,7 +108,7 @@ to exclude the API function. */
|
|
|
#define configUSE_MUTEXES 1
|
|
|
#define configUSE_RECURSIVE_MUTEXES 1
|
|
|
|
|
|
-#define INCLUDE_xTaskGetCurrentTaskHandle 1 //可以获取当前任务
|
|
|
+#define INCLUDE_xTaskGetCurrentTaskHandle 1 //锟斤拷锟皆伙拷取锟斤拷前锟斤拷锟斤拷
|
|
|
|
|
|
|
|
|
#endif /* FREERTOS_CONFIG_H */
|