mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Move AMSv1 (AMSv2 had been done already) to using setup packet request to detect a host.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30547 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
207131c53b
commit
82259b7af5
3 changed files with 14 additions and 51 deletions
|
|
@ -76,7 +76,8 @@ static inline void usb_disable_pll(void)
|
|||
|
||||
void usb_attach(void)
|
||||
{
|
||||
usb_enable(true);
|
||||
logf("usb-drv: attach");
|
||||
/* Nothing to do */
|
||||
}
|
||||
|
||||
static void usb_tick(void);
|
||||
|
|
@ -768,7 +769,6 @@ void INT_USB(void)
|
|||
}
|
||||
if (intr & USB_DEV_INTR_USB_RESET) {/* usb reset from host? */
|
||||
logf("usb reset\n");
|
||||
usb_drv_usb_detect_event();
|
||||
reset_endpoints(1);
|
||||
usb_core_bus_reset();
|
||||
intr &= ~USB_DEV_INTR_USB_RESET;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue