Skip to content

Commit

Permalink
[bsp/hc32]hc32f460 doesn't support CAN-FD, hc32_ll_can.h has no some …
Browse files Browse the repository at this point in the history
…definations.
  • Loading branch information
Lin-Chengqiu committed Dec 19, 2024
1 parent 00fb41f commit e12e42c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bsp/hc32/libraries/hc32_drivers/drv_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ static uint8_t _get_can_data_bytes_len(uint32_t dlc)
{
data_bytes = dlc;
}
#ifdef RT_CAN_USING_CANFD
else
{
switch (dlc)
Expand Down Expand Up @@ -355,6 +356,7 @@ static uint8_t _get_can_data_bytes_len(uint32_t dlc)
break;
}
}
#endif

return data_bytes;
}
Expand Down

0 comments on commit e12e42c

Please sign in to comment.