diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-08-20 10:18:47 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-08-20 10:18:47 +0000 |
commit | 9272dfd34c71fc8c0eeef2afc8405a595f660c39 (patch) | |
tree | 09cacf70726bff82d5049a976a9414da3e59ab44 /bootloader | |
parent | 6e0e0f9b72cba07513ff44cc2707628e2dc8c064 (diff) | |
download | rockbox-9272dfd34c71fc8c0eeef2afc8405a595f660c39.tar.gz rockbox-9272dfd34c71fc8c0eeef2afc8405a595f660c39.zip |
Functional, but minimal LCD driver for H10.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10663 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r-- | bootloader/h10.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/bootloader/h10.c b/bootloader/h10.c index d7942c9583..86d3c33a17 100644 --- a/bootloader/h10.c +++ b/bootloader/h10.c | |||
@@ -115,15 +115,19 @@ void main(void) | |||
115 | ); | 115 | ); |
116 | */ | 116 | */ |
117 | 117 | ||
118 | int i; | 118 | /*int i; |
119 | int rc; | 119 | int rc; |
120 | int btn; | 120 | int btn; |
121 | int fd; | 121 | int fd;*/ |
122 | char buffer[24]; | 122 | char buffer[24]; |
123 | |||
124 | snprintf(buffer, 24, "Hello World"); | ||
125 | lcd_puts(0, 0, buffer); | ||
126 | lcd_update(); | ||
123 | 127 | ||
124 | i=ata_init(); | 128 | /*i=ata_init(); |
125 | disk_init(); | 129 | disk_init(); |
126 | rc = disk_mount_all(); | 130 | rc = disk_mount_all();*/ |
127 | 131 | ||
128 | /* Load original iriver firmware. Uses load_iriver(buf) to load the | 132 | /* Load original iriver firmware. Uses load_iriver(buf) to load the |
129 | decrypted mi4 file from disk to DRAM. This then copies that part of DRAM | 133 | decrypted mi4 file from disk to DRAM. This then copies that part of DRAM |
@@ -139,7 +143,7 @@ void main(void) | |||
139 | 143 | ||
140 | 144 | ||
141 | /* This assumes that /test.txt exists */ | 145 | /* This assumes that /test.txt exists */ |
142 | fd=open("/test.txt",O_RDWR); | 146 | /*fd=open("/test.txt",O_RDWR);*/ |
143 | 147 | ||
144 | 148 | ||
145 | /* | 149 | /* |
@@ -223,16 +227,16 @@ void main(void) | |||
223 | 227 | ||
224 | 228 | ||
225 | /* Apparently necessary for the data to be actually written to file */ | 229 | /* Apparently necessary for the data to be actually written to file */ |
226 | fsync(fd); | 230 | /*fsync(fd); |
227 | udelay(1000000); | 231 | udelay(1000000);*/ |
228 | 232 | ||
229 | /* This causes the device to shut off instantly | 233 | /* This causes the device to shut off instantly |
230 | 234 | ||
231 | GPIOF_OUTPUT_VAL = 0; | 235 | GPIOF_OUTPUT_VAL = 0; |
232 | */ | 236 | */ |
233 | 237 | ||
234 | close(fd); | 238 | /*close(fd);*/ |
235 | udelay(1000000); | 239 | udelay(100000000); |
236 | } | 240 | } |
237 | 241 | ||
238 | /* These functions are present in the firmware library, but we reimplement | 242 | /* These functions are present in the firmware library, but we reimplement |