TOUCHPAD_PRESSURE -> TOUCHPAD_HAS_PRESSURE
This commit is contained in:
parent
69bcdbba84
commit
956f612544
4 changed files with 6 additions and 5 deletions
|
@ -134,7 +134,7 @@ uint16_t tp_lld_read_y(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---- Optional Routines ---- */
|
/* ---- Optional Routines ---- */
|
||||||
#if TOUCHPAD_PRESSURE || defined(__DOXYGEN__)
|
#if TOUCHPAD_HAS_PRESSURE || defined(__DOXYGEN__)
|
||||||
/*
|
/*
|
||||||
* @brief Reads out the Z direction / pressure.
|
* @brief Reads out the Z direction / pressure.
|
||||||
*
|
*
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
/* Driver hardware support. */
|
/* Driver hardware support. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
#define TOUCHPAD_PRESSURE TRUE
|
#define TOUCHPAD_HAS_PRESSURE TRUE
|
||||||
|
|
||||||
#endif /* HAL_USE_TOUCHPAD */
|
#endif /* HAL_USE_TOUCHPAD */
|
||||||
|
|
||||||
|
|
|
@ -73,8 +73,9 @@ extern "C" {
|
||||||
void tpInit(TOUCHPADDriver *tp);
|
void tpInit(TOUCHPADDriver *tp);
|
||||||
uint16_t tpReadX(void);
|
uint16_t tpReadX(void);
|
||||||
uint16_t tpReadY(void);
|
uint16_t tpReadY(void);
|
||||||
|
void tpCalibrate(void);
|
||||||
|
|
||||||
#if TOUCHPAD_PRESSURE
|
#if TOUCHPAD_HAS_PRESSURE
|
||||||
uint16_t tpReadZ(void);
|
uint16_t tpReadZ(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,8 @@
|
||||||
/* Error checks. */
|
/* Error checks. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
#ifndef TOUCHPAD_PRESSURE
|
#ifndef TOUCHPAD_HAS_PRESSURE
|
||||||
#define TOUCHPAD_PRESSURE FALSE
|
#define TOUCHPAD_HAS_PRESSURE FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue