mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Reorganise USB initialisation to not depend on a specific enumeration sequence, by Bartosz Fabianowski, with minor tweaks by Michael Sevakis (FS#12497)
FreeBSD apparently sends a SET_ADDRESS first, which confused our code. This patch fixes that, and also simplifies the connection handling a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31582 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fd5524ff92
commit
4fcffcbdf3
10 changed files with 86 additions and 133 deletions
|
|
@ -145,13 +145,6 @@ void usb_drv_int_enable(bool enable)
|
|||
}
|
||||
}
|
||||
|
||||
/* Called during the setup packet request by the host */
|
||||
void usb_drv_usb_detect_event(void)
|
||||
{
|
||||
if (usb_drv_powered())
|
||||
usb_status_event(USB_HOSTED);
|
||||
}
|
||||
|
||||
/* Called when reading the MBR */
|
||||
void usb_fix_mbr(unsigned char *mbr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue