Wait until CAN1 or CAN2 save anything to FIFO buffer
- Moving CAN event flag to vCANLoggerListen to avoid possible race condition and to make ISR leaner
This commit is contained in:
@@ -94,6 +94,14 @@ void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
|
||||
*/
|
||||
void vUARTLogger(void *argument)
|
||||
{
|
||||
CanMessage_t msg;
|
||||
char tx_buffer[45]; // converted extended frame
|
||||
bool queues_empty;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
osEventFlagsWait(xCanEventFlags, 0x03, osFlagsWaitAny, osWaitForever);
|
||||
|
||||
}
|
||||
}
|
||||
/* END vUARTLoggerListen */
|
||||
|
||||
Reference in New Issue
Block a user