mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-14 16:23:57 +00:00
feat(touch): support touch driver on p4 (soc)
This commit is contained in:

committed by
Kevin (Lao Kaiyao)

parent
dd5b091a8b
commit
f35ec64a0b
@@ -747,9 +747,9 @@ config SOC_TIMER_GROUP_TOTAL_TIMERS
|
||||
int
|
||||
default 4
|
||||
|
||||
config SOC_TOUCH_VERSION_2
|
||||
bool
|
||||
default y
|
||||
config SOC_TOUCH_SENSOR_VERSION
|
||||
int
|
||||
default 2
|
||||
|
||||
config SOC_TOUCH_SENSOR_NUM
|
||||
int
|
||||
@@ -759,13 +759,9 @@ config SOC_TOUCH_PROXIMITY_CHANNEL_NUM
|
||||
int
|
||||
default 3
|
||||
|
||||
config SOC_TOUCH_PAD_THRESHOLD_MAX
|
||||
hex
|
||||
default 0x1FFFFF
|
||||
|
||||
config SOC_TOUCH_PAD_MEASURE_WAIT_MAX
|
||||
hex
|
||||
default 0xFF
|
||||
config SOC_TOUCH_SAMPLER_NUM
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_TWAI_CONTROLLER_NUM
|
||||
int
|
||||
|
@@ -323,12 +323,11 @@
|
||||
#define SOC_TIMER_GROUP_TOTAL_TIMERS (4)
|
||||
|
||||
/*-------------------------- TOUCH SENSOR CAPS -------------------------------*/
|
||||
#define SOC_TOUCH_VERSION_2 (1) /*!<Hardware version of touch sensor */
|
||||
#define SOC_TOUCH_SENSOR_VERSION (2) /*!<Hardware version of touch sensor */
|
||||
#define SOC_TOUCH_SENSOR_NUM (15) /*!<15 Touch channels */
|
||||
#define SOC_TOUCH_PROXIMITY_CHANNEL_NUM (3) /*!<Support touch proximity channel number. */
|
||||
|
||||
#define SOC_TOUCH_PAD_THRESHOLD_MAX (0x1FFFFF) /*!<If set touch threshold max value, The touch sensor can't be in touched status */
|
||||
#define SOC_TOUCH_PAD_MEASURE_WAIT_MAX (0xFF) /*!<The timer frequency is 8Mhz, the max value is 0xff */
|
||||
#define SOC_TOUCH_SAMPLER_NUM (1U) /*!< The sampler number in total, each sampler can be used to sample on one frequency */
|
||||
|
||||
/*-------------------------- TWAI CAPS ---------------------------------------*/
|
||||
#define SOC_TWAI_CONTROLLER_NUM 1UL
|
||||
|
Reference in New Issue
Block a user