You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
647 B
35 lines
647 B
//
|
|
// Created by iflyt on 2025/3/20.
|
|
//
|
|
|
|
#include "uart_control.h"
|
|
|
|
#include "uart_cmd/cmd_receive_service.h"
|
|
|
|
|
|
|
|
UartControl::UartControl() {
|
|
}
|
|
|
|
UartControl::~UartControl() {
|
|
}
|
|
|
|
bool UartControl::start() {
|
|
osThreadAttr_t parser_task_attr = {0};
|
|
parser_task_attr.name = "UartParserTask";
|
|
parser_task_attr.stack_size = 256 * 8;
|
|
parser_task_attr.priority = osPriorityNormal;
|
|
parser_task_handle_ = osThreadNew(cmdUartLoopTask, nullptr, &parser_task_attr);
|
|
if (parser_task_handle_ == NULL) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void UartControl::canParserTask(void *argument)
|
|
{
|
|
while(true)
|
|
{
|
|
osDelay(1000);
|
|
}
|
|
}
|