summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-09-16 23:52:22 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-09-17 00:04:32 +0200
commit546d229ae4147c653135bc1775e44476ea83bc46 (patch)
tree56cf740c5020392c6b265b87c94c96a985187a01
parent064fa902c56f7cb421fa8071e58096248ea9c5ae (diff)
downloadrockbox-546d229ae4147c653135bc1775e44476ea83bc46.tar.gz
rockbox-546d229ae4147c653135bc1775e44476ea83bc46.zip
imx233: make debug usable with a touchscreen
Change-Id: I08a3302024646c0d915aa34855970678730eb44c
-rw-r--r--firmware/target/arm/imx233/debug-imx233.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c
index a3bcd1c1f2..f65d881ea3 100644
--- a/firmware/target/arm/imx233/debug-imx233.c
+++ b/firmware/target/arm/imx233/debug-imx233.c
@@ -1091,6 +1091,7 @@ bool dbg_hw_info_button(void)
int vddio_val = orig_vddio_val;
int vddio_brownout = orig_vddio_brownout;
#endif
+ touchscreen_set_mode(TOUCHSCREEN_POINT);
while(1)
{
@@ -1114,12 +1115,14 @@ bool dbg_hw_info_button(void)
imx233_power_set_regulator(REGULATOR_VDDIO, orig_vddio_val, orig_vddio_brownout);
#endif
lcd_setfont(FONT_UI);
+ touchscreen_set_mode(TOUCHSCREEN_BUTTON);
return true;
case ACT_CANCEL:
#if IMX233_SUBTARGET >= 3700
imx233_power_set_regulator(REGULATOR_VDDIO, orig_vddio_val, orig_vddio_brownout);
#endif
lcd_setfont(FONT_UI);
+ touchscreen_set_mode(TOUCHSCREEN_BUTTON);
return false;
}
@@ -1480,6 +1483,8 @@ bool dbg_hw_info(void)
int len = ARRAYLEN(debug_screens);
int top_visible = 0;
int highlight = 0;
+ enum touchscreen_mode old_mode = touchscreen_get_mode();
+ touchscreen_set_mode(TOUCHSCREEN_BUTTON);
while(1)
{
int button = my_get_action(HZ / 10);
@@ -1498,6 +1503,7 @@ bool dbg_hw_info(void)
lcd_setfont(FONT_UI);
break;
case ACT_CANCEL:
+ touchscreen_set_mode(old_mode);
return false;
}
// adjust top visible if needed
@@ -1528,6 +1534,7 @@ bool dbg_hw_info(void)
lcd_update();
yield();
}
+ touchscreen_set_mode(old_mode);
return false;
}