diff options
| author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-09-04 23:29:42 +0000 |
|---|---|---|
| committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-09-04 23:29:42 +0000 |
| commit | e267bc722d29c7e370d44d130bf5250ec1593f53 (patch) | |
| tree | f6fe26e7f83490a2a38566718023e8495fe8e9d3 | |
| parent | 4f7097a1fdee2bf3a98ea034130979fd1c5df553 (diff) | |
| download | rockbox-e267bc722d29c7e370d44d130bf5250ec1593f53.zip rockbox-e267bc722d29c7e370d44d130bf5250ec1593f53.tar.gz rockbox-e267bc722d29c7e370d44d130bf5250ec1593f53.tar.bz2 rockbox-e267bc722d29c7e370d44d130bf5250ec1593f53.tar.xz | |
get experimental usb stack compiling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14613 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/target/arm/usb-fw-pp502x.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c index ad2a105..0d162b4 100644 --- a/firmware/target/arm/usb-fw-pp502x.c +++ b/firmware/target/arm/usb-fw-pp502x.c @@ -147,7 +147,9 @@ int usb_detect(void) { countdown = 0; status = usbstatus2 ? USB_INSERTED : USB_POWERED; +#ifndef HAVE_USBSTACK dr_controller_stop(); +#endif #ifdef HAVE_USBSTACK /* 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 to a computer, then stop it again. */ +#ifndef HAVE_USBSTACK dr_controller_run(); +#endif /* Wait for 50 ticks (500ms) before deciding there is no computer attached. The required value varied a lot between different users |