/Zephyr-latest/samples/boards/espressif/deep_sleep/ |
D | README.rst | 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 [all …]
|
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 11 This option enables wake-up from deep sleep using GPIO2 and 12 GPIO4. The sample enables internal pull-down on EXT1 pins to 13 avoid random wake-ups. Otherwise, external pull-down should 14 be used for the same purpose. To trigger a wake-up, connect 22 This option enables wake-up from GPIO. Only GPIO0~5 can be used 23 as wake-up source. Be aware that when low level is used to trigger 24 wake-up, an external pull-up resistance is necessary.
|
/Zephyr-latest/dts/bindings/power/ |
D | st,stm32-pwr.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "st,stm32-pwr" 14 wkup-pins-nb: 17 Max nbr of system wake-up pins. 18 For example wkup-pins-nb = <8>; on the stm32u5 20 wkup-pin-srcs: 23 Number of wake-up GPIO sources to select from for each wake-up pin. 25 wake-up pin. 27 For example, each wake-up pin on STM32U5 is associated with 28 4 wake-up sources, 3 of them correspond to GPIOs. [all …]
|
D | atmel,sam-supc.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Atmel SAM SUPC (Supply-Controller) controller 8 monitoring of the device. It have a special feature that it can wake-up the 9 device from a low-power state using special peripherals as wake-up sources. 11 The dedicated peripherals that can wake-up the core supply domain are: RTC, 13 inform the wakeup-source-id property on their respective nodes. 17 wakeup-source-id = <&supc SUPC_WAKEUP_SOURCE_RTC>; 21 The special peripheral will wake-up the device only when the standard property 22 wakeup-source is defined, e.g.: 26 wakeup-source; [all …]
|
/Zephyr-latest/soc/nuvoton/npcx/common/ |
D | soc_miwu.h | 4 * 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 …]
|
D | power.c | 4 * 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 …]
|
D | soc_power.h | 4 * SPDX-License-Identifier: Apache-2.0 15 * @brief Disable UART RX wake-up interrupt. 20 * @brief Enable UART RX wake-up interrupt.
|
/Zephyr-latest/soc/st/stm32/common/ |
D | stm32_wkup_pins.c | 4 * SPDX-License-Identifier: Apache-2.0 19 #include <zephyr/dt-bindings/power/stm32_pwr.h> 42 * @brief flags for wake-up pin polarity configuration 46 /* detection of wake-up event on the high level : rising edge */ 48 /* detection of wake-up event on the low level : falling edge */ 54 * @brief flags for configuration of pull-ups & pull-downs of GPIO ports 55 * that are associated with wake-up pins 66 * @brief Structure for storing the devicetree configuration of a wake-up pin. 71 /* GPIO pin(s) associated with wake-up pin */ 88 * @brief Get wake-up pin configuration from a given devicetree node. [all …]
|
/Zephyr-latest/dts/bindings/base/ |
D | pm.yaml | 2 # 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 zephyr,pm-device-runtime-auto: 25 zephyr,disabling-power-states:
|
/Zephyr-latest/samples/boards/st/power_mgmt/wkup_pins/ |
D | README.rst | 1 .. zephyr:code-sample:: stm32_pm_gpio_wkup_src 2 :name: GPIO as a wake-up pin source 3 :relevant-api: sys_poweroff gpio_interface 5 Use a GPIO as a wake-up pin source. 10 This sample is a minimum application to demonstrate using a wake-up pin with a GPIO as 14 Press the user button designated in boards's devicetree overlay as "wkup-src" to power it on again. 16 .. _gpio-as-a-wkup-pin-src-sample-requirements: 21 The SoC should support POWEROFF functionality & have a wake-up pin that corresponds 24 Make sure that wake-up pins are configured in SoC dtsi file. 31 .. zephyr-app-commands:: [all …]
|
/Zephyr-latest/boards/sparkfun/thing_plus_matter_mgm240p/dts/bindings/ |
D | silabs,gecko-wake-up-trigger.yaml | 2 # 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-latest/boards/silabs/dev_kits/xg24_dk2601b/dts/bindings/ |
D | silabs,gecko-wake-up-trigger.yaml | 2 # 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-latest/boards/silabs/dev_kits/xg24_ek2703a/dts/bindings/ |
D | silabs,gecko-wake-up-trigger.yaml | 2 # 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-latest/boards/silabs/dev_kits/sltb010a/dts/bindings/ |
D | silabs,gecko-wake-up-triggers.yaml | 2 # 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-latest/boards/silabs/dev_kits/xg27_dk2602a/dts/bindings/ |
D | silabs,gecko-wake-up-triggers.yaml | 2 # 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-latest/samples/boards/nordic/system_off/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 11 bool "Use button to wake up device from system off" 17 bool "Use GRTC to wake up device from system off" 22 bool "Use COMP to wake up device from system off"
|
/Zephyr-latest/include/zephyr/drivers/misc/stm32_wkup_pins/ |
D | stm32_wkup_pins.h | 4 * SPDX-License-Identifier: Apache-2.0 9 * @brief Public APIs for STM32 PWR wake-up pins configuration 22 * @brief Configure a GPIO pin as a source for STM32 PWR wake-up pins 26 * @return 0 on success, -EINVAL on invalid values 31 * @brief Enable or Disable pull-up and pull-down configuration for 32 * GPIO Ports that are associated with STM32 PWR wake-up pins
|
/Zephyr-latest/dts/bindings/wifi/ |
D | infineon,airoc-wifi.yaml | 4 # SPDX-License-Identifier: Apache-2.0 7 AIROC Wi-Fi Connectivity. 9 Example of enabling AIROC Wi-Fi device (for SDIO): 14 pinctrl-0 = <&p2_4_sdio_cmd &p2_5_sdio_clk &p2_0_sdio_data0 16 pinctrl-names = "default"; 19 airoc-wifi { 21 compatible = "infineon,airoc-wifi-sdio"; 23 /* Wi-Fi control gpios */ 24 wifi-reg-on-gpios = <&gpio_prt2 6 GPIO_ACTIVE_HIGH>; 25 wifi-host-wake-gpios = <&gpio_prt0 4 GPIO_ACTIVE_HIGH>; [all …]
|
/Zephyr-latest/include/zephyr/drivers/misc/ |
D | README | 4 Zephyr Device Drivers API. Such drivers have only device-specific API providing 16 rendering. These operations are controlled by a vendor-specific API designed 19 * STM32 Wake-up Pins 20 STM32 wake-up pins are part of the Power Control (PWR) peripheral. 21 They can be used to wake-up the system from Poweroff through GPIO pins.
|
/Zephyr-latest/samples/boards/espressif/deep_sleep/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 21 #error "Unsupported: wakeup-button alias is not defined" 36 int pin = __builtin_ffsll(wakeup_pin_mask) - 1; in main() 38 printk("Wake up from GPIO %d\n", pin); in main() 40 printk("Wake up from GPIO\n"); in main() 51 int pin = __builtin_ffsll(wakeup_pin_mask) - 1; in main() 53 printk("Wake up from GPIO %d\n", pin); in main() 55 printk("Wake up from GPIO\n"); in main() 61 printk("Wake up from timer.\n"); in main() 86 /* enable pull-down on ext1 pins to avoid random wake-ups */ in main() [all …]
|
/Zephyr-latest/kernel/include/ |
D | ksched.h | 2 * 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, "") 146 __ASSERT(arch_current_thread()->base.sched_locked != 1U, ""); in z_sched_lock() 148 --arch_current_thread()->base.sched_locked; in z_sched_lock() 155 __ASSERT_NO_MSG(thread->base.pended_on); in pended_on_thread() 157 return thread->base.pended_on; in pended_on_thread() 163 _priq_wait_remove(&pended_on_thread(thread)->waitq, thread); in unpend_thread_no_timeout() 165 thread->base.pended_on = NULL; in unpend_thread_no_timeout() [all …]
|
/Zephyr-latest/drivers/counter/ |
D | Kconfig.mcux_snvs | 4 # SPDX-License-Identifier: Apache-2.0 21 bool "IMX SNVS wake-up on SRTC alarm" 25 Assert Wake-Up Interrupt on SRTC alarm
|
/Zephyr-latest/dts/bindings/bluetooth/ |
D | infineon,cyw43xxx-bt-hci.yaml | 4 # 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"; 22 hw-flow-control; 24 bt-hci { 26 compatible = "infineon,cyw43xxx-bt-hci"; 27 bt-reg-on-gpios = <&gpio_prt3 4 (GPIO_ACTIVE_HIGH)>; 29 fw-download-speed = <3000000>; [all …]
|
/Zephyr-latest/soc/nuvoton/numaker/m2l31x/ |
D | poweroff.c | 4 * SPDX-License-Identifier: Apache-2.0 16 /* Clear all wake-up flag */ in z_sys_poweroff() 17 CLK->PMUSTS |= CLK_PMUSTS_CLRWK_Msk; in z_sys_poweroff() 19 /* Select Power-down mode */ in z_sys_poweroff() 22 /* Enable RTC wake-up */ in z_sys_poweroff() 25 /* Enter to Power-down mode */ in z_sys_poweroff()
|
/Zephyr-latest/soc/nuvoton/numaker/m46x/ |
D | poweroff.c | 4 * SPDX-License-Identifier: Apache-2.0 16 /* Clear all wake-up flag */ in z_sys_poweroff() 17 CLK->PMUSTS |= CLK_PMUSTS_CLRWK_Msk; in z_sys_poweroff() 19 /* Select Power-down mode */ in z_sys_poweroff() 22 /* Enable RTC wake-up */ in z_sys_poweroff() 25 /* Enter to Power-down mode */ in z_sys_poweroff()
|