aboutsummaryrefslogtreecommitdiffstats
path: root/halext/drivers/touchpad/touchpadXPT2046
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-08-09 00:43:52 +0200
committerTectu <joel@unormal.org>2012-08-09 00:43:52 +0200
commit308184ead1c6071a739c7a233287a4c0412ca817 (patch)
treecde20ff7767c43d96b05e66d9a664ad942a05a8c /halext/drivers/touchpad/touchpadXPT2046
parent82dbef4c8d961f5bb3f95667a2c8fe0ddfd6ba22 (diff)
downloaduGFX-308184ead1c6071a739c7a233287a4c0412ca817.tar.gz
uGFX-308184ead1c6071a739c7a233287a4c0412ca817.tar.bz2
uGFX-308184ead1c6071a739c7a233287a4c0412ca817.zip
some more touchpad stuff
Diffstat (limited to 'halext/drivers/touchpad/touchpadXPT2046')
-rw-r--r--halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c15
-rw-r--r--halext/drivers/touchpad/touchpadXPT2046/touchpad_lld_config.h2
2 files changed, 10 insertions, 7 deletions
diff --git a/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c b/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c
index f3211633..2f280169 100644
--- a/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c
+++ b/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c
@@ -50,7 +50,7 @@
/*===========================================================================*/
#if !defined(__DOXYGEN__)
- TOUCHPADDriver TOUCHPAD;
+ TOUCHPADDriver Touchpad;
#endif
/*===========================================================================*/
@@ -72,12 +72,15 @@
/* ---- Required Routines ---- */
/**
- * @brief Low level GDISP driver initialization.
+ * @brief Low level Touchpad driver initialization.
*
* @notapi
*/
-void touchpad_lld_init(void) {
+void tp_lld_init(TOUCHPADDriver *tp) {
/* Initialise the TOUCHPAD structure */
+
+ /* ToDo */
+ (void)tp;
}
/**
@@ -85,7 +88,7 @@ void touchpad_lld_init(void) {
*
* @notapi
*/
-uint16_t touchpad_lld_read_x(void) {
+uint16_t tp_lld_read_x(void) {
/* ToDo */
return 0;
}
@@ -95,7 +98,7 @@ uint16_t touchpad_lld_read_x(void) {
*
* @notapi
*/
-uint16_t touchpad_lld_read_y(void) {
+uint16_t tp_lld_read_y(void) {
/* ToDo */
return 0;
}
@@ -107,7 +110,7 @@ uint16_t touchpad_lld_read_y(void) {
*
* @notapi
*/
- uint16_t toucpad_lld_read_y(void) {
+ uint16_t tp_lld_read_y(void) {
/* ToDo */
return 0;
}
diff --git a/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld_config.h b/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld_config.h
index 6c491e27..52493836 100644
--- a/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld_config.h
+++ b/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld_config.h
@@ -35,7 +35,7 @@
/* Driver hardware support. */
/*===========================================================================*/
-#define TOUCHPAD_PRESSURE_DIRECTION TRUE
+#define TOUCHPAD_PRESSURE TRUE
#endif /* HAL_USE_TOUCHPAD */