From ee1e8be37f38dde1e7a34935140f95f13b60685d Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Thu, 5 Feb 2009 21:47:54 +0000 Subject: 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 --- bootloader/creativezvm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bootloader/creativezvm.c') 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); } -- cgit v1.2.3