mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-17 17:12:39 -05:00
get experimental usb stack compiling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14613 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4f7097a1fd
commit
e267bc722d
1 changed files with 4 additions and 0 deletions
|
|
@ -147,7 +147,9 @@ int usb_detect(void)
|
||||||
{
|
{
|
||||||
countdown = 0;
|
countdown = 0;
|
||||||
status = usbstatus2 ? USB_INSERTED : USB_POWERED;
|
status = usbstatus2 ? USB_INSERTED : USB_POWERED;
|
||||||
|
#ifndef HAVE_USBSTACK
|
||||||
dr_controller_stop();
|
dr_controller_stop();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_USBSTACK
|
#ifdef HAVE_USBSTACK
|
||||||
/* TODO: Move this call - it shouldn't be done in this function */
|
/* TODO: Move this call - it shouldn't be done in this function */
|
||||||
|
|
@ -206,7 +208,9 @@ int usb_detect(void)
|
||||||
/* Run the USB controller for long enough to detect if we're connected
|
/* Run the USB controller for long enough to detect if we're connected
|
||||||
to a computer, then stop it again. */
|
to a computer, then stop it again. */
|
||||||
|
|
||||||
|
#ifndef HAVE_USBSTACK
|
||||||
dr_controller_run();
|
dr_controller_run();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Wait for 50 ticks (500ms) before deciding there is no computer
|
/* Wait for 50 ticks (500ms) before deciding there is no computer
|
||||||
attached. The required value varied a lot between different users
|
attached. The required value varied a lot between different users
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue