update hid host to use new control xfer for set config

This commit is contained in:
hathach
2022-03-16 15:12:59 +07:00
parent fd2ea2605e
commit 98d4ed0584
3 changed files with 108 additions and 115 deletions

View File

@@ -1297,12 +1297,10 @@ static bool enum_new_device(hcd_event_t* event)
_dev0.speed = hcd_port_speed_get(_dev0.rhport );
TU_LOG2("%s Speed\r\n", tu_str_speed[_dev0.speed]);
//enum_request_addr0_device_desc();
tuh_control_xfer_t const xfer =
{
.complete_cb = process_enumeration,
.user_arg = ENUM_ADDR0_DEVICE_DESC
};
// start the enumeration process
tuh_control_xfer_t xfer;
xfer.user_arg = ENUM_ADDR0_DEVICE_DESC;
process_enumeration(0, &xfer, XFER_RESULT_SUCCESS);
}