|
|
@ -267,7 +267,7 @@ void Drv_InterfaceInit(void) |
|
|
|
|
|
|
|
|
const osThreadAttr_t Custom_attributes = { |
|
|
const osThreadAttr_t Custom_attributes = { |
|
|
.name = MODULE_NAME_CUSTOM, |
|
|
.name = MODULE_NAME_CUSTOM, |
|
|
.stack_size = 2 * 1024, |
|
|
.stack_size = 2048, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
}; |
|
|
}; |
|
|
(void)osThreadNew(Custom_Task, NULL, &Custom_attributes); |
|
|
(void)osThreadNew(Custom_Task, NULL, &Custom_attributes); |
|
|
@ -275,7 +275,7 @@ void Drv_InterfaceInit(void) |
|
|
// 创建电机任务
|
|
|
// 创建电机任务
|
|
|
const osThreadAttr_t motor_task_attributes = { |
|
|
const osThreadAttr_t motor_task_attributes = { |
|
|
.name = MODULE_NAME_MOTOR, |
|
|
.name = MODULE_NAME_MOTOR, |
|
|
.stack_size = 1024, |
|
|
.stack_size = 2048, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
}; |
|
|
}; |
|
|
(void)osThreadNew(MotorTask, NULL, &motor_task_attributes); |
|
|
(void)osThreadNew(MotorTask, NULL, &motor_task_attributes); |
|
|
|