TOUCHPAD_PRESSURE -> TOUCHPAD_HAS_PRESSURE

ugfx_release_2.6
Tectu 2012-08-09 03:21:52 +02:00
parent 69bcdbba84
commit 956f612544
4 changed files with 6 additions and 5 deletions

View File

@ -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.
*

View File

@ -35,7 +35,7 @@
/* Driver hardware support. */
/*===========================================================================*/
#define TOUCHPAD_PRESSURE TRUE
#define TOUCHPAD_HAS_PRESSURE TRUE
#endif /* HAL_USE_TOUCHPAD */

View File

@ -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

View File

@ -41,8 +41,8 @@
/* Error checks. */
/*===========================================================================*/
#ifndef TOUCHPAD_PRESSURE
#define TOUCHPAD_PRESSURE FALSE
#ifndef TOUCHPAD_HAS_PRESSURE
#define TOUCHPAD_HAS_PRESSURE FALSE
#endif
/*===========================================================================*/