From d4f31e149accff338592f2172a0cccc8372c837a Mon Sep 17 00:00:00 2001 From: hathach Date: Sat, 29 Jun 2013 15:56:32 +0700 Subject: adding descriptor, structure, enum support for cdc --- tinyusb/core/std_request.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tinyusb/core') diff --git a/tinyusb/core/std_request.h b/tinyusb/core/std_request.h index 15b34e66a..041adb7c8 100644 --- a/tinyusb/core/std_request.h +++ b/tinyusb/core/std_request.h @@ -56,8 +56,8 @@ extern "C" { #endif -typedef ATTR_PREPACKED struct ATTR_PACKED { - ATTR_PREPACKED struct ATTR_PACKED { +typedef ATTR_PACKED_STRUCT(struct){ + ATTR_PACKED_STRUCT(struct) { uint8_t recipient : 5; /**< Recipient type tusb_std_request_recipient_t. */ uint8_t type : 2; /**< Request type tusb_std_request_type_t. */ uint8_t direction : 1; /**< Direction type. tusb_direction_t */ -- cgit v1.3.1