summaryrefslogtreecommitdiffstats
path: root/bootloader/mrobe500.c
diff options
context:
space:
mode:
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();