基质喷涂
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

  1. //
  2. // Created by iflyt on 2025/3/20.
  3. //
  4. #include "uart_control.h"
  5. #include "uart_cmd/cmd_receive_service.h"
  6. UartControl::UartControl() {
  7. }
  8. UartControl::~UartControl() {
  9. }
  10. bool UartControl::start() {
  11. osThreadAttr_t parser_task_attr = {0};
  12. parser_task_attr.name = "UartParserTask";
  13. parser_task_attr.stack_size = 256 * 8;
  14. parser_task_attr.priority = osPriorityNormal;
  15. parser_task_handle_ = osThreadNew(cmdUartLoopTask, nullptr, &parser_task_attr);
  16. if (parser_task_handle_ == NULL) {
  17. return false;
  18. }
  19. return true;
  20. }
  21. void UartControl::canParserTask(void *argument)
  22. {
  23. while(true)
  24. {
  25. osDelay(1000);
  26. }
  27. }