Refactor: implement data relay from vCANLoggerListen to xUARTQueue

- No RTOS event, just queue put and get: cleaner way to send data and
  more clear separation of concerns
This commit is contained in:
2026-06-16 22:09:49 +02:00
parent 5f11cf5213
commit 59b0aca092
5 changed files with 25 additions and 48 deletions
+2
View File
@@ -28,6 +28,7 @@
extern osMessageQueueId_t xCAN1RxQueue;
extern osMessageQueueId_t xCAN2RxQueue;
extern osMessageQueueId_t xUARTQueue;
/* USER CODE BEGIN PTD */
typedef struct {
@@ -40,6 +41,7 @@ typedef struct {
uint8_t payload[8];
uint8_t dlc;
uint8_t isExtended;
uint8_t source;
//uint32_t timestamp; //Enable TIM2: 42 MHz / (41+1) = 1 MHz → 1 µs tick; 32bit autoreload freerunning
// this is for getting timestamps on can messages
} CanMessage_t;
+2
View File
@@ -20,6 +20,8 @@
#ifndef CANSEND_H
#define CANSEND_H
#include "main.h"
void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart);
void vUARTLogger(void *argument);