We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88a5f06 commit 233a447Copy full SHA for 233a447
src/can/m_can.c
@@ -138,6 +138,12 @@ void can_enable(can_data_t *channel, uint32_t mode)
138
HAL_FDCAN_Init(&channel->channel);
139
HAL_FDCAN_EnableISOMode(&channel->channel);
140
141
+ /* Enable automatic transceiver delay compensation */
142
+ HAL_FDCAN_ConfigTxDelayCompensation(&channel->channel,
143
+ channel->channel.Init.DataTimeSeg1 * channel->channel.Init.DataPrescaler,
144
+ 0U);
145
+ HAL_FDCAN_EnableTxDelayCompensation(&channel->channel);
146
+
147
/* Configure reception filter to Rx FIFO 0 on both FDCAN instances */
148
FDCAN_FilterTypeDef sFilterConfig = {
149
.IdType = FDCAN_STANDARD_ID,
0 commit comments