mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08: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,
|
||||
.bInterfaceSubClass = CDC_COMM_SUBCLASS_ABSTRACT_CONTROL_MODEL,
|
||||
.bInterfaceProtocol = CDC_COMM_PROTOCOL_ATCOMMAND,
|
||||
.iInterface = 0x04
|
||||
.iInterface = 4
|
||||
},
|
||||
|
||||
.header =
|
||||
@ -352,7 +352,7 @@ desc_auto_cfg_t const _desc_auto_config_struct =
|
||||
.bInterfaceClass = TUSB_CLASS_MSC,
|
||||
.bInterfaceSubClass = MSC_SUBCLASS_SCSI,
|
||||
.bInterfaceProtocol = MSC_PROTOCOL_BOT,
|
||||
.iInterface = 0 // ITF_NUM_MSC + 3
|
||||
.iInterface = 4 + CFG_TUD_CDC
|
||||
},
|
||||
|
||||
.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 );\
|
||||
}\
|
||||
/* 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);\
|
||||
}while(0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user