/Zephyr-latest/samples/boards/espressif/light_sleep/ |
D | README.rst | 1 .. zephyr:code-sample:: esp32-light-sleep 2 :name: Light Sleep 4 Use light sleep mode on ESP32 to save power while preserving the state of the memory, CPU, and 10 This example illustrates usage of light sleep mode. Unlike deep sleep mode, 11 light sleep preserves the state of the memory, CPU, and peripherals. Execution 13 When the chip exits light sleep mode, execution continues at the point where it 45 about 500 ms, after the second wakeup from light sleep. The program has 46 indicated the wakeup reason after each sleep iteration. 52 Entering light sleep 53 Returned from light sleep, reason: timer, t=3344 ms, slept for 2001 ms [all …]
|
/Zephyr-latest/tests/subsys/pm/power_mgmt_soc/src/ |
D | power_mgmt.c | 19 /* Sleep time should be lower than SUSPEND_TO_IDLE */ 26 /* Sleep some extra time than minimum residency: 27 * - for light it should be very little so that we get only into light sleep 28 * and not accidentally into a deep sleep. 29 * - for deep sleep it can be very long as we want to ensure that we enter 30 * the deepest sleep state possible. 52 /* Track entry/exit to sleep */ 70 "Sleep entry latency is too high: %d.%03d s.", in pm_latency_check() 154 LOG_INF("PM sleep residency %d.%03d seconds", secs, msecs); in pm_exit_marker() 236 /* Light sleep cycle */ in test_pwr_mgmt_multithread() [all …]
|
D | power_mgmt.h | 11 /** @brief Alternates between light and deep sleep cycles. 13 * For light sleep, the test sleeps in main thread for 500 ms longer than 16 * Similarly for deep sleep, the test sleeps in the main thread for 500 ms 24 /** @brief Alternates between light and deep sleep cycles. 26 * Performs same approach to achieve light and deep sleep, but additional 36 * Performs a dummy initialization for the board to enter light/deep sleep
|
/Zephyr-latest/tests/posix/common/src/ |
D | sleep.c | 27 ZTEST(sleep, test_sleep) in ZTEST() argument 31 /* call sleep(10), wakeup after 1s, expect >= 8s left */ in ZTEST() 37 zassert_ok(sleep(0)); in ZTEST() 41 zassert_equal(0, sleep(1)); in ZTEST() 47 zassert_equal(0, sleep(2)); in ZTEST() 51 /* test that sleep reports the remainder */ in ZTEST() 55 zassert_true(sleep(sleep_max_s) >= sleep_rem_s); in ZTEST() 58 ZTEST(sleep, test_usleep) in ZTEST() argument 68 /* sleep for the spec limit */ in ZTEST() 74 /* sleep for exactly the limit threshold */ in ZTEST() [all …]
|
/Zephyr-latest/boards/openisa/rv32m1_vega/support/ |
D | openocd_rv32m1_vega_ri5cy.cfg | 56 sleep 1000 63 sleep 2 73 sleep 1000 80 sleep 2 90 sleep 1000 97 sleep 2 107 sleep 1000 114 sleep 2 125 sleep 1000 132 sleep 2 [all …]
|
D | openocd_rv32m1_vega_zero_riscy.cfg | 56 sleep 1000 63 sleep 2 73 sleep 1000 80 sleep 2 90 sleep 1000 97 sleep 2 107 sleep 1000 114 sleep 2
|
/Zephyr-latest/samples/boards/microchip/mec15xxevb_assy6853/power_management/src/ |
D | power_mgmt.c | 21 /* Sleep time should be lower than SUSPEND_TO_IDLE residency time */ 28 /* Sleep some extra time than minimum residency */ 48 /* Track entry/exit to sleep */ 65 * JP25.3 (GPIO012_LT) light sleep 66 * JP25.5 (GPIO013_DP) deep sleep 80 LOG_INF("PM sleep entry latency %d.%03d seconds", secs, msecs); in pm_latency_check() 83 LOG_WRN("Sleep entry latency is too high"); in pm_latency_check() 88 LOG_WRN("Sleep entry latency is higher than expected"); in pm_latency_check() 170 /* Directly access a pin to mark sleep trigger */ in pm_trigger_marker() 189 LOG_INF("PM sleep residency %d.%03d seconds", secs, msecs); in pm_exit_marker() [all …]
|
D | power_mgmt.h | 11 /** @brief Alternates between light and deep sleep cycles. 13 * For light sleep, the test sleeps in main thread for 500 ms longer than 16 * Similarly for deep sleep, the test sleeps in the main thread for 500 ms 26 /** @brief Alternates between light and deep sleep cycles. 28 * Performs same approach to achieve light and deep sleep, but additional
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/resources/ |
D | mock_script.py | 19 parser.add_argument('--sleep', action='store', default=0, type=float) 20 parser.add_argument('--long-sleep', action='store_true') 34 time.sleep(args.sleep) 39 time.sleep(args.sleep) 43 time.sleep(1) # give a moment for external programs to collect all outputs
|
/Zephyr-latest/tests/kernel/early_sleep/ |
D | testcase.yaml | 2 kernel.common.sleep: 5 - sleep 6 kernel.common.sleep.minimallibc: 10 - sleep
|
/Zephyr-latest/soc/nuvoton/npcx/common/ |
D | power.c | 22 * | Sleep | On | On | Stop | Stop | Preserved | On | On | 23 * | Deep Sleep | On | Stop | Stop | Stop | Power Down | On | On | 32 * - A delay of 'Instant' wake-up from 'Deep Sleep' is 20 us. 33 * - A delay of 'Standard' wake-up from 'Deep Sleep' is 3.43 ms. 34 * - Max residency time in Deep Sleep for 'Instant' wake-up is 200 ms 35 * - Min Residency time in Deep Sleep for 'Instant' wake-up is 61 us 40 * Sub-state 0 - "Deep Sleep" mode with “Instant” wake-up if residency time 42 * Sub-state 1 - "Deep Sleep" mode with "Standard" wake-up if residency time 62 /* The steps that npcx ec enters sleep/deep mode and leaves it. */ 66 "wfi\n" /* Enter sleep mode after receiving wfi */ \ [all …]
|
/Zephyr-latest/doc/develop/api/ |
D | terminology.rst | 13 if executing the function can cause the invoking thread to sleep 16 trying to sleep 61 Functions that are **reschedule** but not **sleep** may be invoked from 66 sleep section in API Terminology 69 The sleep attribute is used on a function that can cause the invoking 70 thread to :ref:`sleep <scheduling_v2>`. 79 sleep. argument 81 This attribute does not imply the function will sleep unconditionally, 86 Functions that are **sleep** are implicitly **reschedule**. 88 Functions that are **sleep** may be invoked from thread context. [all …]
|
/Zephyr-latest/samples/boards/microchip/mec15xxevb_assy6853/power_management/ |
D | README.rst | 10 It showcase simple app that allows to enter into light and deep sleep. 24 Wake from Light Sleep 25 Wake from Deep Sleep 27 Wake from Light Sleep 29 Wake from Deep Sleep
|
/Zephyr-latest/dts/bindings/power/ |
D | nxp,pdcfg-power.yaml | 11 deep-sleep-config: 15 power to various blocks while the CPU is in deep sleep mode. These values 16 are programmed to the sleep configuration registers before entering deep 17 sleep mode.
|
/Zephyr-latest/samples/boards/espressif/light_sleep/src/ |
D | main.c | 23 /* Add an extra delay when sleeping to make sure that light sleep 56 printk("Entering light sleep\n"); in main() 57 /* To make sure the complete line is printed before entering sleep mode, in main() 62 /* Get timestamp before entering sleep */ in main() 65 /* Sleep triggers the idle thread, which makes the pm subsystem select some in main() 66 * pre-defined power state. Light sleep is used here because there is enough in main() 73 /* Get timestamp after waking up from sleep */ in main() 91 printk("Returned from light sleep, reason: %s, t=%lld ms, slept for %lld ms\n", in main()
|
/Zephyr-latest/soc/arm/beetle/ |
D | soc_registers.h | 46 /* Offset: 0x050 (r/w) sleep control register */ 55 /* Offset: 0x088 (r/w) AHB peripheral clock set in sleep state */ 57 /* Offset: 0x08c (r/w) AHB peripheral clock clear in sleep state */ 59 /* Offset: 0x090 (r/w) AHB peripheral clock set in deep sleep state */ 61 /* Offset: 0x094 (r/w) AHB peripheral clock clear in deep sleep state */ 68 /* Offset: 0x0a8 (r/w) APB peripheral clock set in sleep state */ 70 /* Offset: 0x0ac (r/w) APB peripheral clock clear in sleep state */ 72 /* Offset: 0x0b0 (r/w) APB peripheral clock set in deep sleep state */ 74 /* Offset: 0x0b4 (r/w) APB peripheral clock clear in deep sleep state */ 85 /* Offset: 0x0d0 (r/w) AHB power down sleep wakeup source set */ [all …]
|
/Zephyr-latest/boards/shields/g1120b0mipi/boards/ |
D | mimxrt595_evk_mimxrt595s_cm33.overlay | 7 /* Change deep sleep config for suspend mode to keep SMARTDMA ram powered, 8 * so the SMARTDMA will continue functioning after deep sleep 11 deep-sleep-config = <0xC800>,
|
/Zephyr-latest/samples/boards/ti/cc13x2_cc26x2/system_off/ |
D | README.rst | 4 Exercise the various sleep modes on TI CC13x2/CC26x2 platforms. 10 the various sleep modes on TI CC13x2/CC26x2 platforms. The functional 14 * Sleep for 2 milliseconds (Idle mode) 15 * Sleep for 3 seconds (Standby mode) 61 Sleep 2000 us (IDLE) 62 Sleep 3 s (STANDBY)
|
/Zephyr-latest/soc/microchip/mec/mec172x/ |
D | power.c | 25 * Deep Sleep 36 * We must restore any hardware state that was modified upon sleep 65 * Enable deep sleep mode in CM4 and MEC172x. in z_power_soc_deep_sleep() 66 * Enable CM4 deep sleep and sleep signals assertion on WFI. in z_power_soc_deep_sleep() 67 * Set MCHP Heavy sleep (PLL OFF when all CLK_REQ clear) and SLEEP_ALL in z_power_soc_deep_sleep() 80 __WFI(); /* triggers sleep hardware */ in z_power_soc_deep_sleep() 113 * Light Sleep 134 __WFI(); /* triggers sleep hardware */ in z_power_soc_sleep() 142 * For deep sleep pm_system_suspend has executed all the driver
|
/Zephyr-latest/boards/pjrc/teensy4/ |
D | teensy40.dts | 121 pinctrl-names = "default", "sleep"; 127 pinctrl-names = "default", "sleep"; 133 pinctrl-names = "default", "sleep"; 139 pinctrl-names = "default", "sleep"; 145 pinctrl-names = "default", "sleep"; 151 pinctrl-names = "default", "sleep"; 157 pinctrl-names = "default", "sleep"; 163 pinctrl-names = "default", "sleep";
|
/Zephyr-latest/tests/kernel/sleep/ |
D | README.txt | 1 Title: cooperative thread Sleep and Wakeup APIs 5 This test verifies that cooperative sleep and wakeup APIs operate as 34 Running test suite sleep 41 Testing: test thread sleep + helper thread wakeup test 42 Testing: test thread sleep + isr offload wakeup test 43 Testing: test thread sleep + main wakeup test thread 51 Test suite sleep succeeded
|
/Zephyr-latest/boards/raytac/mdbt50q_db_40/ |
D | raytac_mdbt50q_db_40_nrf52840.dts | 124 pinctrl-names = "default", "sleep"; 133 pinctrl-names = "default", "sleep"; 141 pinctrl-names = "default", "sleep"; 150 pinctrl-names = "default", "sleep"; 157 pinctrl-names = "default", "sleep"; 166 pinctrl-names = "default", "sleep"; 174 pinctrl-names = "default", "sleep"; 182 pinctrl-names = "default", "sleep"; 189 pinctrl-names = "default", "sleep";
|
/Zephyr-latest/soc/microchip/mec/mec15xx/ |
D | power.c | 17 * Deep Sleep 28 * We must restore any hardware state that was modified upon sleep 58 __WFI(); /* triggers sleep hardware */ in z_power_soc_deep_sleep() 74 * after exiting deep sleep, so need to unmask exceptions in z_power_soc_deep_sleep() 81 * Light Sleep 95 __WFI(); /* triggers sleep hardware */ in z_power_soc_sleep() 102 * For deep sleep pm_system_suspend has executed all the driver
|
/Zephyr-latest/boards/electronut/nrf52840_blip/ |
D | nrf52840_blip.dts | 94 pinctrl-names = "default", "sleep"; 102 pinctrl-names = "default", "sleep"; 111 pinctrl-names = "default", "sleep"; 120 pinctrl-names = "default", "sleep"; 128 pinctrl-names = "default", "sleep"; 136 pinctrl-names = "default", "sleep"; 143 pinctrl-names = "default", "sleep";
|
/Zephyr-latest/samples/boards/espressif/deep_sleep/ |
D | README.rst | 1 .. zephyr:code-sample:: esp32-deep-sleep 2 :name: Deep Sleep 4 Use deep sleep with wake on timer, GPIO, and EXT1 sources on ESP32. 9 The deep sleep mode of the ESP32 Series is a power saving mode that causes the 13 This sample shows how to set a wake up source, trigger deep sleep and then 28 as wake-up source, deep sleep for 20 seconds, wake up.
|