09_FreeRTOS_CAN_loopback/main.cpp
/******************************************************************************/
/* Tasks **********************************************************************/
/******************************************************************************/
/**
 * CAN receive task.
 * Receive CAN messages from IRQ handler.
 * @param pvParameters None
 */
Tasks
CAN receive task.
Receive CAN messages from IRQ handler.
@param pvParameters None
Tasks CAN receive task . Receive CAN messages from IRQ handler . @param pvParameters None
void CANReceiveTask(void *pvParameters) {
  (void)pvParameters;
  CAN_Rx_t can_rx; 
  while (1u) {
    xQueueReceive(CanRxQueue, &can_rx, portMAX_DELAY);
    ToggleGreenLed();
  }
}
void CANReceiveTask ( void * pvParameters ) { ( void ) pvParameters ; CAN_Rx_t can_rx ; while ( 1u ) { xQueueReceive ( CanRxQueue , & can_rx , portMAX_DELAY ) ; ToggleGreenLed ( ) ; } }
Tasks
 CAN receive task.
Tasks CAN receive task .
/* Received CAN message */ /* Receive CAN message from CAN IRQ */ /* Indicate message receiving from CAN */ /* Handle received message here */