adding descriptor, structure, enum support for cdc

This commit is contained in:
hathach
2013-06-29 15:56:32 +07:00
parent a07ff5a3ce
commit d4f31e149a
2 changed files with 251 additions and 54 deletions

View File

@@ -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 */