summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2007-11-22 22:17:45 +0000
committerBjörn Stenberg <bjorn@haxx.se>2007-11-22 22:17:45 +0000
commit7af22e1a86a60da44356942fc403e87cca0977f3 (patch)
tree6171e8c288a1456e128474101ba83aeb65da3e42 /bootloader
parentf2815ff32f43fa682e9d577057d6b92e032757b3 (diff)
downloadrockbox-7af22e1a86a60da44356942fc403e87cca0977f3.tar.gz
rockbox-7af22e1a86a60da44356942fc403e87cca0977f3.tar.bz2
rockbox-7af22e1a86a60da44356942fc403e87cca0977f3.zip
Red fix: USB power check implemented in driver instead
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15761 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/main-pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootloader/main-pp.c b/bootloader/main-pp.c
index c2d0b8038d..3cf7691870 100644
--- a/bootloader/main-pp.c
+++ b/bootloader/main-pp.c
@@ -40,7 +40,7 @@
#endif
#if defined(SANSA_E200) || defined(SANSA_C200)
#include "usb.h"
-#include "arcotg_udc.h"
+#include "usb_drv.h"
#endif
@@ -460,7 +460,7 @@ void* main(void)
btn = button_read_device();
#if defined(SANSA_E200) || defined(SANSA_C200)
usb_init();
- while ((UDC_OTGSC&0x800) && usb_retry < 5 && !usb)
+ while (usb_drv_powered() && usb_retry < 5 && !usb)
{
usb_retry++;
sleep(HZ/4);