diff options
Diffstat (limited to 'bootloader/mrobe500.c')
-rwxr-xr-x | bootloader/mrobe500.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bootloader/mrobe500.c b/bootloader/mrobe500.c index 86415cb560..ce1aa57224 100755 --- a/bootloader/mrobe500.c +++ b/bootloader/mrobe500.c | |||
@@ -58,7 +58,7 @@ void main(void) | |||
58 | adc_init(); | 58 | adc_init(); |
59 | button_init(); | 59 | button_init(); |
60 | backlight_init(); | 60 | backlight_init(); |
61 | uartSetup(); | 61 | uart_init(); |
62 | 62 | ||
63 | font_init(); | 63 | font_init(); |
64 | spi_init(); | 64 | spi_init(); |
@@ -104,6 +104,8 @@ void main(void) | |||
104 | while(true) | 104 | while(true) |
105 | { | 105 | { |
106 | button = button_read_device(); | 106 | button = button_read_device(); |
107 | if (button) | ||
108 | printf("btn: %x", button); | ||
107 | if (button == BUTTON_POWER) | 109 | if (button == BUTTON_POWER) |
108 | { | 110 | { |
109 | printf("reset"); | 111 | printf("reset"); |
@@ -121,6 +123,7 @@ void main(void) | |||
121 | // if ((IO_GIO_BITSET0&(1<<14) == 0) | 123 | // if ((IO_GIO_BITSET0&(1<<14) == 0) |
122 | { | 124 | { |
123 | short x,y,z1,z2, reg; | 125 | short x,y,z1,z2, reg; |
126 | extern int uart1count; | ||
124 | tsc2100_read_values(&x, &y, &z1, &z2); | 127 | tsc2100_read_values(&x, &y, &z1, &z2); |
125 | printf("x: %04x y: %04x z1: %04x z2: %04x", x, y, z1, z2); | 128 | printf("x: %04x y: %04x z1: %04x z2: %04x", x, y, z1, z2); |
126 | printf("tsadc: %4x", tsc2100_readreg(TSADC_PAGE, TSADC_ADDRESS)&0xffff); | 129 | printf("tsadc: %4x", tsc2100_readreg(TSADC_PAGE, TSADC_ADDRESS)&0xffff); |
@@ -128,8 +131,10 @@ void main(void) | |||
128 | printf("Address: 0x%08x Data: 0x%08x", address, *address); | 131 | printf("Address: 0x%08x Data: 0x%08x", address, *address); |
129 | printf("Address: 0x%08x Data: 0x%08x", address+1, *(address+1)); | 132 | printf("Address: 0x%08x Data: 0x%08x", address+1, *(address+1)); |
130 | printf("Address: 0x%08x Data: 0x%08x", address+2, *(address+2)); | 133 | printf("Address: 0x%08x Data: 0x%08x", address+2, *(address+2)); |
134 | printf("uart1count: %d", uart1count); | ||
135 | printf("%x %x", IO_UART1_RFCR & 0x3f, IO_UART1_DTRR & 0xff); | ||
131 | tsc2100_keyclick(); /* doesnt work :( */ | 136 | tsc2100_keyclick(); /* doesnt work :( */ |
132 | line -= 6; | 137 | line -= 8; |
133 | } | 138 | } |
134 | } | 139 | } |
135 | #endif | 140 | #endif |