Browse Source

机器人相关线程优先级统一改为49

master
Lizongdi 2 days ago
parent
commit
a52903ea39
  1. 2
      RBcore/client_setting.c
  2. 8
      RBcore/drv_interface.c

2
RBcore/client_setting.c

@ -149,7 +149,7 @@ void SendIV_Init(void)
const osThreadAttr_t Send_PV_attributes = { const osThreadAttr_t Send_PV_attributes = {
.name = MODULE_NAME_SENDIV, .name = MODULE_NAME_SENDIV,
.stack_size = 1024, .stack_size = 1024,
.priority = (osPriority_t) osPriorityHigh4, .priority = (osPriority_t) osPriorityRealtime1,
}; };
(void)osThreadNew(Send_IV, NULL, &Send_PV_attributes); (void)osThreadNew(Send_IV, NULL, &Send_PV_attributes);
} }

8
RBcore/drv_interface.c

@ -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 = 2 * 1024,
.priority = (osPriority_t) osPriorityRealtime, .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 = 1024,
.priority = (osPriority_t) osPriorityRealtime, .priority = (osPriority_t) osPriorityRealtime1,
}; };
(void)osThreadNew(MotorTask, NULL, &motor_task_attributes); (void)osThreadNew(MotorTask, NULL, &motor_task_attributes);
@ -288,7 +288,7 @@ void Drv_InterfaceInit(void)
const osThreadAttr_t MK32_Task_attributes = { const osThreadAttr_t MK32_Task_attributes = {
.name = "Read_MK32", .name = "Read_MK32",
.stack_size = 2048, .stack_size = 2048,
.priority = (osPriority_t) osPriorityHigh6, .priority = (osPriority_t) osPriorityRealtime1,
}; };
(void)osThreadNew(Read_MK32, NULL, &MK32_Task_attributes); (void)osThreadNew(Read_MK32, NULL, &MK32_Task_attributes);
@ -300,7 +300,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 = 2048,
.priority = (osPriority_t) osPriorityHigh6, .priority = (osPriority_t) osPriorityRealtime1,
}; };
(void)osThreadNew(Read_PV, NULL, &Read_PV_attributes); (void)osThreadNew(Read_PV, NULL, &Read_PV_attributes);
} }

Loading…
Cancel
Save