git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14622 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Christian Gmeiner 2007-09-05 16:16:49 +00:00
parent 1a8f7c51b3
commit 2c30bd9245

View file

@ -92,7 +92,9 @@ void usb_init_device(void)
void usb_enable(bool on) void usb_enable(bool on)
{ {
#ifdef HAVE_USBSTACK #ifdef HAVE_USBSTACK
(void)on; if (!on) {
usb_stack_stop();
}
#else #else
/* This device specific code will eventually give way to proper USB /* This device specific code will eventually give way to proper USB
handling, which should be the same for all PP502x targets. */ handling, which should be the same for all PP502x targets. */
@ -149,8 +151,6 @@ int usb_detect(void)
status = usbstatus2 ? USB_INSERTED : USB_POWERED; status = usbstatus2 ? USB_INSERTED : USB_POWERED;
#ifndef HAVE_USBSTACK #ifndef HAVE_USBSTACK
dr_controller_stop(); dr_controller_stop();
#else
usb_stack_stop();
#endif #endif
} }
return status; return status;