diff options
| author | Lin-Chengqiu <[email protected]> | 2024-12-19 23:31:23 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-12-21 13:10:47 -0500 |
| commit | 16093369b28374cfd81bd2128c9d70aba637bc12 (patch) | |
| tree | 2b1281accc27ee5af0fe5b5ef0ff502ab7c7c1b7 | |
| parent | 99491e3821e40251bff5b6fac3118d0d4ffd1d57 (diff) | |
[bsp/hc32]hc32f460 doesn't support CAN-FD, hc32_ll_can.h has no some definations.
| -rw-r--r-- | bsp/hc32/libraries/hc32_drivers/drv_can.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bsp/hc32/libraries/hc32_drivers/drv_can.c b/bsp/hc32/libraries/hc32_drivers/drv_can.c index 2274262aa8..61106abba7 100644 --- a/bsp/hc32/libraries/hc32_drivers/drv_can.c +++ b/bsp/hc32/libraries/hc32_drivers/drv_can.c @@ -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) @@ -355,6 +356,7 @@ static uint8_t _get_can_data_bytes_len(uint32_t dlc) break; } } +#endif return data_bytes; } |
