summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-08-20 10:18:47 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-08-20 10:18:47 +0000
commit9272dfd34c71fc8c0eeef2afc8405a595f660c39 (patch)
tree09cacf70726bff82d5049a976a9414da3e59ab44 /bootloader
parent6e0e0f9b72cba07513ff44cc2707628e2dc8c064 (diff)
downloadrockbox-9272dfd34c71fc8c0eeef2afc8405a595f660c39.tar.gz
rockbox-9272dfd34c71fc8c0eeef2afc8405a595f660c39.tar.bz2
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.c22
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)
);
*/
- 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