/Zephyr-latest/doc/services/resource_management/ |
D | index.rst | 23 On-Off Manager 26 An on-off manager supports an arbitrary number of clients of a service 32 * The stable states are off, on, and error. The service always begins 33 in the off state. The service may also be in a transition to a given 37 state) and cancel (to reclaim client data from an in-progress 38 transition). The service manages the state based on calls to 40 * The service transitions from off to on when first client request is 42 * The service transitions from on to off when last client release is 45 transition from off to on, from on to off, and optionally from an 46 error state to off. Transitions must be invokable from both thread [all …]
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_mchp_xec.c | 5 * SPDX-License-Identifier: Apache-2.0 28 /* Minimal on/off are 1 & 1 both are incremented, so 4. 33 /* Maximal on/off are UINT16_T, both are incremented. 61 uint32_t on; member 62 uint32_t off; member 110 static uint32_t xec_compute_frequency(uint32_t clk, uint32_t on, uint32_t off) in xec_compute_frequency() argument 112 return ((clk * XEC_PWM_FREQ_PF)/((on + 1) + (off + 1))); in xec_compute_frequency() 135 uint32_t *on, uint32_t *off) in xec_compute_on_off() argument 141 *on = ((on_off * dc) / XEC_PWM_DC_PF) - 1; in xec_compute_on_off() 142 *off = on_off - *on - 2; in xec_compute_on_off() [all …]
|
/Zephyr-latest/boards/st/nucleo_h563zi/ |
D | st_morpho_connector.dtsi | 3 * SPDX-License-Identifier: Apache-2.0 6 #include <zephyr/dt-bindings/gpio/gpio.h> 7 #include <zephyr/dt-bindings/gpio/st-morpho-header.h> 10 st_morpho_header: st-morpho-header { 11 compatible = "st-morpho-header"; 12 #gpio-cells = <2>; 13 gpio-map-mask = <ST_MORPHO_PIN_MASK 0x0>; 14 gpio-map-pass-thru = <0x0 GPIO_DT_FLAGS_MASK>; 15 gpio-map = <ST_MORPHO_L_1 0 &gpioc 10 0>, 26 <ST_MORPHO_L_25 0 &gpioc 14 0>, /* SB45=ON, R34=OFF */ [all …]
|
/Zephyr-latest/samples/boards/nxp/mimxrt1060_evk/system_off/ |
D | README.rst | 1 .. zephyr:code-sample:: mimxrt1060_evk_system_off 2 :name: RT1060 System Off 3 :relevant-api: sys_poweroff 5 Use soft-off on MIMXRT1060-EVK. 11 soft off on NXP i.MX RT platforms. The functional behavior is: 13 * Busy-wait for 2 seconds 14 * Turn the system off after enabling wakeup through a button press, and 27 .. zephyr-app-commands:: 28 :zephyr-app: samples/boards/nxp/mimxrt1060_evk/system_off 37 3. Device will turn on and idle for 2 seconds [all …]
|
/Zephyr-latest/samples/drivers/led/pwm/ |
D | sample.yaml | 6 filter: dt_compat_enabled("pwm-leds") 16 - "Testing LED \\d+" 17 - "Turned on" 18 - "Turned off" 19 - "Increasing brightness gradually" 20 - "Decreasing brightness gradually" 21 - "Blinking on: ([0-9]+) msec, off: ([0-9]+) msec" 22 - "(Blinking on: ([0-9]+) msec, off: ([0-9]+) msec|Cycle period not supported)" 23 - "Turned off, loop end"
|
D | README.rst | 1 .. zephyr:code-sample:: led-pwm 3 :relevant-api: led_interface 10 This sample allows to test the led-pwm driver. The first "pwm-leds" compatible 20 - Turning on 21 - Turning off 22 - Increasing brightness gradually 23 - Decreasing brightness gradually 24 - Blinking on: 0.1 sec, off: 0.1 sec 25 - Blinking on: 1 sec, off: 1 sec 26 - Turning off [all …]
|
/Zephyr-latest/soc/altr/zephyr_nios2f/cpu/ |
D | ghrd_10m50da.qsf | 1 # -------------------------------------------------------------------------- # 3 # Copyright (C) 1991-2016 Altera Corporation. All rights reserved. 18 # -------------------------------------------------------------------------- # 24 # -------------------------------------------------------------------------- # 37 # -------------------------------------------------------------------------- # 40 set_global_assignment -name FAMILY "MAX 10" 41 set_global_assignment -name DEVICE 10M50DAF484C6GES 42 set_global_assignment -name ORIGINAL_QUARTUS_VERSION 16.0.0 43 set_global_assignment -name PROJECT_CREATION_TIME_DATE "16:01:48 APRIL 27, 2016" 44 set_global_assignment -name LAST_QUARTUS_VERSION "17.0.0 Standard Edition" [all …]
|
/Zephyr-latest/samples/boards/nordic/system_off/ |
D | README.rst | 1 .. zephyr:code-sample:: nrf_system_off 2 :name: System Off 3 :relevant-api: sys_poweroff subsys_pm_device 5 Use deep sleep on Nordic platforms. 11 deep sleep on Nordic platforms. 18 number of times system off was entered, and total uptime since initial power-on 20 RAM is configured to keep the containing section powered while in system-off mode. 31 ----------------- 33 .. code-block:: console 35 *** Booting Zephyr OS build v2.3.0-rc1-204-g5f2eb85f728d *** [all …]
|
/Zephyr-latest/samples/boards/ti/cc13x2_cc26x2/system_off/ |
D | README.rst | 1 .. zephyr:code-sample:: ti_cc13x2_cc26x2_system_off 2 :name: CC13x2/CC26x2 System Off 4 Exercise the various sleep modes on TI CC13x2/CC26x2 platforms. 10 the various sleep modes on TI CC13x2/CC26x2 platforms. The functional 13 * Busy-wait for 5 seconds 16 * Turn the system off after enabling wakeup through a button press 30 .. zephyr-app-commands:: 31 :zephyr-app: samples/boards/ti/cc13x2_cc26x2/system_off 39 power-cycle it. 41 3. Hit the Reset button on the LaunchPad. [all …]
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | Kconfig.ipso | 2 # SPDX-License-Identifier: Apache-2.0 22 depends on LWM2M_IPSO_TEMP_SENSOR 29 depends on LWM2M_IPSO_TEMP_SENSOR 148 light. It allows a light to be turned on or off and its dimmer 155 depends on LWM2M_IPSO_LIGHT_CONTROL 163 This Object is used to used to represent a 1-3 axis accelerometer. 168 depends on LWM2M_IPSO_ACCELEROMETER 175 depends on LWM2M_IPSO_ACCELEROMETER 197 depends on LWM2M_IPSO_BUZZER 204 depends on LWM2M_IPSO_BUZZER [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | onoff.h | 5 * SPDX-License-Identifier: Apache-2.0 20 * @defgroup resource_mgmt_onoff_apis On-Off Service APIs 50 * @brief Value exposed by ONOFF_STATE_MASK when service is off. 55 * @brief Value exposed by ONOFF_STATE_MASK when service is on. 67 * transitioning to on. 73 * transitioning to off. 88 * @brief Signature used to notify an on-off manager that a transition 91 * Functions of this type are passed to service-specific transition 98 * non-negative on success, or a negative error code. If an error is 112 * The start function will be called only from the off state. [all …]
|
/Zephyr-latest/subsys/settings/src/ |
D | settings_priv.h | 2 * Copyright (c) 2018-2023 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 23 /* Get len of record without alignment to write-block-size */ 27 off_t off, void *cb_arg); 30 off_t off, void *cb_arg); 33 off_t off, void *cb_arg); 37 off_t off; member 51 off_t seek; /* offset of id-value pair within the file */ 68 * @retval 0 on success, 69 * -ERCODE on storage errors [all …]
|
/Zephyr-latest/samples/drivers/led/lp5562/ |
D | README.rst | 1 .. zephyr:code-sample:: lp5562 3 :relevant-api: led_interface 13 1. turn on LEDs to be red 14 2. turn on LEDs to be green 15 3. turn on LEDs to be blue 16 4. turn on LEDs to be white 17 5. turn on LEDs to be yellow 18 6. turn on LEDs to be purple 19 7. turn on LEDs to be cyan 20 8. turn on LEDs to be orange [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | uart_pipe.h | 11 * SPDX-License-Identifier: Apache-2.0 25 * This function is called when new data is received on UART. The off parameter 27 * when the complete data is received and a new buffer is provided off should 31 * @param off Data offset on next received and accumulated data length. 33 * @return Buffer to be used on next receive. 35 typedef uint8_t *(*uart_pipe_recv_cb)(uint8_t *buf, size_t *off); 43 * @param cb Callback to be called on data reception. 54 * @return 0 on success or negative error
|
/Zephyr-latest/samples/boards/nxp/mimxrt595_evk/system_off/ |
D | README.rst | 1 .. zephyr:code-sample:: mimxrt595_evk_system_off 2 :name: RT595 System Off 3 :relevant-api: sys_poweroff 5 Use soft-off on MIMXRT595-EVK. 11 soft off on NXP i.MX RT platforms. The functional behavior is: 13 * Busy-wait for 2 seconds 14 * Turn the system off after enabling wakeup through RTC and set alarm 20 This application uses MIMXRT595-EVK for the demo. 25 .. zephyr-app-commands:: 26 :zephyr-app: samples/boards/nxp/mimxrt595_evk/system_off [all …]
|
/Zephyr-latest/samples/drivers/led/pwm/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 28 * @brief Run tests on a single LED using the LED API syscalls. 38 LOG_INF("Testing LED %d - %s", led, led_label[led] ? : "no label"); in run_led_test() 40 /* Turn LED on. */ in run_led_test() 46 LOG_INF(" Turned on"); in run_led_test() 49 /* Turn LED off. */ in run_led_test() 55 LOG_INF(" Turned off"); in run_led_test() 72 for (level = MAX_BRIGHTNESS; level >= 0; level--) { in run_led_test() 90 "on: " STRINGIFY(CONFIG_BLINK_DELAY_SHORT) " msec, " in run_led_test() 91 "off: " STRINGIFY(CONFIG_BLINK_DELAY_SHORT) " msec"); in run_led_test() [all …]
|
/Zephyr-latest/include/zephyr/dt-bindings/gpio/ |
D | nordic-npm1300-gpio.h | 4 * SPDX-License-Identifier: Apache-2.0 10 * @brief nPM1300-specific GPIO Flags 11 * @defgroup gpio_interface_npm1300 nPM1300-specific GPIO Flags 16 * - Bit 8: Drive strength (0=1mA, 1=6mA) 17 * - Bit 9: Debounce (0=OFF, 1=ON) 18 * - Bit 10: Watchdog reset (0=OFF, 1=ON) 19 * - Bit 11: Power loss warning (0=OFF, 1=ON) 72 /** Off */ 74 /** On */ 90 /** Off */ [all …]
|
/Zephyr-latest/include/zephyr/arch/common/ |
D | pm_s2ram.h | 26 * @brief System off function 29 * to power the system off after the CPU context has been saved. 31 * This function never returns if the system is powered off. If the operation 35 * @retval none The system is powered off. 36 * @retval -EBUSY The system is busy and cannot be powered off at this time. 37 * @retval -errno Other error codes. 42 * @brief Save CPU context on suspend 44 * This function is used on suspend-to-RAM (S2RAM) to save the CPU context in 45 * (retained) RAM before powering the system off using the provided function. 49 * must be restored on resume to let the platform resume its execution from the [all …]
|
/Zephyr-latest/dts/bindings/gnss/ |
D | luatos,air530z.yaml | 2 # SPDX-License-Identifier: Apache-2.0 9 - uart-device.yaml 12 on-off-gpios: 13 type: phandle-array 15 Identifies the On-Off pin for entering into low-power mode.
|
/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 11 a source to power on an STM32 SoC after Poweroff. 13 The system will power off automatically ``WAIT_TIME_US`` us after boot. 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 [all …]
|
/Zephyr-latest/dts/bindings/display/ |
D | st,stm32-ltdc.yaml | 1 # Copyright (c) 2022, Byte-Lab d.o.o. <dev@byte-lab.com> 3 # SPDX-License-Identifier: Apache-2.0 5 description: STM32 LCD-TFT display controller 7 compatible: "st,stm32-ltdc" 9 include: [lcd-controller.yaml, pinctrl-device.yaml, reset-device.yaml] 12 disp-on-gpios: 13 type: phandle-array 15 Display on/off GPIO pin. 18 bl-ctrl-gpios: 19 type: phandle-array [all …]
|
/Zephyr-latest/boards/intel/socfpga_std/cyclonev_socdk/support/ |
D | appli_debug_cmd.gdb | 2 # SPDX-License-Identifier: Apache-2.0 7 set confirm off 8 set pagination off 9 set remote interrupt-on-connect off 12 symbol-file -readnow ./build/zephyr/zephyr.elf
|
/Zephyr-latest/drivers/ieee802154/ |
D | Kconfig.dw1000 | 2 # SPDX-License-Identifier: Apache-2.0 7 depends on DT_HAS_DECAWAVE_DW1000_ENABLED 13 int "SNIFF on time" 17 SNIFF on time in unit of PAC. The minimum on time is the duration 18 of two PACs. The SNIFF counter always adds 1 PAC unit to the on-time 19 count. The SNIFF_ONT value should be in range of 1-15. 23 int "SNIFF off time" 27 SNIFF off time in unit of approximate 1 microsecond.
|
/Zephyr-latest/samples/drivers/led/pca9633/ |
D | README.rst | 1 .. zephyr:code-sample:: pca9633 3 :relevant-api: led_interface 13 1. turn on LEDs 14 2. turn off LEDs 16 4. turn off LEDs 18 6. turn off LEDs 24 a PCA9633 LED driver on the bus I2C Arduino. 26 .. zephyr-app-commands:: 27 :zephyr-app: samples/drivers/led/pca9633 38 - PCA9633: https://www.nxp.com/docs/en/data-sheet/PCA9633.pdf
|
/Zephyr-latest/doc/services/pm/ |
D | power_domain.rst | 1 .. _pm-power-domain: 12 that device B is on the same power domain and should also be configured into a 15 Power domains are optional on Zephyr, to enable this feature the 18 When a power domain turns itself on or off, it is the responsibility of the 25 .. _pm-domain-work-flow: 42 action -> devA [label="pm_device_get()"] 43 devA:se -> domain:n [label="pm_device_get()"] 45 domain -> devB [label="action_cb(PM_DEVICE_ACTION_TURN_ON)"] 46 domain:sw -> devA:sw [label="action_cb(PM_DEVICE_ACTION_TURN_ON)"] 50 ---------------------- [all …]
|