stm32: Enable Automatic retransmission feature to avoid data loss caused by bus conflict for STM32G0B1 fdcan (#5550)

Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
This commit is contained in:
BIGTREETECH authored and GitHub committed 2022-06-06 10:59:18 -04:00
1 parent db5a4351a5
commit ada571ecb8
1 file changed
-2
-2
View File
@@ -303,8 +303,6 @@ can_init(void)
if (SOC_CAN == FDCAN1)
FDCAN_CONFIG->CKDIV = 0;
/* Disable automatic retransmission */
SOC_CAN->CCCR |= FDCAN_CCCR_DAR;
/* Disable protocol exception handling */
SOC_CAN->CCCR |= FDCAN_CCCR_PXHD;