From 0207e4272a9fc2ff85aaeb684b8a04521b99f4e5 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 22 Nov 2024 11:53:58 +0100 Subject: [PATCH] chore: fix packing on x86_64 --- include/usb_device_cdc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/usb_device_cdc.h b/include/usb_device_cdc.h index b6b8d5c..8d767f4 100644 --- a/include/usb_device_cdc.h +++ b/include/usb_device_cdc.h @@ -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, -- 2.48.1