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.zip rockbox-9272dfd34c71fc8c0eeef2afc8405a595f660c39.tar.gz rockbox-9272dfd34c71fc8c0eeef2afc8405a595f660c39.tar.bz2 rockbox-9272dfd34c71fc8c0eeef2afc8405a595f660c39.tar.xz | |
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 d7942c9..86d3c33 100644 --- a/bootloader/h10.c +++ b/bootloader/h10.c @@ -115,15 +115,19 @@ void main(void) ); */ - int i; + /*int i; int rc; int btn; - int fd; + int fd;*/ char buffer[24]; + + snprintf(buffer, 24, "Hello World"); + lcd_puts(0, 0, buffer); + lcd_update(); - i=ata_init(); + /*i=ata_init(); disk_init(); - rc = disk_mount_all(); + rc = disk_mount_all();*/ /* Load original iriver firmware. Uses load_iriver(buf) to load the decrypted mi4 file from disk to DRAM. This then copies that part of DRAM @@ -139,7 +143,7 @@ void main(void) /* This assumes that /test.txt exists */ - fd=open("/test.txt",O_RDWR); + /*fd=open("/test.txt",O_RDWR);*/ /* @@ -223,16 +227,16 @@ void main(void) /* Apparently necessary for the data to be actually written to file */ - fsync(fd); - udelay(1000000); + /*fsync(fd); + udelay(1000000);*/ /* This causes the device to shut off instantly GPIOF_OUTPUT_VAL = 0; */ - close(fd); - udelay(1000000); + /*close(fd);*/ + udelay(100000000); } /* These functions are present in the firmware library, but we reimplement |