diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-02-05 21:47:54 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-02-05 21:47:54 +0000 |
commit | ee1e8be37f38dde1e7a34935140f95f13b60685d (patch) | |
tree | b3e7bb0759d4cabb2507d9656d5d653066b9c10f /bootloader | |
parent | e1aee318782d89e017e1241847706b21ea014974 (diff) | |
download | rockbox-ee1e8be37f38dde1e7a34935140f95f13b60685d.tar.gz 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.c | 6 |
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 @@ | |||
28 | #include "backlight.h" | 28 | #include "backlight.h" |
29 | #include "button.h" | 29 | #include "button.h" |
30 | #include "common.h" | 30 | #include "common.h" |
31 | #include "usb.h" | ||
31 | 32 | ||
32 | 33 | ||
33 | static void load_fw(unsigned char* ptr, unsigned int len) | 34 | static void load_fw(unsigned char* ptr, unsigned int len) |
@@ -57,6 +58,7 @@ void main(void) | |||
57 | lcd_init(); | 58 | lcd_init(); |
58 | font_init(); | 59 | font_init(); |
59 | button_init(); | 60 | button_init(); |
61 | usb_init(); | ||
60 | 62 | ||
61 | lcd_enable(true); | 63 | lcd_enable(true); |
62 | lcd_setfont(FONT_SYSFIXED); | 64 | lcd_setfont(FONT_SYSFIXED); |
@@ -67,7 +69,7 @@ void main(void) | |||
67 | ret = storage_init(); | 69 | ret = storage_init(); |
68 | if(ret) | 70 | if(ret) |
69 | printf("ATA error: %d", ret); | 71 | printf("ATA error: %d", ret); |
70 | 72 | ||
71 | /* If no button is held, start the OF */ | 73 | /* If no button is held, start the OF */ |
72 | if(button_read_device() == 0) | 74 | if(button_read_device() == 0) |
73 | { | 75 | { |
@@ -110,5 +112,7 @@ void main(void) | |||
110 | } | 112 | } |
111 | } | 113 | } |
112 | 114 | ||
115 | storage_sleepnow(); | ||
116 | |||
113 | while(1); | 117 | while(1); |
114 | } | 118 | } |