Lines Matching +full:wake +full:- +full:up
1 .. zephyr:code-sample:: esp32-deep-sleep
4 Use deep sleep with wake on timer, GPIO, and EXT1 sources on ESP32.
13 This sample shows how to set a wake up source, trigger deep sleep and then
14 make use of that pre-configured wake up source to bring the system back again.
16 The following wake up sources are demonstrated in this example:
18 1. ``Timer``: An RTC timer that can be programmed to trigger a wake up after
19 a preset time. This example will trigger a wake up every 20 seconds.
20 2. ``EXT1``: External wake up 1 is tied to multiple RTC GPIOs. This example
21 uses GPIO2 and GPIO4 to trigger a wake up with any one of the two pins are
23 3. ``GPIO``: Only supported by some Espressif SoCs, in the case of ESP32-C3
24 GPIOS0~5 can be used as wake-up sources.
26 In this demo, Timer is the only wake-up source that cannot be disabled via a
28 as wake-up source, deep sleep for 20 seconds, wake up.
37 However, when ``EXT1`` is also enabled, GPIO2 and GPIO4 should be pulled-down
38 by external resistors to avoid floating pins. When triggering a wake up, one
40 a wake up.
43 enabled as wake-up source.
46 ``prj.conf`` file. By default, this wake up source is enabled. Follow similar
52 .. zephyr-app-commands::
53 :zephyr-app: samples/boards/espressif/deep_sleep
61 -----------------
63 With both wake up sources enabled, the console output will be as below. The
64 reset reason message depends on the wake up source used. The console output
67 .. code-block:: console
69 *** Booting Zephyr OS build zephyr-v3.1.0-3667-gb42e2b225ecf ***
71 Wake up from GPIO 2