r1upper/User/task/userTask.c
2025-04-26 17:45:08 +08:00

51 lines
1.0 KiB
C

#include "userTask.h"
task_t task_struct; /* 任务结构体实例化 */
/*下面是所有的任务属性*/
const osThreadAttr_t attr_shoot = {
.name = "shoot",
.priority = osPriorityRealtime,
.stack_size = 128 * 4,
};
const osThreadAttr_t attr_gimbal = {
.name = "gimbal",
.priority = osPriorityRealtime,
.stack_size = 128 * 4,
};
const osThreadAttr_t attr_take = {
.name = "take",
.priority = osPriorityRealtime,
.stack_size = 128 * 4,
};
const osThreadAttr_t attr_can = {
.name = "can",
.priority = osPriorityRealtime,
.stack_size = 128 * 8,
};
const osThreadAttr_t attr_rc = {
.name = "rc",
.priority = osPriorityRealtime,
.stack_size = 128 * 8,
};
const osThreadAttr_t attr_ball = {
.name = "ball",
.priority = osPriorityRealtime,
.stack_size = 128 * 8,
};
const osThreadAttr_t attr_nuc = {
.name = "nuc",
.priority = osPriorityRealtime,
.stack_size = 256 * 4,
};
const osEventFlagsAttr_t attr_event = {
.name = "event",
};