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

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

Signed-off-by: Meir Armon <meirarmon@gmail.com>
This commit is contained in:
Meir Armon
2025-05-30 14:01:06 +03:00
committed by Damien George
parent cb315bb8e4
commit 4697a06fdb
5 changed files with 16 additions and 0 deletions

View File

@@ -33,6 +33,8 @@ Functions
or a valid Pin object. *level* should be ``esp32.WAKEUP_ALL_LOW`` or
``esp32.WAKEUP_ANY_HIGH``.
.. note:: This is only available for boards that have ext0 support.
.. function:: wake_on_ext1(pins, level)
Configure how EXT1 wakes the device from sleep. *pins* can be ``None``