diff options
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) | |||
52 | adc_init(); | 52 | adc_init(); |
53 | button_init(); | 53 | button_init(); |
54 | backlight_init(); | 54 | backlight_init(); |
55 | 55 | uartSetup(); | |
56 | lcd_init(); | 56 | lcd_init(); |
57 | font_init(); | 57 | font_init(); |
58 | 58 | ||
@@ -96,8 +96,20 @@ void main(void) | |||
96 | #endif | 96 | #endif |
97 | 97 | ||
98 | printf("ATA"); | 98 | printf("ATA"); |
99 | int count = 0, i = 0, c = 0; | ||
100 | char data[64]; | ||
99 | while(true) | 101 | while(true) |
100 | { | 102 | { |
103 | i = button_read_device(); | ||
104 | c++; | ||
105 | if (i) | ||
106 | { | ||
107 | c = 0; | ||
108 | __backlight_on(); | ||
109 | printf("button: %x", i); | ||
110 | } | ||
111 | else if (c>50) | ||
112 | __backlight_off(); | ||
101 | } | 113 | } |
102 | #if 0 | 114 | #if 0 |
103 | rc = ata_init(); | 115 | rc = ata_init(); |