~ruther/stm32h747i-disco-usb-image-viewer

0207e4272a9fc2ff85aaeb684b8a04521b99f4e5 — Rutherther 4 months ago 8776612
chore: fix packing on x86_64
1 files changed, 3 insertions(+), 3 deletions(-)

M include/usb_device_cdc.h
M include/usb_device_cdc.h => include/usb_device_cdc.h +3 -3
@@ 18,7 18,7 @@
 */
extern usb_class_vtable_t USB_CLASS_CDC_ACM;

typedef enum {
typedef enum __attribute__((packed)) {
  SEND_ENCAPSULATED_COMMAND = 0,
  GET_ENCAPSULATED_RESPONSE = 1,
  /* SET_COMM_FEATURE = 2, */


@@ 34,12 34,12 @@ typedef enum {
  /* GET_LINE_CODING = 0x21, */
} usb_cdc_request_code_type_t;

typedef enum {
typedef enum __attribute__((packed)) {
  CS_INTERFACE = 0x24,
  CS_ENDPOINT = 0x25
} usb_cdc_functional_descriptor_type_t;

typedef enum {
typedef enum __attribute__((packed)) {
  HEADER_FUNCTIONAL_DESCRIPTOR_FUNCTIONAL_DESCRIPTOR = 0x00,
  CALL_MANAGEMENT_FUNCTIONAL_FUNCTIONAL_DESCRIPTOR = 0x01,
  ABSTRACT_CONTROL_MANAGEMENT_FUNCTIONAL_DESCRIPTOR = 0x02,

Do not follow this link