feat(touch): support touch sleep on ESP32-S31

Note: deep sleep wake-up currently has issue
This commit is contained in:
Hu Rui
2026-05-18 16:53:53 +08:00
parent 25ac4c72d8
commit ccf6d53524
6 changed files with 21 additions and 4 deletions
@@ -1153,7 +1153,7 @@ config SOC_TOUCH_MAX_CHAN_ID
config SOC_TOUCH_SUPPORT_SLEEP_WAKEUP
bool
default n
default y
config SOC_TOUCH_SUPPORT_BENCHMARK
bool
@@ -461,7 +461,7 @@
#define SOC_TOUCH_MAX_CHAN_ID (13) /*!< Touch maximum channel number */
/* Touch Sensor Features */
#define SOC_TOUCH_SUPPORT_SLEEP_WAKEUP (0) /*!< Touch sensor supports sleep awake */
#define SOC_TOUCH_SUPPORT_SLEEP_WAKEUP (1) /*!< Touch sensor supports sleep awake */
#define SOC_TOUCH_SUPPORT_BENCHMARK (1) /*!< Touch sensor supports benchmark configuration */
#define SOC_TOUCH_SUPPORT_WATERPROOF (1) /*!< Touch sensor supports waterproof */
#define SOC_TOUCH_SUPPORT_PROX_SENSING (1) /*!< Touch sensor supports proximity sensing */