summaryrefslogtreecommitdiffstats
path: root/bootloader/mrobe500.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2007-11-11 03:31:24 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2007-11-11 03:31:24 +0000
commit59a2862347873c2dfcc9cd47cc788dbfef27fcf8 (patch)
treee402597970dd734f14b778bd2780dbc42a70663a /bootloader/mrobe500.c
parent50a8308ded33e7ff7397f7117fe1e4f16920de3d (diff)
downloadrockbox-59a2862347873c2dfcc9cd47cc788dbfef27fcf8.tar.gz
rockbox-59a2862347873c2dfcc9cd47cc788dbfef27fcf8.tar.bz2
rockbox-59a2862347873c2dfcc9cd47cc788dbfef27fcf8.zip
Show some more registers in the debug screen, fix the touchscreen when SCREEN_ROTATE is set.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15566 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/mrobe500.c')
-rwxr-xr-xbootloader/mrobe500.c23
1 files changed, 7 insertions, 16 deletions
diff --git a/bootloader/mrobe500.c b/bootloader/mrobe500.c
index ede05aa25c..1dbe7b8edb 100755
--- a/bootloader/mrobe500.c
+++ b/bootloader/mrobe500.c
@@ -103,7 +103,7 @@ int brightness = 0;
void mrdebug(void)
{
- int button=0, *address=0x0;
+ int button=0;
#if 0
use_calibration(false);
touchpad_calibrate_screen();
@@ -123,19 +123,14 @@ void mrdebug(void)
printf("reset");
IO_GIO_BITSET1|=1<<10;
}
- if(button==BUTTON_RC_PLAY)
- address+=0x02;
- else if (button==BUTTON_RC_DOWN)
- address-=0x02;
- else if (button==BUTTON_RC_FF)
- address+=0x1000;
- else if (button==BUTTON_RC_REW)
- address-=0x1000;
- else if (button==BUTTON_RC_VOL_DOWN) {
+ if (button==BUTTON_RC_VOL_DOWN)
+ {
brightness = (brightness - 5) & 0x7f;
bl_command[2] = brightness;
spi_block_transfer(SPI_target_BACKLIGHT, bl_command, 4, 0, 0);
- } else if (button==BUTTON_RC_VOL_UP) {
+ }
+ else if (button==BUTTON_RC_VOL_UP)
+ {
brightness = (brightness + 5) & 0x7f;
bl_command[2] = brightness;
spi_block_transfer(SPI_target_BACKLIGHT, bl_command, 4, 0, 0);
@@ -145,14 +140,10 @@ void mrdebug(void)
// tsc2100_read_values(&x, &y, &z1, &z2);
// printf("x: %04x y: %04x z1: %04x z2: %04x", x, y, z1, z2);
// printf("tsadc: %4x", tsc2100_readreg(TSADC_PAGE, TSADC_ADDRESS)&0xffff);
- printf("current tick: %04x", current_tick);
- printf("Address: 0x%08x Data: 0x%08x", address, *address);
- printf("Address: 0x%08x Data: 0x%08x", address+1, *(address+1));
- printf("Address: 0x%08x Data: 0x%08x", address+2, *(address+2));
// // tsc2100_keyclick(); /* doesnt work :( */
// line -= 6;
// }
-#if 0
+#if 1
if (button&BUTTON_TOUCHPAD)
{
if (button&BUTTON_REL)