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 1b38c0f29a - Show all commits
+4 -2
View File
@@ -113,9 +113,11 @@ void vCANLoggerListen(void *argument)
{ {
// TODO: parse message send message to serial/uart // TODO: parse message send message to serial/uart
HAL_GPIO_WritePin(led_can1.port, led_can1.pin, GPIO_PIN_SET);
osTimerStart(xHeartbeatTimerCAN1, 25U); bus = (hcan->Instance == CAN1) ? xLEDSemaphoreCAN1 : xLEDSemaphoreCAN2
osSemaphoreRelease(bus);
} }
} }
/* CODE END */ /* CODE END */
} }