From 9272dfd34c71fc8c0eeef2afc8405a595f660c39 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Sun, 20 Aug 2006 10:18:47 +0000 Subject: Functional, but minimal LCD driver for H10. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10663 a1c6a512-1295-4272-9138-f99709370657 --- bootloader/h10.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'bootloader/h10.c') 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 -- cgit v1.2.3