mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
usb: introduce new control request API
Change-Id: I6545d8985ab683c026f28f6a7c0e23b40d0a6506
This commit is contained in:
parent
71cc1e78fd
commit
ec164c389c
15 changed files with 168 additions and 14 deletions
|
|
@ -655,7 +655,7 @@ static void handle_out_ep(int ep)
|
|||
req->wIndex,
|
||||
req->wLength);
|
||||
|
||||
usb_core_control_request(&req_copy);
|
||||
usb_core_legacy_control_request(&req_copy);
|
||||
setup_desc_init(setup_desc);
|
||||
|
||||
ep_sts &= ~USB_EP_STAT_SETUP_RCVD;
|
||||
|
|
@ -760,7 +760,7 @@ void INT_USB_FUNC(void)
|
|||
got_set_configuration = 1;
|
||||
|
||||
set_config.wValue = USB_DEV_STS & USB_DEV_STS_MASK_CFG;
|
||||
usb_core_control_request(&set_config);
|
||||
usb_core_legacy_control_request(&set_config);
|
||||
intr &= ~USB_DEV_INTR_SET_CONFIG;
|
||||
}
|
||||
if (intr & USB_DEV_INTR_EARLY_SUSPEND) {/* idle >3ms detected */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue