summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-05 21:47:54 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-05 21:47:54 +0000
commitee1e8be37f38dde1e7a34935140f95f13b60685d (patch)
treeb3e7bb0759d4cabb2507d9656d5d653066b9c10f /bootloader
parente1aee318782d89e017e1241847706b21ea014974 (diff)
downloadrockbox-ee1e8be37f38dde1e7a34935140f95f13b60685d.tar.gz
rockbox-ee1e8be37f38dde1e7a34935140f95f13b60685d.tar.bz2
rockbox-ee1e8be37f38dde1e7a34935140f95f13b60685d.zip
Creative ZVM:
* Re-enable USB * Acknowledge EP0SETUP packets * Spin disk down when no files get loaded in the bootloader * Clean up/fix some other stuff git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19931 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/creativezvm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootloader/creativezvm.c b/bootloader/creativezvm.c
index 403a8bbdc4..b4c4f206d0 100644
--- a/bootloader/creativezvm.c
+++ b/bootloader/creativezvm.c
@@ -28,6 +28,7 @@
#include "backlight.h"
#include "button.h"
#include "common.h"
+#include "usb.h"
static void load_fw(unsigned char* ptr, unsigned int len)
@@ -57,6 +58,7 @@ void main(void)
lcd_init();
font_init();
button_init();
+ usb_init();
lcd_enable(true);
lcd_setfont(FONT_SYSFIXED);
@@ -67,7 +69,7 @@ void main(void)
ret = storage_init();
if(ret)
printf("ATA error: %d", ret);
-
+
/* If no button is held, start the OF */
if(button_read_device() == 0)
{
@@ -110,5 +112,7 @@ void main(void)
}
}
+ storage_sleepnow();
+
while(1);
}