Home
last modified time | relevance | path

Searched +full:wake +full:- +full:up (Results 1 – 25 of 249) sorted by relevance

12345678910

/Zephyr-Core-3.5.0/samples/boards/esp32/deep_sleep/
DREADME.rst1 .. _esp32-deep-sleep-sample:
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.
[all …]
DKconfig2 # SPDX-License-Identifier: Apache-2.0
10 This option enables wake up from deep sleep from GPIO2 and
12 When triggering a wake up, connect one or both of the pins to
13 HIGH. Note that floating pins may trigger a wake up.
19 This option enables wake up from GPIO, only GPIO0~5 can be used
20 to wake up. Be aware that when low level is used to trigger wakeup,
21 an external pull-up resistance must be used.
/Zephyr-Core-3.5.0/soc/arm/nuvoton_npcx/common/
Dsoc_miwu.h4 * SPDX-License-Identifier: Apache-2.0
60 * @brief NPCX wake-up input source structure
62 * Used to indicate a Wake-Up Input source (WUI) belongs to which group and bit
63 * of Multi-Input Wake-Up Unit (MIWU) modules.
72 * Define npcx miwu driver callback handler signature for wake-up input source
90 struct npcx_wui wui; /** Wake-up input source of GPIO */
104 const struct device *source; /** Wake-up input source */
117 /** Node of single-linked list */
135 * @brief Enable interrupt of the wake-up input source
137 * @param A pointer on wake-up input source
[all …]
Dpower.c4 * SPDX-License-Identifier: Apache-2.0
17 * +--------------------------------------------------------------------------+
19 * |--------------------------------------------------------------------------|
24 * | Stand-By | Off | Off | Off | Off | Off | Off | On |
25 * +--------------------------------------------------------------------------+
27 * LFCLK - Low-Frequency Clock. Its frequency is fixed to 32kHz.
28 * HFCLK - High-Frequency (PLL) Clock. Its frequency is configured to OFMCLK.
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
[all …]
Dsoc_power.h4 * SPDX-License-Identifier: Apache-2.0
15 * @brief Disable UART RX wake-up interrupt.
20 * @brief Enable UART RX wake-up interrupt.
Dsoc_host.h4 * SPDX-License-Identifier: Apache-2.0
21 * @brief Initializes all host sub-modules in Core domain.
23 * This routine initializes all host sub-modules which HW blocks belong to
31 * @retval -EIO if cannot turn on host sub-module source clocks in core domain.
37 * @brief Initializes all host sub-modules in Host domain.
39 * This routine initializes all host sub-modules which HW blocks belong to
41 * de-asserted signal and eSPI peripheral channel is enabled and ready.
46 * @brief Reads data from a host sub-module which is updated via eSPI.
48 * This routine provides a generic interface to read a host sub-module which
52 * @param data Parameter to be read from to the host sub-module.
[all …]
/Zephyr-Core-3.5.0/dts/bindings/base/
Dpm.yaml2 # SPDX-License-Identifier: Apache-2.0
7 wakeup-source:
10 Property to identify that a device can be used as wake up source.
14 wake up the system.
16 Wake up capable devices are disabled (interruptions will not wake up
19 power-domain:
28 zephyr,pm-device-runtime-auto:
/Zephyr-Core-3.5.0/boards/arm/efr32xg24_dk2601b/dts/bindings/
Dsilabs,gecko-wake-up-trigger.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: GPIO Wake Up Trigger for EFR32MG24
6 compatible: "silabs,gecko-wake-up-trigger"
12 type: phandle-array
15 GPIO used as wake up trigger from EM4 sleep
/Zephyr-Core-3.5.0/boards/arm/efr32_thunderboard/dts/bindings/
Dsilabs,gecko-wake-up-triggers.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: GPIO Wake Up Trigger for EFR32BG22/EFR32BG27
6 compatible: "silabs,gecko-wake-up-trigger"
12 type: phandle-array
15 GPIO used as wake up trigger from EM4 sleep
/Zephyr-Core-3.5.0/samples/boards/esp32/deep_sleep/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
20 #error "Unsupported: wakeup-button alias is not defined"
35 int pin = __builtin_ffsll(wakeup_pin_mask) - 1; in main()
37 printk("Wake up from GPIO %d\n", pin); in main()
39 printk("Wake up from GPIO\n"); in main()
50 int pin = __builtin_ffsll(wakeup_pin_mask) - 1; in main()
52 printk("Wake up from GPIO %d\n", pin); in main()
54 printk("Wake up from GPIO\n"); in main()
60 printk("Wake up from timer.\n"); in main()
87 printk("Error: wakeup button device %s is not ready\n", wakeup_button.port->name); in main()
[all …]
/Zephyr-Core-3.5.0/drivers/interrupt_controller/
DKconfig.nxp_s323 # Copyright 2022-2023 NXP
4 # SPDX-License-Identifier: Apache-2.0
15 bool "Wake-up Unit interrupt controller driver for NXP S32 MCUs"
20 Wake-up Unit interrupt controller driver for NXP S32 MCUs
/Zephyr-Core-3.5.0/drivers/counter/
DKconfig.mcux_snvs4 # SPDX-License-Identifier: Apache-2.0
21 bool "IMX SNVS wake-up on SRTC alarm"
25 Assert Wake-Up Interrupt on SRTC alarm
/Zephyr-Core-3.5.0/dts/bindings/bluetooth/
Dinfineon,cyw43xxx-bt-hci.yaml4 # SPDX-License-Identifier: Apache-2.0
14 current-speed = <115200>;
16 /* HCI-UART pins*/
17 pinctrl-0 = <&p3_1_scb2_uart_tx &p3_0_scb2_uart_rx
19 pinctrl-names = "default";
21 bt-hci {
23 compatible = "infineon,cyw43xxx-bt-hci";
24 bt-reg-on-gpios = <&gpio_prt3 4 (GPIO_ACTIVE_HIGH)>;
26 fw-download-speed = <3000000>;
33 NOTE2: Use fw-download-speed and hci-operation-speed properties to configure UART
[all …]
/Zephyr-Core-3.5.0/drivers/spi/
DKconfig.nrfx1 # Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
2 # SPDX-License-Identifier: Apache-2.0
51 'anomaly-58-workaround' a workaround can be enabled per SPIM
55 enabling 'anomaly-58-workaround' via the Devicetree.
72 int "Maximum time to wait for SPI slave to wake up"
76 for SPI slave to wake up after the WAKE line is asserted. Used only
77 by instances that have the WAKE line configured (see the wake-gpios
/Zephyr-Core-3.5.0/samples/boards/mimxrt1060_evk/system_off/
DREADME.rst1 .. _mimxrt1060_evk-system-off-sample:
12 * Busy-wait for 2 seconds
14 additionally set an alarm 10 seconds in the future to wake up the processor
26 .. zephyr-app-commands::
27 :zephyr-app: samples/boards/mimxrt1060_evk/system_off
38 to wake the device and restart the application as if it had been
40 alarm to fire and wake the device up automatically.
45 --------------------------
47 .. code-block:: console
49 *** Booting Zephyr OS build zephyr-v3.0.0-2733-ged206aca47cc ***
[all …]
/Zephyr-Core-3.5.0/kernel/include/
Dksched.h2 * Copyright (c) 2016-2017 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
37 #define Z_VALID_PRIO(prio, entry_point) ((prio) == -1)
38 #define Z_ASSERT_VALID_PRIO(prio, entry_point) __ASSERT((prio) == -1, "")
89 return thread->base.is_idle; in z_is_idle_thread_object()
100 return (thread->base.thread_state & _THREAD_SUSPENDED) != 0U; in z_is_thread_suspended()
105 return (thread->base.thread_state & _THREAD_PENDING) != 0U; in z_is_thread_pending()
110 uint8_t state = thread->base.thread_state; in z_is_thread_prevented_from_running()
119 return !z_is_inactive_timeout(&thread->base.timeout); in z_is_thread_timeout_active()
130 return (thread->base.thread_state & _THREAD_PRESTART) == 0U; in z_has_thread_started()
[all …]
/Zephyr-Core-3.5.0/drivers/sensor/tmp108/
Dtmp108_trigger.c4 * SPDX-License-Identifier: Apache-2.0
27 tmp108_reg_read(drv_data->tmp108_dev, TI_TMP108_REG_CONF, &config); in tmp108_trigger_handle_one_shot()
30 shutdown_mode = (config & (TI_TMP108_CONF_M1(drv_data->tmp108_dev) | in tmp108_trigger_handle_one_shot()
31 TI_TMP108_CONF_M0(drv_data->tmp108_dev))) == 0; in tmp108_trigger_handle_one_shot()
34 ti_tmp108_read_temp(drv_data->tmp108_dev); in tmp108_trigger_handle_one_shot()
37 /* Wait for typical wake up time, retry if the read fails in tmp108_trigger_handle_one_shot()
38 * assuming the chip should wake up and take a reading after the typical in tmp108_trigger_handle_one_shot()
39 * wake up time and call of this thread plus 10 ms time has passed in tmp108_trigger_handle_one_shot()
41 k_work_reschedule(&drv_data->scheduled_work, in tmp108_trigger_handle_one_shot()
47 if (drv_data->data_ready_handler) { in tmp108_trigger_handle_one_shot()
[all …]
/Zephyr-Core-3.5.0/doc/services/pm/
Dsystem.rst1 .. _pm-system:
12 It is an application responsibility to set up a wake up event. A wake up event
15 only some SoC peripheral modules may be active and can be used as a wake up
20 .. image:: images/system-pm.svg
42 have higher wake latencies.
57 :dtcompatible:`zephyr,power-state` binding documentation.
60 ---------
64 :dtcompatible:`zephyr,power-state`) less than or equal to the scheduled system
71 .. code-block:: c
78 -----------
[all …]
/Zephyr-Core-3.5.0/dts/arm/nuvoton/npcx/npcx7/
Dnpcx7-miwus-wui-map.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 /* Common Wake-Up Unit Input (WUI) mapping configurations in npcx family */
8 #include <nuvoton/npcx/npcx-miwus-wui-map.dtsi>
10 /* Specific Wake-Up Unit Input (WUI) mapping configurations in npcx7 series */
13 npcx-miwus-wui-map {
14 compatible = "nuvoton,npcx-miwu-wui-map";
18 wui_cr_sin2: wui0-1-6-2 {
23 wui_io86: wui0-1-6 {
28 wui_iod7: wui0-7-6 {
/Zephyr-Core-3.5.0/dts/bindings/spi/
Dnordic,nrf-spi-common.yaml2 # SPDX-License-Identifier: Apache-2.0
6 include: [spi-controller.yaml, pinctrl-device.yaml]
15 pinctrl-0:
18 max-frequency:
25 overrun-character:
33 easydma-maxcnt-bits:
40 wake-gpios:
41 type: phandle-array
43 Optional bi-directional line that allows SPI master to indicate to SPI
46 transfer when it is actually needed, and stay in any desired low-power
[all …]
/Zephyr-Core-3.5.0/drivers/sensor/lis2dw12/
DKconfig1 # ST Microelectronics LIS2DW12 3-axis accelerometer driver
4 # SPDX-License-Identifier: Apache-2.0
59 bool "Tap and Tap-Tap detection"
69 The wake-up interrupt signal is generated if a certain number of
72 a wake-up interrupt generation at least one of the three axes must
/Zephyr-Core-3.5.0/include/zephyr/drivers/interrupt_controller/
Dwuc_ite_it8xxx2.h4 * SPDX-License-Identifier: Apache-2.0
15 * a wake-up signal to the power management control of EC
24 * assert the wake-up signal (canceled not pending)
32 * @brief Write-1-clear a trigger condition that occurs on the
/Zephyr-Core-3.5.0/arch/arm/core/cortex_m/
Dcpu_idle.S2 * Copyright (c) 2013-2014 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
9 * @brief ARM Cortex-M power management
50 /* Inline the macro provided by SoC-specific code */
105 * PRIMASK is always cleared on ARMv7-M and ARMv8-M Mainline (not used
107 * priority to ensure wake-up will cause interrupts to be serviced
111 * before wake-up.
116 * Set wake-up interrupt priority to the lowest and synchronise to
137 * the wake-up interrupt.
/Zephyr-Core-3.5.0/dts/arm/nuvoton/npcx/npcx9/
Dnpcx9-miwus-wui-map.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 /* Common Wake-Up Unit Input (WUI) mapping configurations in npcx family */
8 #include <nuvoton/npcx/npcx-miwus-wui-map.dtsi>
10 /* Specific Wake-Up Unit Input (WUI) mapping configurations in npcx9 series */
13 npcx-miwus-wui-map {
14 compatible = "nuvoton,npcx-miwu-wui-map";
18 wui_cr_sin2: wui0-1-6-2 {
23 wui_io66: wui1-7-6 {
29 wui_i3c_sda: wui2-6-0 {
32 wui_iob6: wui2-6-6 {
[all …]
/Zephyr-Core-3.5.0/tests/kernel/sched/preempt/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
13 * to sleep. Then one is woken up (from a low priority manager
14 * thread) and arranges to wake up one other thread and validate that
20 * synchronous wake vs. a wake in a (offloaded) interrupt.
24 #error Preemption test requires single-CPU operation
39 /* Two threads at each priority (to test the case of waking up a
67 /* Command to worker: who to wake up */
101 /* A little bit of white-box inspection: check that all the in wakeup_src_thread()
114 /* Wake the src worker up */ in wakeup_src_thread()
118 while (do_sleep && !(src_thread->base.thread_state & _THREAD_PENDING)) { in wakeup_src_thread()
[all …]

12345678910