61 lines
1.5 KiB
C
61 lines
1.5 KiB
C
#include "task/user_task.h"
|
||
|
||
Task_Runtime_t task_runtime;
|
||
|
||
const osThreadAttr_t attr_init = {
|
||
.name = "Task_Init",
|
||
.priority = osPriorityRealtime,
|
||
.stack_size = 256 * 4,
|
||
};
|
||
|
||
/* User_task */
|
||
const osThreadAttr_t attr_rc = {
|
||
.name = "rc",
|
||
.priority = osPriorityNormal,
|
||
.stack_size = 256 * 4,
|
||
};
|
||
const osThreadAttr_t attr_atti_esti = {
|
||
.name = "atti_esti",
|
||
.priority = osPriorityNormal,
|
||
.stack_size = 256 * 4,
|
||
};
|
||
const osThreadAttr_t attr_blink = {
|
||
.name = "blink",
|
||
.priority = osPriorityNormal,
|
||
.stack_size = 256 * 4,
|
||
};
|
||
const osThreadAttr_t attr_ctrl_chassis = {
|
||
.name = "ctrl_chassis",
|
||
.priority = osPriorityNormal,
|
||
.stack_size = 256 * 4,
|
||
};
|
||
const osThreadAttr_t attr_ctrl_gimbal = {
|
||
.name = "ctrl_gimbal",
|
||
.priority = osPriorityNormal,
|
||
.stack_size = 256 * 4,
|
||
};
|
||
const osThreadAttr_t attr_ctrl_shoot = {
|
||
.name = "ctrl_shoot",
|
||
.priority = osPriorityNormal,
|
||
.stack_size = 256 * 4,
|
||
};
|
||
const osThreadAttr_t attr_cmd = {
|
||
.name = "cmd",
|
||
.priority = osPriorityNormal,
|
||
.stack_size = 256 * 4,
|
||
};
|
||
const osThreadAttr_t attr_supercap = {
|
||
.name = "supercap",
|
||
.priority = osPriorityNormal,
|
||
.stack_size = 512 * 4,
|
||
};
|
||
const osThreadAttr_t attr_ai = {
|
||
.name = "ai",
|
||
.priority = osPriorityNormal,
|
||
.stack_size = 256 * 4,
|
||
};
|
||
const osThreadAttr_t attr_referee = {
|
||
.name = "referee",
|
||
.priority = osPriorityNormal,
|
||
.stack_size = 512 * 4, /* 增大栈:UIRefresh调用sin/cos(软浮点)栈消耗大 */
|
||
}; |