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 5f1695dc0d - Show all commits
+3
View File
@@ -163,6 +163,9 @@ int main(void)
xHeartbeatTimerCAN1 = osTimerNew(vLEDHeartbeat, osTimerOnce, &led_can1, NULL);
xHeartbeatTimerCAN2 = osTimerNew(vLEDHeartbeat, osTimerOnce, &led_can2, NULL);
osTimerStart(xHeartbeatTimerCAN1, 25U);
osTimerStart(xHeartbeatTimerCAN2, 25U);
if (xHeartbeatTimerCAN1 == NULL || xHeartbeatTimerCAN2 == NULL) Error_Handler();
/* USER CODE END RTOS_TIMERS */