Use semaphores and one shot RTOS timers to better manage LEDs for incoming CAN message on FIFO buffer #8

Merged
eeeck merged 22 commits from led-semaphore into j1939 2026-06-14 16:49:18 +02:00
Showing only changes of commit 2e2150ebd2 - Show all commits
+3 -1
View File
@@ -112,7 +112,9 @@ void vCANLoggerListen(void *argument)
if (osMessageQueueGet(queue, &message, NULL, osWaitForever) == osOK)
{
// TODO: parse message send message to serial/uart
// TODO: add rtos semaphore to blink the LED with the timer already set
HAL_GPIO_WritePin(led_can1.port, led_can1.pin, GPIO_PIN_SET);
osTimerStart(xHeartbeatTimerCAN1, 25U);
}
}
/* CODE END */