mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-28 06:02:52 +08:00
gs_usb: update comment about struct gs_device_config::byte_order
Fixes: bbe39cad2ea8 ("usbd_gs_can: remove unused USBD_GS_CAN_HandleTypeDef::host_config")
This commit is contained in:
parent
84a397731b
commit
048288042f
@ -208,11 +208,16 @@ enum gs_can_termination_state {
|
|||||||
struct gs_host_config {
|
struct gs_host_config {
|
||||||
u32 byte_order;
|
u32 byte_order;
|
||||||
} __packed;
|
} __packed;
|
||||||
/* All data exchanged between host and device is exchanged in host byte order,
|
|
||||||
* thanks to the struct gs_host_config byte_order member, which is sent first
|
|
||||||
* to indicate the desired byte order.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/* The firmware on the original USB2CAN by Geschwister Schneider
|
||||||
|
* Technologie Entwicklungs- und Vertriebs UG exchanges all data
|
||||||
|
* between the host and the device in host byte order. This is done
|
||||||
|
* with the struct gs_host_config::byte_order member, which is sent
|
||||||
|
* first to indicate the desired byte order.
|
||||||
|
*
|
||||||
|
* The widely used open source firmware candleLight doesn't support
|
||||||
|
* this feature and exchanges the data in little endian byte order.
|
||||||
|
*/
|
||||||
struct gs_device_config {
|
struct gs_device_config {
|
||||||
u8 reserved1;
|
u8 reserved1;
|
||||||
u8 reserved2;
|
u8 reserved2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user