aboutsummaryrefslogtreecommitdiffstats
path: root/halext/drivers
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-08-09 01:07:04 +0200
committerTectu <joel@unormal.org>2012-08-09 01:07:04 +0200
commit384529af26a27ef7500b4ff97fbcd85e50385f7b (patch)
treeff5f5f2ed05546ca2bd6f4bec6854b186cd4c084 /halext/drivers
parented29707da6ba034db1fe7fbf11abe98f530b3647 (diff)
downloaduGFX-384529af26a27ef7500b4ff97fbcd85e50385f7b.tar.gz
uGFX-384529af26a27ef7500b4ff97fbcd85e50385f7b.tar.bz2
uGFX-384529af26a27ef7500b4ff97fbcd85e50385f7b.zip
a few more touchpad things
Diffstat (limited to 'halext/drivers')
-rw-r--r--halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c2
-rw-r--r--halext/drivers/touchpad/touchpadXPT2046/xpt2046_lld.c.h40
2 files changed, 42 insertions, 0 deletions
diff --git a/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c b/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c
index 2f280169..03f04203 100644
--- a/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c
+++ b/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c
@@ -61,6 +61,8 @@
/* Driver local functions. */
/*===========================================================================*/
+#include "xpt2046_lld.c.h"
+
/*===========================================================================*/
/* Driver interrupt handlers. */
/*===========================================================================*/
diff --git a/halext/drivers/touchpad/touchpadXPT2046/xpt2046_lld.c.h b/halext/drivers/touchpad/touchpadXPT2046/xpt2046_lld.c.h
new file mode 100644
index 00000000..2e891684
--- /dev/null
+++ b/halext/drivers/touchpad/touchpadXPT2046/xpt2046_lld.c.h
@@ -0,0 +1,40 @@
+/*
+ ChibiOS-LCD-Driver - Copyright (C) 2012
+ Joel Bodenmann aka Tectu <joel@unormal.org>
+
+ This file is part of ChibiOS-LCD-Driver.
+
+ ChibiOS-LCD-Driver 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 3 of the License, or
+ (at your option) any later version.
+
+ ChibiOS-LCD-Driver is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef _XPT2046_H
+#define _XPT2046_H
+
+void tp_lld_init(TOUCHPADDriver *tp) {
+
+}
+
+uint16_t tp_lld_read_x(void) {
+ return 42;
+}
+
+uint16_t tp_lld_read_y(void) {
+ return 42;
+}
+
+uint16_t tp_lld_read_z(void) {
+ return 42;
+}
+
+#endif /* _XPT2046_H */