summaryrefslogtreecommitdiffstats
path: root/bootloader/mrobe500.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-09-20 09:08:40 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-09-20 09:08:40 +0000
commit300f64c99a28bf76dfc23b8730f4ef2749a61140 (patch)
treea80a47fd676675e38d6073f6630c8e2ede87d85d /bootloader/mrobe500.c
parent140828563645d983ce8e5148dc571e946971ff86 (diff)
downloadrockbox-300f64c99a28bf76dfc23b8730f4ef2749a61140.tar.gz
rockbox-300f64c99a28bf76dfc23b8730f4ef2749a61140.tar.bz2
rockbox-300f64c99a28bf76dfc23b8730f4ef2749a61140.zip
uart driver (which the buttons need) and button test code in the bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14768 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/mrobe500.c')
-rwxr-xr-xbootloader/mrobe500.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/bootloader/mrobe500.c b/bootloader/mrobe500.c
index 02726dde5a..fd2587eda2 100755
--- a/bootloader/mrobe500.c
+++ b/bootloader/mrobe500.c
@@ -52,7 +52,7 @@ void main(void)
adc_init();
button_init();
backlight_init();
-
+ uartSetup();
lcd_init();
font_init();
@@ -96,8 +96,20 @@ void main(void)
#endif
printf("ATA");
+ int count = 0, i = 0, c = 0;
+ char data[64];
while(true)
{
+ i = button_read_device();
+ c++;
+ if (i)
+ {
+ c = 0;
+ __backlight_on();
+ printf("button: %x", i);
+ }
+ else if (c>50)
+ __backlight_off();
}
#if 0
rc = ata_init();