mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-22 14:42:25 +00:00
clean up usbd auto desc
This commit is contained in:
parent
40de723d41
commit
15cd30629a
@ -254,7 +254,7 @@ desc_auto_cfg_t const _desc_auto_config_struct =
|
|||||||
.bInterfaceClass = TUSB_CLASS_CDC,
|
.bInterfaceClass = TUSB_CLASS_CDC,
|
||||||
.bInterfaceSubClass = CDC_COMM_SUBCLASS_ABSTRACT_CONTROL_MODEL,
|
.bInterfaceSubClass = CDC_COMM_SUBCLASS_ABSTRACT_CONTROL_MODEL,
|
||||||
.bInterfaceProtocol = CDC_COMM_PROTOCOL_ATCOMMAND,
|
.bInterfaceProtocol = CDC_COMM_PROTOCOL_ATCOMMAND,
|
||||||
.iInterface = 0x04
|
.iInterface = 4
|
||||||
},
|
},
|
||||||
|
|
||||||
.header =
|
.header =
|
||||||
@ -352,7 +352,7 @@ desc_auto_cfg_t const _desc_auto_config_struct =
|
|||||||
.bInterfaceClass = TUSB_CLASS_MSC,
|
.bInterfaceClass = TUSB_CLASS_MSC,
|
||||||
.bInterfaceSubClass = MSC_SUBCLASS_SCSI,
|
.bInterfaceSubClass = MSC_SUBCLASS_SCSI,
|
||||||
.bInterfaceProtocol = MSC_PROTOCOL_BOT,
|
.bInterfaceProtocol = MSC_PROTOCOL_BOT,
|
||||||
.iInterface = 0 // ITF_NUM_MSC + 3
|
.iInterface = 4 + CFG_TUD_CDC
|
||||||
},
|
},
|
||||||
|
|
||||||
.ep_out =
|
.ep_out =
|
||||||
|
@ -68,7 +68,6 @@ tusb_error_t usbd_open_edpt_pair(uint8_t rhport, tusb_desc_endpoint_t const* p_d
|
|||||||
STASK_ASSERT_ERR( err );\
|
STASK_ASSERT_ERR( err );\
|
||||||
}\
|
}\
|
||||||
/* No need to wait for status to complete therefore */ \
|
/* No need to wait for status to complete therefore */ \
|
||||||
/* status phase must not call dcd_control_complete/dcd_xfer_complete*/ \
|
|
||||||
dcd_control_status(_rhport, _dir);\
|
dcd_control_status(_rhport, _dir);\
|
||||||
}while(0)
|
}while(0)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user