This commit is contained in:
hathach 2020-11-20 15:32:16 +07:00
parent e2abb089f4
commit 8813f9d3b8
2 changed files with 76 additions and 73 deletions

View File

@ -375,6 +375,9 @@ uint16_t midid_open(uint8_t rhport, tusb_desc_interface_t const * desc_itf, uint
return drv_len;
}
// Invoked when a control transfer occurred on an interface of this class
// Driver response accordingly to the request and the transfer stage (setup/data/ack)
// return false to stall control endpoint (e.g unsupported request)
bool midid_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request)
{
(void) rhport;

View File

@ -127,8 +127,8 @@ static usbd_class_driver_t const _usbd_driver[] =
},
#endif
#if CFG_TUD_AUDIO
{
#if CFG_TUD_AUDIO
{
DRIVER_NAME("AUDIO")
.init = audiod_init,
.reset = audiod_reset,
@ -137,8 +137,8 @@ static usbd_class_driver_t const _usbd_driver[] =
.control_complete = audiod_control_complete,
.xfer_cb = audiod_xfer_cb,
.sof = NULL
},
#endif
},
#endif
#if CFG_TUD_MIDI
{