summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/touchscreen-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 13:42:49 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 16:10:52 +0200
commit85d5c19347c1665b765708cdb67f1d996c7f7fa4 (patch)
tree14cc20dbd694e408ece18c7d9788c2a74cef042e /firmware/target/arm/imx233/touchscreen-imx233.h
parent247e611f4945d048f280471d78b7b83a96b35454 (diff)
downloadrockbox-85d5c19347c1665b765708cdb67f1d996c7f7fa4.tar.gz
rockbox-85d5c19347c1665b765708cdb67f1d996c7f7fa4.tar.bz2
rockbox-85d5c19347c1665b765708cdb67f1d996c7f7fa4.zip
imx233: add touchscreen driver
Change-Id: I406076d110e33cdae871222191d82262fabcf16a
Diffstat (limited to 'firmware/target/arm/imx233/touchscreen-imx233.h')
-rw-r--r--firmware/target/arm/imx233/touchscreen-imx233.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/touchscreen-imx233.h b/firmware/target/arm/imx233/touchscreen-imx233.h
new file mode 100644
index 0000000000..7933b9063a
--- /dev/null
+++ b/firmware/target/arm/imx233/touchscreen-imx233.h
@@ -0,0 +1,34 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2012 by Amaury Pouly
+ *
+ * Based on Rockbox iriver bootloader by Linus Nielsen Feltzing
+ * and the ipodlinux bootloader by Daniel Palffy and Bernard Leach
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+#ifndef __TOUCHSCREEN_IMX233__
+#define __TOUCHSCREEN_IMX233__
+
+#include "lradc-imx233.h"
+
+void imx233_touchscreen_init(void);
+void imx233_touchscreen_enable(bool enable);
+/* returns true if there is a touch */
+bool imx233_touchscreen_get_touch(int *raw_x, int *raw_y);
+
+#endif /* __TOUCHSCREEN_IMX233__ */ \ No newline at end of file