mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-28 06:02:52 +08:00
41f9e7d64f
The CANtact FD and other devices implement a gs-usb compatible USB protocol. The protocol has been extended to support CAN-FD and the changes on the Linux gs_usb driver will be mainlined soon. This patch adds the new GS_CAN_MODE_*, GS_CAN_FEATURE_*, GS_USB_BREQ_DATA_BITTIMING, and GS_CAN_FLAG_* bits as well as struct gs_host_frame_canfd to the candlelight driver. This is mainly for documentation purpose, as the STM32F042 and STM32F072 don't support CAN-FD. But there are some ports to CAN-FD capable STM32 µC that can make use of these definitions. [1] https://github.com/linklayer/gs_usb_fd/issues/2