esp32/modesp32: Make wake_on_touch available only on SoCs supporting it.

The `esp32.wake_on_touch()` method should only be available on boards that
have SOC_TOUCH_SENSOR_SUPPORTED=y.  And update docs to reflect this.

Signed-off-by: Meir Armon <meirarmon@gmail.com>
This commit is contained in:
Meir Armon
2025-05-29 20:12:35 +03:00
committed by Damien George
parent 5ff2ae5a6c
commit cb315bb8e4
4 changed files with 13 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ Functions
Configure whether or not a touch will wake the device from sleep.
*wake* should be a boolean value.
.. note:: This is only available for boards that have touch sensor support.
.. function:: wake_on_ulp(wake)
Configure whether or not the Ultra-Low-Power co-processor can wake the