diff options
author | Tectu <joel@unormal.org> | 2012-08-09 03:21:52 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-08-09 03:21:52 +0200 |
commit | 956f6125446cd73fc839a58a999dbe57e5a35e97 (patch) | |
tree | e17a01316acbbc2bd249293e672d77fc08b14483 | |
parent | 69bcdbba84f936e5da1dd430c75ebd2a9ded41c8 (diff) | |
download | uGFX-956f6125446cd73fc839a58a999dbe57e5a35e97.tar.gz uGFX-956f6125446cd73fc839a58a999dbe57e5a35e97.tar.bz2 uGFX-956f6125446cd73fc839a58a999dbe57e5a35e97.zip |
TOUCHPAD_PRESSURE -> TOUCHPAD_HAS_PRESSURE
-rw-r--r-- | halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c | 2 | ||||
-rw-r--r-- | halext/drivers/touchpad/touchpadXPT2046/touchpad_lld_config.h | 2 | ||||
-rw-r--r-- | halext/include/touchpad.h | 3 | ||||
-rw-r--r-- | halext/include/touchpad_lld.h | 4 |
4 files changed, 6 insertions, 5 deletions
diff --git a/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c b/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c index 4d02be69..f85a68d9 100644 --- a/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c +++ b/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c @@ -134,7 +134,7 @@ uint16_t tp_lld_read_y(void) { }
/* ---- Optional Routines ---- */
-#if TOUCHPAD_PRESSURE || defined(__DOXYGEN__)
+#if TOUCHPAD_HAS_PRESSURE || defined(__DOXYGEN__)
/*
* @brief Reads out the Z direction / pressure.
*
diff --git a/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld_config.h b/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld_config.h index 52493836..17f33dd4 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 TRUE
+#define TOUCHPAD_HAS_PRESSURE TRUE
#endif /* HAL_USE_TOUCHPAD */
diff --git a/halext/include/touchpad.h b/halext/include/touchpad.h index 21e71a97..4f9dce1a 100644 --- a/halext/include/touchpad.h +++ b/halext/include/touchpad.h @@ -73,8 +73,9 @@ extern "C" { void tpInit(TOUCHPADDriver *tp); uint16_t tpReadX(void); uint16_t tpReadY(void); +void tpCalibrate(void); -#if TOUCHPAD_PRESSURE +#if TOUCHPAD_HAS_PRESSURE uint16_t tpReadZ(void); #endif diff --git a/halext/include/touchpad_lld.h b/halext/include/touchpad_lld.h index ab2e54d6..7b33f366 100644 --- a/halext/include/touchpad_lld.h +++ b/halext/include/touchpad_lld.h @@ -41,8 +41,8 @@ /* Error checks. */ /*===========================================================================*/ -#ifndef TOUCHPAD_PRESSURE - #define TOUCHPAD_PRESSURE FALSE +#ifndef TOUCHPAD_HAS_PRESSURE + #define TOUCHPAD_HAS_PRESSURE FALSE #endif /*===========================================================================*/ |