Home
last modified time | relevance | path

Searched +full:sample +full:- +full:period (Results 1 – 25 of 93) sorted by relevance

1234

/Zephyr-latest/samples/basic/blinky_pwm/src/
Dmain.c5 * SPDX-License-Identifier: Apache-2.0
9 * @file Sample app to demonstrate PWM.
25 uint32_t period; in main() local
29 printk("PWM-based blinky\n"); in main()
33 pwm_led0.dev->name); in main()
42 * the sample changes frequency at least once. in main()
50 "does not support a period at least %lu\n", in main()
59 period = max_period; in main()
61 ret = pwm_set_dt(&pwm_led0, period, period / 2U); in main()
66 printk("Using period %d\n", period); in main()
[all …]
/Zephyr-latest/samples/subsys/rtio/sensor_batch_processing/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 #address-cells = <1>;
10 #size-cells = <0>;
15 sample-period = <100>;
16 sample-size = <16>;
17 max-msgs = <8>;
24 sample-period = <120>;
25 sample-size = <16>;
26 max-msgs = <4>;
/Zephyr-latest/drivers/input/
DKconfig.cf11332 # SPDX-License-Identifier: Apache-2.0
23 int "Sample period"
27 Sample period in milliseconds when in polling mode.
DKconfig.cst816s2 # SPDX-License-Identifier: Apache-2.0
15 int "Sample period"
19 Sample period in milliseconds when in polling mode.
DKconfig.ft53363 # SPDX-License-Identifier: Apache-2.0
20 int "Sample period"
24 Sample period in milliseconds when in polling mode.
DKconfig.gt9113 # SPDX-License-Identifier: Apache-2.0
18 int "Sample period"
22 Sample period in milliseconds when in polling mode.
/Zephyr-latest/samples/basic/blinky_pwm/
Dsample.yaml1 sample:
4 sample.basic.blink_led:
5 filter: dt_alias_exists("pwm-led0") and dt_compat_enabled("pwm-leds")
7 - drivers
8 - pwm
15 - "PWM-based blinky"
16 - "Calibrating for channel [0-9]+"
17 - "Done calibrating; maximum/minimum periods [0-9]+/[0-9]+ nsec"
18 - "Using period [0-9]+"
19 - "Using period [0-9]+"
DREADME.rst1 .. zephyr:code-sample:: pwm-blinky
3 :relevant-api: pwm_interface
11 :zephyr:code-sample:`blinky` for a GPIO-based sample.
16 faster-then-slower blinking cycle then repeats forever.
18 Some PWM hardware cannot set the PWM period to 1 second to achieve the blinking
19 frequency of 1 Hz. This sample calibrates itself to what the hardware supports
20 at startup. The maximum PWM period is decreased appropriately until a value
28 <dt-guide>` alias, usually in the :ref:`BOARD.dts file
29 <devicetree-in-out-files>`.
39 .. list-table::
[all …]
/Zephyr-latest/dts/bindings/adc/
Dnxp,mcux-12b1msps-sar.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,mcux-12b1msps-sar"
8 include: [adc-controller.yaml, pinctrl-device.yaml]
17 clk-divider:
22 sample-period-mode:
25 description: sample period mode
27 "#io-channel-cells":
30 io-channel-cells:
31 - input
/Zephyr-latest/dts/bindings/comparator/
Dnxp,kinetis-acmp.yaml3 # SPDX-License-Identifier: Apache-2.0
11 compatible = "nxp,kinetis-acmp";
32 pinctrl-0 = <&acmp0_default>;
33 pinctrl-names = "default";
35 positive-mux-input = "IN0";
36 negative-mux-input = "IN1";
39 compatible: "nxp,kinetis-acmp"
42 - base.yaml
43 - pinctrl-device.yaml
52 nxp,enable-output-pin:
[all …]
/Zephyr-latest/dts/bindings/sensor/
Dnxp,mcux-qdec.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,mcux-qdec"
8 include: [pinctrl-device.yaml, sensor-device.yaml]
17 counts-per-revolution:
24 single-phase-mode:
31 filter-count:
39 filter-sample-period:
42 The sampling period (in IPBus clock cycles) of the decoder input signals.
44 Sample Period. If FILT_PER is 0 (default), then the input filter is
/Zephyr-latest/samples/basic/rgb_led/
DREADME.rst1 .. zephyr:code-sample:: rgb-led
3 :relevant-api: pwm_interface
10 This is a sample app which drives an RGB LED using the :ref:`PWM API <pwm_api>`.
12 There are three single-color component LEDs in an RGB LED. Each component LED
13 is driven by a PWM port where the pulse width is changed from zero to the period
14 indicated in Devicetree. Such period should be fast enough to be above the
16 being steady). The sample causes each LED component to step from dark to max
18 range of color changes from the RGB LED, and the sample repeats forever.
26 <dt-guide>` aliases, usually in the :ref:`BOARD.dts file
27 <devicetree-in-out-files>`:
[all …]
/Zephyr-latest/samples/subsys/rtio/sensor_batch_processing/dts/bindings/
Dvnd,sensor.yaml3 # SPDX-License-Identifier: Apache-2.0
12 sample-period:
16 sample-size:
20 max-msgs:
/Zephyr-latest/samples/boards/st/power_mgmt/blinky/
DREADME.rst1 .. zephyr:code-sample:: stm32_pm_blinky
4 Blink an LED using the GPIO API in a low-power context on STM32
9 This sample is a minimum application to demonstrate basic power management
16 prescaler of <32>, then the kernel sleep period can reach 65536 * 32/32768 = 64 seconds
19 .. _stm32-pm-blinky-sample-requirements:
26 in core sleep states, as LPTIM (:dtcompatible:`st,stm32-lptim`).
33 .. zephyr-app-commands::
34 :zephyr-app: samples/basic/blinky
39 After flashing, the LED starts to blink with a fixed period (SLEEP_TIME_MS).
/Zephyr-latest/samples/basic/fade_led/src/
Dmain.c5 * SPDX-License-Identifier: Apache-2.0
9 * @file Sample app to demonstrate PWM-based LED fade
25 uint32_t step = pwm_led0.period / NUM_STEPS; in main()
29 printk("PWM-based LED fade\n"); in main()
33 pwm_led0.dev->name); in main()
43 printk("Using pulse width %d%%\n", 100 * pulse_width / pwm_led0.period); in main()
47 if (pulse_width >= pwm_led0.period) { in main()
48 pulse_width = pwm_led0.period - step; in main()
53 pulse_width -= step; in main()
/Zephyr-latest/samples/drivers/led/pwm/
Dsample.yaml1 sample:
3 name: PWM LED sample
5 sample.drivers.led.led_pwm:
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"
[all …]
/Zephyr-latest/dts/bindings/input/
Dadc-keys.yaml2 # SPDX-License-Identifier: Apache-2.0
13 #include <dt-bindings/input/input-event-codes.h>
17 compatible = "adc-keys";
18 io-channels = <&adc 2>;
19 keyup-threshold-mv = <0>;
22 press-thresholds-mv = <1650>, /* KEY0 */
28 press-thresholds-mv = <2300>, /* KEY1 */
35 compatible: "adc-keys"
40 io-channels:
41 type: phandle-array
[all …]
Dgpio-qdec.yaml2 # SPDX-License-Identifier: Apache-2.0
15 #include <zephyr/dt-bindings/input/input-event-codes.h>
18 compatible = "gpio-qdec";
21 steps-per-period = <4>;
23 sample-time-us = <2000>;
24 idle-timeout-ms = <200>;
27 compatible: "gpio-qdec"
33 type: phandle-array
38 led-gpios:
39 type: phandle-array
[all …]
/Zephyr-latest/drivers/dai/intel/dmic/
DKconfig.dmic4 # SPDX-License-Identifier: Apache-2.0
29 number of channels, sample rate, and PCM format are
34 bool "Use parameters from topology - WIP"
71 int "Sync period per platform"
74 DMIC sync period used for:
76 From spec: E.g. for 19.2 MHz XTAL oscillator clock, 4 KHz sync period,
/Zephyr-latest/samples/basic/fade_led/
DREADME.rst1 .. zephyr:code-sample:: fade-led
3 :relevant-api: pwm_interface
15 period is taken from Devicetree. It should be fast enough to be above the
21 This sample has the same requirements and wiring considerations as the
22 :zephyr:code-sample:`pwm-blinky` sample.
27 To build and flash this sample for the :ref:`nrf52840dk_nrf52840`:
29 .. zephyr-app-commands::
30 :zephyr-app: samples/basic/fade_led
37 After flashing, the sample starts fading the LED as described above. It also
/Zephyr-latest/samples/basic/rgb_led/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
8 * @file Sample app to demonstrate PWM-based RGB LED control
30 printk("PWM-based RGB LED control\n"); in main()
40 for (pulse_red = 0U; pulse_red <= red_pwm_led.period; in main()
49 pulse_green <= green_pwm_led.period; in main()
60 pulse_blue <= blue_pwm_led.period; in main()
/Zephyr-latest/samples/subsys/mgmt/hawkbit/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
6 mainmenu "hawkBit sample configuration"
16 Polling mode runs automatically on a predefined period, probing the
/Zephyr-latest/tests/drivers/build_all/comparator/mcux_acmp/
Dmimxrt1176_mux_dac.dts4 * SPDX-License-Identifier: Apache-2.0
11 drive-strength = "high";
12 bias-pull-up;
13 slew-rate = "fast";
20 pinctrl-0 = <&acmp1_default>;
21 pinctrl-names = "default";
23 positive-mux-input = "IN2";
24 positive-port-input = "MUX";
25 negative-mux-input = "IN2";
26 negative-port-input = "DAC";
[all …]
/Zephyr-latest/samples/basic/servo_motor/
DREADME.rst1 .. zephyr:code-sample:: servo-motor
3 :relevant-api: pwm_interface
10 This is a sample app which drives a servomotor using the :ref:`PWM API <pwm_api>`.
12 The sample rotates a servomotor back and forth in the 180 degree range with a
15 This app is targeted for servomotor ROB-09065. The corresponding PWM pulse
23 The sample requires a servomotor whose signal pin is connected to a pin driven
24 by PWM. The servo must be defined in Devicetree using the ``pwm-servo``
25 compatible (part of the sample) and setting its node label to ``servo``. You
28 .. code-block:: devicetree
32 compatible = "pwm-servo";
[all …]
/Zephyr-latest/samples/subsys/mgmt/updatehub/
DKconfig1 # Copyright (c) 2018-2020 O.S.Systems
2 # SPDX-License-Identifier: Apache-2.0
4 mainmenu "Sample app Configuration"
18 Polling mode runs automatically on a predefined period, probing the
25 string "WIFI SSID - Network name"
28 string "WIFI PSK - Network password key"

1234