Преглед на файлове

[bsp/hc32]hc32f460 doesn't support CAN-FD, hc32_ll_can.h has no some definations.

Lin-Chengqiu преди 7 месеца
родител
ревизия
16093369b2
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      bsp/hc32/libraries/hc32_drivers/drv_can.c

+ 2 - 0
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;
 }