创建任务-王道考研模拟408的8套卷
3.12 创建任务编写 app_cfg.h 用来设置任务的优先级和栈大小
-
ifndef APP_CFG_H
-
define APP_CFG_H
- /* 设置任务优先级 */
-
define STARTUP_TASK_PRIO 4
- / 设置栈大小(单位为 OS_STK )/
-
define STARTUP_TASK_STK_SIZE 80
-
endif
编写 app.c 这个是创建 LED 显示任务
429. #include \"includes.h\"
430.
431. void Task_LED(void *p_arg)
432. {
433. (void)p_arg; // 'p_arg' 并没有用到,防止编译器提示警告