Home
last modified time | relevance | path

Searched full:sleep (Results 1 – 25 of 639) sorted by relevance

12345678910>>...26

/Zephyr-Core-3.5.0/samples/boards/esp32/light_sleep/
DREADME.rst1 .. _esp32-light-sleep-sample:
3 ESP32 Light Sleep demo
9 This example illustrates usage of light sleep mode. Unlike deep sleep mode,
10 light sleep preserves the state of the memory, CPU, and peripherals. Execution
12 When the chip exits light sleep mode, execution continues at the point where it
44 about 500 ms, after the second wakeup from light sleep. The program has
45 indicated the wakeup reason after each sleep iteration.
51 Entering light sleep
52 Returned from light sleep, reason: timer, t=3344 ms, slept for 2001 ms
53 Entering light sleep
[all …]
/Zephyr-Core-3.5.0/tests/subsys/pm/power_mgmt_soc/src/
Dpower_mgmt.c19 /* 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 …]
Dpower_mgmt.h11 /** @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-Core-3.5.0/boards/riscv/rv32m1_vega/support/
Dopenocd_rv32m1_vega_ri5cy.cfg56 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 …]
Dopenocd_rv32m1_vega_zero_riscy.cfg56 sleep 1000
63 sleep 2
73 sleep 1000
80 sleep 2
90 sleep 1000
97 sleep 2
107 sleep 1000
114 sleep 2
/Zephyr-Core-3.5.0/samples/boards/mec15xxevb_assy6853/power_management/src/
Dpower_mgmt.c21 /* 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 …]
Dpower_mgmt.h11 /** @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-Core-3.5.0/scripts/pylib/pytest-twister-harness/tests/resources/
Dmock_script.py18 parser.add_argument('--sleep', action='store', default=0, type=float)
19 parser.add_argument('--long-sleep', action='store_true')
33 time.sleep(args.sleep)
38 time.sleep(args.sleep)
42 time.sleep(1) # give a moment for external programs to collect all outputs
/Zephyr-Core-3.5.0/tests/posix/common/src/
Dsleep.c31 /* 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()
68 /* sleep for the spec limit */ in ZTEST()
74 /* sleep for exactly the limit threshold */ in ZTEST()
78 /* sleep for over the spec limit */ in ZTEST()
82 /* test that sleep reports errno = EINTR when woken up */ in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/early_sleep/
Dtestcase.yaml2 kernel.common.sleep:
5 - sleep
6 kernel.common.sleep.minimallibc:
10 - sleep
/Zephyr-Core-3.5.0/soc/arm/nuvoton_npcx/common/
Dpower.c22 * | 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-Core-3.5.0/doc/develop/api/
Dterminology.rst13 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-Core-3.5.0/samples/boards/mec15xxevb_assy6853/power_management/
DREADME.rst10 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-Core-3.5.0/dts/bindings/power/
Dnxp,pdcfg-power.yaml11 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-Core-3.5.0/soc/arm/arm/beetle/
Dsoc_registers.h46 /* 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-Core-3.5.0/samples/boards/esp32/light_sleep/src/
Dmain.c22 /* Add an extra delay when sleeping to make sure that light sleep
55 printk("Entering light sleep\n"); in main()
56 /* To make sure the complete line is printed before entering sleep mode, in main()
61 /* Get timestamp before entering sleep */ in main()
64 /* Sleep triggers the idle thread, which makes the pm subsystem select some in main()
65 * pre-defined power state. Light sleep is used here because there is enough in main()
72 /* Get timestamp after waking up from sleep */ in main()
90 printk("Returned from light sleep, reason: %s, t=%lld ms, slept for %lld ms\n", in main()
/Zephyr-Core-3.5.0/soc/arm/microchip_mec/mec172x/
Dpower.c25 * Deep Sleep
36 * We must restore any hardware state that was modified upon sleep
67 * Enable deep sleep mode in CM4 and MEC172x. in z_power_soc_deep_sleep()
68 * Enable CM4 deep sleep and sleep signals assertion on WFI. in z_power_soc_deep_sleep()
69 * Set MCHP Heavy sleep (PLL OFF when all CLK_REQ clear) and SLEEP_ALL in z_power_soc_deep_sleep()
81 __WFI(); /* triggers sleep hardware */ in z_power_soc_deep_sleep()
116 * Light Sleep
136 __WFI(); /* triggers sleep hardware */ in z_power_soc_sleep()
144 * For deep sleep pm_system_suspend has executed all the driver
/Zephyr-Core-3.5.0/tests/kernel/sleep/
DREADME.txt1 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-Core-3.5.0/boards/arm/teensy4/
Dteensy40.dts132 pinctrl-names = "default", "sleep";
138 pinctrl-names = "default", "sleep";
144 pinctrl-names = "default", "sleep";
150 pinctrl-names = "default", "sleep";
156 pinctrl-names = "default", "sleep";
162 pinctrl-names = "default", "sleep";
168 pinctrl-names = "default", "sleep";
174 pinctrl-names = "default", "sleep";
/Zephyr-Core-3.5.0/soc/arm/microchip_mec/mec1501/
Dpower.c17 * 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-Core-3.5.0/samples/boards/ti/cc13x2_cc26x2/system_off/
DREADME.rst10 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-Core-3.5.0/boards/arm/raytac_mdbt50q_db_40_nrf52840/
Draytac_mdbt50q_db_40_nrf52840.dts118 pinctrl-names = "default", "sleep";
127 pinctrl-names = "default", "sleep";
135 pinctrl-names = "default", "sleep";
144 pinctrl-names = "default", "sleep";
151 pinctrl-names = "default", "sleep";
160 pinctrl-names = "default", "sleep";
168 pinctrl-names = "default", "sleep";
176 pinctrl-names = "default", "sleep";
183 pinctrl-names = "default", "sleep";
/Zephyr-Core-3.5.0/samples/net/syslog_net/src/
Dmain.c28 int i, count, sleep; in main() local
57 sleep = 500; in main()
65 sleep = SLEEP_BETWEEN_PRINTS * MSEC_PER_SEC; in main()
69 k_msleep(sleep); in main()
79 k_msleep(sleep); in main()
/Zephyr-Core-3.5.0/tests/kernel/sleep/src/
Dmain.c54 * @brief Test sleep and wakeup APIs
56 * @defgroup kernel_sleep_tests Sleep Tests
60 * This module tests the following sleep and wakeup scenarios:
91 /* Shouldn't ever sleep for less than requested time, but allow for 1
124 TC_PRINT("Testing: test thread sleep + helper thread wakeup test\n"); in test_thread()
138 TC_PRINT("Testing: test thread sleep + isr offload wakeup test\n"); in test_thread()
152 TC_PRINT("Testing: test thread sleep + main wakeup test thread\n"); in test_thread()
186 * @brief Test sleep functionality
192 ZTEST(sleep, test_sleep) in ZTEST() argument
254 ZTEST(sleep, test_sleep_forever) in ZTEST() argument
[all …]
/Zephyr-Core-3.5.0/soc/arm/microchip_mec/mec172x/reg/
Dmec172x_pcr.h55 * into light or heavy sleep.
64 * When firmware wants to enter light or heavy sleep.
69 * Cortex-M4 will assert sleep signal to PCR block.
71 * PCR will then turn off clocks based on light/heavy sleep.
86 /* PCR System Sleep Control */
91 * bit[8] can be used to prevent entry to heavy sleep unless the
94 * sleep if and only if PLL is locked.
95 * bit[8]==1 system will allow entry to heavy sleep before PLL is locked.
99 /* Assert all peripheral sleep enables once CPU asserts its sleep signal */
153 * Sleep Enable Reg 0 (Offset +30h)
[all …]

12345678910>>...26