diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-09-20 09:08:40 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-09-20 09:08:40 +0000 |
commit | 300f64c99a28bf76dfc23b8730f4ef2749a61140 (patch) | |
tree | a80a47fd676675e38d6073f6630c8e2ede87d85d /bootloader | |
parent | 140828563645d983ce8e5148dc571e946971ff86 (diff) |
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')
-rwxr-xr-x | bootloader/mrobe500.c | 14 |
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();
|