Enable CAN FIFO Transmit priority

This is required for segmented transmission, which is used in ISO
15765-2 (ISO-TP).
This commit is contained in:
Brian Daniels 2021-02-22 11:58:33 -05:00
parent 8c005eb537
commit 7b06b04fe7
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ void can_enable(void)
can_handle.Init.AutoWakeUp = DISABLE;
can_handle.Init.AutoRetransmission = can_autoretransmit;
can_handle.Init.ReceiveFifoLocked = DISABLE;
can_handle.Init.TransmitFifoPriority = DISABLE;
can_handle.Init.TransmitFifoPriority = ENABLE;
HAL_CAN_Init(&can_handle);
HAL_CAN_ConfigFilter(&can_handle, &filter);