forked from len0rd/rockbox
reorganise the USB stack a bit to allow for easier integration of non-ARC controller drivers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18703 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6219f4c862
commit
478fc5baed
12 changed files with 185 additions and 99 deletions
|
|
@ -48,11 +48,12 @@ static struct usb_interface_descriptor __attribute__((aligned(2)))
|
|||
|
||||
static int usb_interface;
|
||||
|
||||
int usb_charging_only_set_first_endpoint(int endpoint)
|
||||
int usb_charging_only_request_endpoints(struct usb_class_driver *drv)
|
||||
{
|
||||
/* The dummy charging_only driver doesn't need an endpoint pair */
|
||||
return endpoint;
|
||||
(void) drv;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int usb_charging_only_set_first_interface(int interface)
|
||||
{
|
||||
usb_interface = interface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue