FreeRTOS CAN RX/TX/monitoring tasks for STM32.
More...
|
file | can_rtos.c |
| FreeRTOS CAN receive and transmit tasks for STM32H7xx.
|
FreeRTOS CAN RX/TX/monitoring tasks for STM32.
- Todo
- pruett4 write this lol (can_codec got the README in the divorce)
Flowcharts
CAN RX Control Flow
---
config:
fontFamily: monospace
flowchart:
defaultRenderer: elk
---
flowchart LR
rx_event[/CAN message received by FDCAN peripheral/]
irq_handler["HAL IRQ handler (calls can_rx_pending_callback())"]
notify_task["Unblock the CAN receive task with a direct-to-task notification"]
rx_event --> irq_handler
irq_handler --> notify_task
subgraph msg_rx["task_can_rx()"]
block[/"Wait for task notification"/]
receive[Receive CAN message and populate CAN_Msg_t struct]
call_handler[Call handler function passed on task initialization]
block --> receive
receive --> call_handler
end
notify_task --> msg_rx