use Kconfig choice for IRQ/PRESS/IRQ&PRESS
This commit is contained in:
parent
eaf43e40fa
commit
895434a410
3 changed files with 20 additions and 20 deletions
|
@ -35,13 +35,10 @@ extern "C" {
|
|||
#define XPT2046_X_INV CONFIG_LV_TOUCH_INVERT_X
|
||||
#define XPT2046_Y_INV CONFIG_LV_TOUCH_INVERT_Y
|
||||
#define XPT2046_XY_SWAP CONFIG_LV_TOUCH_XY_SWAP
|
||||
#define XPT2046_TOUCH_CHECK CONFIG_LV_TOUCH_CHECK
|
||||
#define XPT2046_TOUCH_THRESHOLD 400 // Threshold for touch detection
|
||||
#if defined(CONFIG_LV_TOUCH_ONLY)
|
||||
#define XPT2046_TOUCH_ONLY CONFIG_LV_TOUCH_ONLY
|
||||
#else
|
||||
#define XPT2046_TOUCH_ONLY 0
|
||||
#endif
|
||||
#define XPT2046_TOUCH_IRQ CONFIG_LV_TOUCH_DETECT_IRQ
|
||||
#define XPT2046_TOUCH_IRQ_PRESS CONFIG_LV_TOUCH_DETECT_IRQ_PRESSURE
|
||||
#define XPT2046_TOUCH_PRESS CONFIG_LV_TOUCH_DETECT_PRESSURE
|
||||
|
||||
/**********************
|
||||
* TYPEDEFS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue