[bsp/hc32]hc32f460 doesn't support CAN-FD, hc32_ll_can.h has no some definations.
This commit is contained in:
parent
99491e3821
commit
16093369b2
@ -325,6 +325,7 @@ static uint8_t _get_can_data_bytes_len(uint32_t dlc)
|
|||||||
{
|
{
|
||||||
data_bytes = dlc;
|
data_bytes = dlc;
|
||||||
}
|
}
|
||||||
|
#ifdef RT_CAN_USING_CANFD
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (dlc)
|
switch (dlc)
|
||||||
@ -355,6 +356,7 @@ static uint8_t _get_can_data_bytes_len(uint32_t dlc)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return data_bytes;
|
return data_bytes;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user