Skip to content

Commit 38b99f3

Browse files
Update bsp/stm32/libraries/HAL_Drivers/drivers/drv_fdcan.c
Co-authored-by: Copilot <[email protected]>
1 parent aee7eb4 commit 38b99f3

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

bsp/stm32/libraries/HAL_Drivers/drivers/drv_fdcan.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -561,21 +561,6 @@ void HAL_FDCAN_TxBufferCompleteCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t Bu
561561
}
562562

563563

564-
void HAL_FDCAN_TxBufferCompleteCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndexes)
565-
{
566-
if(hfdcan->Instance == FDCAN1)
567-
{
568-
#ifdef BSP_USING_FDCAN1
569-
rt_hw_can_isr(&st_DrvCan1.device, RT_CAN_EVENT_TX_DONE | ((BufferIndexes-1) << 8));
570-
#endif
571-
}
572-
else
573-
{
574-
#ifdef BSP_USING_FDCAN2
575-
rt_hw_can_isr(&st_DrvCan2.device, RT_CAN_EVENT_TX_DONE | ((BufferIndexes-1) << 8));
576-
#endif
577-
}
578-
}
579564

580565

581566
void HAL_FDCAN_TxFifoEmptyCallback(FDCAN_HandleTypeDef *hfdcan)

0 commit comments

Comments
 (0)