|
|
@ -268,7 +268,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 = 2048, |
|
|
.stack_size = THREAD_DEFAULT_STACK, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
}; |
|
|
}; |
|
|
(void)osThreadNew(Custom_Task, NULL, &Custom_attributes); |
|
|
(void)osThreadNew(Custom_Task, NULL, &Custom_attributes); |
|
|
@ -276,14 +276,14 @@ 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 = 2048, |
|
|
.stack_size = THREAD_DEFAULT_STACK, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
}; |
|
|
}; |
|
|
(void)osThreadNew(MotorTask, NULL, &motor_task_attributes); |
|
|
(void)osThreadNew(MotorTask, NULL, &motor_task_attributes); |
|
|
|
|
|
|
|
|
const osThreadAttr_t Read_motor_attributes = { |
|
|
const osThreadAttr_t Read_motor_attributes = { |
|
|
.name = "Read_motor", |
|
|
.name = "Read_motor", |
|
|
.stack_size = 2048, |
|
|
.stack_size = THREAD_DEFAULT_STACK, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
}; |
|
|
}; |
|
|
(void)osThreadNew(Read_motor, NULL, &Read_motor_attributes); |
|
|
(void)osThreadNew(Read_motor, NULL, &Read_motor_attributes); |
|
|
@ -299,7 +299,7 @@ void Drv_InterfaceInit(void) |
|
|
|
|
|
|
|
|
const osThreadAttr_t Read_PV_attributes = { |
|
|
const osThreadAttr_t Read_PV_attributes = { |
|
|
.name = "Read_PV", |
|
|
.name = "Read_PV", |
|
|
.stack_size = 2048, |
|
|
.stack_size = THREAD_DEFAULT_STACK, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
.priority = (osPriority_t) osPriorityRealtime1, |
|
|
}; |
|
|
}; |
|
|
(void)osThreadNew(Read_PV, NULL, &Read_PV_attributes); |
|
|
(void)osThreadNew(Read_PV, NULL, &Read_PV_attributes); |
|
|
|