summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c')
-rw-r--r--firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c b/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c
index 74b8d649b3..4f2a2775bf 100644
--- a/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c
+++ b/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c
@@ -66,7 +66,7 @@ void button_init_device(void)
bottomright.px_x = LCD_WIDTH;
bottomright.px_y = LCD_HEIGHT;
-
+
imx233_touchscreen_init();
imx233_touchscreen_enable(true);
@@ -104,6 +104,11 @@ static int touch_to_pixels(int *val_x, int *val_y)
return (x<<16)|y;
}
+void touchscreen_enable_device(bool en)
+{
+ imx233_touchscreen_enable(en);
+}
+
static int touchscreen_read_device(int *data)
{
int x, y;