aboutsummaryrefslogtreecommitdiffstats
path: root/halext/include
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-08-09 02:03:26 +0200
committerTectu <joel@unormal.org>2012-08-09 02:03:26 +0200
commit19bb3b15dd368b019cdab1b12565156b84f9d32a (patch)
treebcb183d368992ccd8795fb6c19bf9dc232e5caf9 /halext/include
parent79c053567816521b601e44981bf3af5b0e40f752 (diff)
downloaduGFX-19bb3b15dd368b019cdab1b12565156b84f9d32a.tar.gz
uGFX-19bb3b15dd368b019cdab1b12565156b84f9d32a.tar.bz2
uGFX-19bb3b15dd368b019cdab1b12565156b84f9d32a.zip
tpInit()
Diffstat (limited to 'halext/include')
-rw-r--r--halext/include/touchpad.h6
-rw-r--r--halext/include/touchpad_lld.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/halext/include/touchpad.h b/halext/include/touchpad.h
index 12b462fd..c6e44b55 100644
--- a/halext/include/touchpad.h
+++ b/halext/include/touchpad.h
@@ -60,21 +60,17 @@ extern "C" {
uint16_t tpReadY(void);
#if TOUCHPAD_PRESSURE
-
uint16_t tpReadZ(void);
-
#endif
#else
- #define tpInit(tp) tp_lld_init()
+ #define tpInit(tp) tp_lld_init(tp)
#define tpReadX() tp_lld_read_x()
#define tpReadY() tp_lld_read_y()
#if TOUCHPAD_PRESSURE
-
#define tpReadZ() tp_lld_read_z()
-
#endif
#endif
diff --git a/halext/include/touchpad_lld.h b/halext/include/touchpad_lld.h
index ccff7d4d..ab2e54d6 100644
--- a/halext/include/touchpad_lld.h
+++ b/halext/include/touchpad_lld.h
@@ -55,7 +55,11 @@ typedef struct TOUCHPADDriver TOUCHPADDriver;
* @brief Structure representing a Touchpad driver.
*/
struct TOUCHPADDriver {
- /* ToDo */
+ /*
+ * @brief Pointer to SPI driver.
+ * @note SPI driver must be enabled in mcu- and halconf.h
+ */
+ SPIDriver *spid;
};
/*===========================================================================*/
@@ -71,7 +75,7 @@ extern "C" {
#endif
/* Core functions */
- void tp_lld_init(void);
+ void tp_lld_init(TOUCHPADDriver *tp);
uint16_t tp_lld_read_x(void);
uint16_t tp_lld_read_y(void);