summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-06-18 13:30:25 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-06-18 13:30:25 +0000
commitf9b0f81d63cc7bf2ab17ca401c15fe64f57f157c (patch)
tree399c0a41c330a2a587f0a644177a41c0e5ff41b4 /bootloader
parentbfd8d023db7b6be9dff11a781372c382a27e053b (diff)
downloadrockbox-f9b0f81d63cc7bf2ab17ca401c15fe64f57f157c.tar.gz
rockbox-f9b0f81d63cc7bf2ab17ca401c15fe64f57f157c.tar.bz2
rockbox-f9b0f81d63cc7bf2ab17ca401c15fe64f57f157c.zip
Sansa AMS: fix bootloader USB mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26914 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/sansa_as3525.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c
index e63bb2c749..9906991bb4 100644
--- a/bootloader/sansa_as3525.c
+++ b/bootloader/sansa_as3525.c
@@ -29,7 +29,6 @@
#include "lcd.h"
#ifdef USE_ROCKBOX_USB
#include "usb.h"
-#include "usb_core.h"
#include "sysfont.h"
#endif /* USE_ROCKBOX_USB */
#include "backlight.h"
@@ -89,6 +88,7 @@ void main(void)
#ifdef USE_ROCKBOX_USB
usb_init();
+ usb_start_monitoring();
if(usb_detect() == USB_INSERTED)
{
const char msg[] = "Bootloader USB mode";
@@ -97,14 +97,9 @@ void main(void)
(LCD_HEIGHT - SYSFONT_HEIGHT) / 2, msg);
lcd_update();
- usb_core_enable_driver(USB_DRIVER_MASS_STORAGE, true);
- usb_enable(true);
-
while(usb_detect() == USB_INSERTED)
sleep(HZ);
- usb_enable(false);
-
reset_screen();
lcd_update();
}