Release:5.20灰测
This commit is contained in:
@@ -12,26 +12,26 @@
|
||||
#include "os_task.h"
|
||||
|
||||
/*-任务句柄-*/
|
||||
osThreadId HeartbeatTaskHandle; /* 心跳任务句柄 */
|
||||
osThreadId SysTaskHandle; /* 系统任务句柄 */
|
||||
|
||||
osThreadId UDPTaskHandle; /* UDP 消息队列接受任务句柄 */
|
||||
|
||||
osThreadId UDP_ParseTaskHandle; /* UDP 消息队列解析任务句柄 */
|
||||
|
||||
osThreadId DownLinkTaskHandle; /* 4G接收消息任务句柄 */
|
||||
osThreadId Air724_ParseTaskHandle; /* 4G消息队列解析任务句柄 */
|
||||
|
||||
osThreadId YkcTaskHandle; /* 云快充平台交互任务句柄 */
|
||||
|
||||
/*-函数声明-*/
|
||||
void HeartbeatTask_Function(void const *argument); // 心跳任务
|
||||
void sys_task_function(void const *argument); // 系统任务
|
||||
|
||||
void UDPTask_Function(void const *argument); // UDP 接受任务
|
||||
void udp_recv_task_function(void const *argument); // UDP 接受任务
|
||||
|
||||
void UDP_ParseTask_Function(void const *argument); //UDP消息解析任务
|
||||
void udp_parse_task_function(void const *argument); //UDP消息解析任务
|
||||
|
||||
void YkcTask_Function(void const *argument); // 云快充平台交互任务
|
||||
void ykc_task_function(void const *argument); // 云快充平台交互主任务
|
||||
|
||||
void DownLinkTask_Function(void const *argument); // 4G接收消息任务
|
||||
void air724_recv_task_function(void const *argument); // 云快充 TCP 消息解析任务
|
||||
|
||||
/* code -----------------------------------------------------------------------*/
|
||||
|
||||
@@ -49,20 +49,16 @@ void Os_Task_Init(void) /*任务入口函数、任务名字、任务栈大小、
|
||||
{
|
||||
BaseType_t xReturn = pdPASS;
|
||||
|
||||
/* 心跳任务 */
|
||||
xReturn = xTaskCreate((TaskFunction_t)HeartbeatTask_Function, "HeartbeatTask", 128, NULL, (UBaseType_t)osPriorityLow, &HeartbeatTaskHandle);
|
||||
|
||||
/* 4G消息解析任务 */
|
||||
xReturn = xTaskCreate((TaskFunction_t)DownLinkTask_Function, "DownLinkTask", 1024, NULL, osPriorityAboveNormal, &DownLinkTaskHandle);
|
||||
|
||||
/* 系统任务 */
|
||||
xReturn = xTaskCreate((TaskFunction_t)sys_task_function, "SysTask", 128, NULL, (UBaseType_t)osPriorityLow, &SysTaskHandle);
|
||||
/* 云快充 TCP 消息解析任务 */
|
||||
xReturn = xTaskCreate((TaskFunction_t)air724_recv_task_function, "Air724RecvTask", 1024, NULL, osPriorityAboveNormal, &Air724_ParseTaskHandle);
|
||||
/* UDP 消息队列接受任务 */
|
||||
xReturn = xTaskCreate((TaskFunction_t)UDPTask_Function, "UDPTask", 1536, NULL, osPriorityHigh, &UDPTaskHandle);
|
||||
|
||||
xReturn = xTaskCreate((TaskFunction_t)udp_recv_task_function, "UDPRecvTask", 1536, NULL, osPriorityHigh, &UDPTaskHandle);
|
||||
/* UDP 消息解析任务 */
|
||||
xReturn = xTaskCreate((TaskFunction_t)UDP_ParseTask_Function, "UDPParseTask", 2048, NULL, osPriorityAboveNormal, &UDP_ParseTaskHandle);
|
||||
|
||||
xReturn = xTaskCreate((TaskFunction_t)udp_parse_task_function, "UDPParseTask", 2048, NULL, osPriorityAboveNormal, &UDP_ParseTaskHandle);
|
||||
/* 云快充平台交互任务 */
|
||||
xReturn = xTaskCreate((TaskFunction_t)YkcTask_Function, "YKCTask", 1024, NULL, osPriorityAboveNormal, &YkcTaskHandle);
|
||||
xReturn = xTaskCreate((TaskFunction_t)ykc_task_function, "YKC_Task", 1024, NULL, osPriorityAboveNormal, &YkcTaskHandle);
|
||||
|
||||
if (xReturn == pdPASS)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user