Let HAL know when DMA is done

This commit is contained in:
2026-06-24 13:41:56 +02:00
parent 6da4ca1270
commit fe89d8222d
+5 -1
View File
@@ -92,7 +92,11 @@ static int format_can_message(char *buf, uint8_t source, const CanMessage_t *mes
*/ */
void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
{ {
if (huart->Instance == USART1) osSemaphoreRelease(xUARTDMASemaphore); if (huart->Instance == USART1)
{
huart->gState = HAL_UART_STATE_READY;
osSemaphoreRelease(xUARTDMASemaphore);
}
} }
/* END HAL_UART_TxCpltCallback */ /* END HAL_UART_TxCpltCallback */