/* 保存任务属性,生成任务时使用。 */ /* Includes ----------------------------------------------------------------- */ #include "attrTask.h" /* 机器人运行时的数据 */ Task_Runtime_t task_runtime; //初始化 const osThreadAttr_t attr_init = { .name = "init", .priority = osPriorityRealtime, .stack_size = 256 * 4, }; //我的led属性 const osThreadAttr_t attr_led = { .name = "led", .priority = osPriorityRealtime, .stack_size = 128 * 4, }; //can const osThreadAttr_t attr_can = { .name = "can", .priority = osPriorityRealtime, .stack_size = 128 * 4, }; //dji_motor const osThreadAttr_t attr_motor = { .name = "motor", .priority = osPriorityRealtime, .stack_size = 128 * 4, }; //odrive_shoot const osThreadAttr_t attr_shoot = { .name = "shoot", .priority = osPriorityRealtime, .stack_size = 256 * 4, }; //go const osThreadAttr_t attr_go = { .name = "go", .priority = osPriorityRealtime, .stack_size = 256 * 4, }; //nuc const osThreadAttr_t attr_nuc = { .name = "nuc", .priority = osPriorityRealtime, .stack_size = 256 * 4, }; //rc const osThreadAttr_t attr_rc = { .name = "rc", .priority = osPriorityRealtime, .stack_size = 256 * 4, }; //ball const osThreadAttr_t attr_ball = { .name = "ball", .priority = osPriorityRealtime, .stack_size = 256 * 4, };