Write HIGH status on LED on incoming CAN message and start 25ms timer
This commit is contained in:
+3
-1
@@ -112,7 +112,9 @@ void vCANLoggerListen(void *argument)
|
|||||||
if (osMessageQueueGet(queue, &message, NULL, osWaitForever) == osOK)
|
if (osMessageQueueGet(queue, &message, NULL, osWaitForever) == osOK)
|
||||||
{
|
{
|
||||||
// TODO: parse message send message to serial/uart
|
// 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 */
|
/* CODE END */
|
||||||
|
|||||||
Reference in New Issue
Block a user