/Zephyr-latest/dts/bindings/input/ |
D | gpio-qdec.yaml | 2 # 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/boards/ene/kb1200_evb/ |
D | kb1200_evb.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include <zephyr/dt-bindings/input/input-event-codes.h> 11 #include <ene/kb1200-pinctrl.dtsi> 12 #include <dt-bindings/i2c/i2c.h> 27 zephyr,shell-uart = &uart0; 31 compatible = "gpio-keys"; 40 compatible = "gpio-leds"; 55 pinctrl-0 = <&uart0_tx_gpio03 &uart0_rx_gpio01>; 56 pinctrl-names = "default"; [all …]
|
/Zephyr-latest/dts/bindings/tach/ |
D | ene,kb1200-tach.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: ENE, KB1200-Tachometer node 6 compatible: "ene,kb1200-tach" 8 include: [tach.yaml, pinctrl-device.yaml] 14 pulses-per-round: 19 sample-time-us: 23 - 2 24 - 8 25 - 16 26 - 64 [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/ |
D | lll_prof.c | 2 * Copyright (c) 2018-2019 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 28 static inline void sample(uint32_t *timestamp); 60 sample(×tamp_radio); in lll_prof_enter_radio() 72 sample(×tamp_lll); in lll_prof_enter_lll() 84 sample(×tamp_ull_high); in lll_prof_enter_ull_high() 96 sample(×tamp_ull_low); in lll_prof_enter_ull_low() 108 /* sample the packet timer, use it to calculate ISR latency in lll_prof_latency_capture() 125 /* get the ISR latency sample */ in lll_prof_latency_get() 129 /* Get the elapsed time in us since on-air radio packet end to ISR in lll_prof_latency_get() [all …]
|
D | lll_vendor.h | 2 * Copyright (c) 2018-2019 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 13 * resolutions that consume CPU time between radio events. 15 * Measurements based on central_gatt_write and peripheral_gatt_write sample on 42 /* Worst-case time margin needed after event end-time in the air 43 * (done/preempt race margin + power-down/chain delay) 50 /* Inter-Event Space (IES) */ 55 * and ticker_update. Set to 32 us, which is ~1 tick with 32768 Hz 65 /* Turnaround time between RX and TX is based on CPU execution speed. It also 66 * includes radio ramp up time. The value must meet hard deadline of `150 us` [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/lll/ |
D | lll_prof.c | 2 * Copyright (c) 2018-2019 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 20 static uint8_t latency_min = (uint8_t) -1; 23 static uint8_t cputime_min = (uint8_t) -1; 30 /* sample the packet timer, use it to calculate ISR latency in lll_prof_latency_capture() 52 /* get the ISR latency sample */ in lll_prof_cputime_capture() 55 /* sample the packet timer again, use it to calculate ISR execution time in lll_prof_cputime_capture() 66 /* calculate the elapsed time in us since on-air radio packet end in lll_prof_send() 70 latency = timestamp_latency - timestamp_radio_end; in lll_prof_send() 72 latency = timestamp_latency - radio_tmr_end_get(); in lll_prof_send() [all …]
|
/Zephyr-latest/dts/bindings/iio/afe/ |
D | voltage-divider.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 compatible: "voltage-divider" 13 io-channels: 18 output-ohms: 24 full-ohms: 30 resistance-based sensor. 32 power-gpios: 33 type: phandle-array 40 power-on-sample-delay-us: 45 `power-gpios`. In most cases the switched voltage rail will [all …]
|
/Zephyr-latest/drivers/sensor/sensirion/shtcx/ |
D | shtcx.h | 4 * SPDX-License-Identifier: Apache-2.0 24 /* Soft reset time is 230us for shtc1 and 240us for shtc3 */ 65 struct shtcx_sample sample; member
|
/Zephyr-latest/drivers/adc/ |
D | adc_ite_it8xxx2.c | 4 * SPDX-License-Identifier: Apache-2.0 32 /* ADC sample time delay (Unit:us) */ 38 #define ADC_CHANNEL_OFFSET(ch) ((ch)-CHIP_ADC_CH13-ADC_CHANNEL_SHIFT) 77 * The sample buffer pointer should be prepared 85 * this config will be used at initial time 98 uint8_t channel_id = channel_cfg->channel_id; in adc_it8xxx2_channel_setup() 100 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_it8xxx2_channel_setup() 101 LOG_ERR("Selected ADC acquisition time is not valid"); in adc_it8xxx2_channel_setup() 102 return -EINVAL; in adc_it8xxx2_channel_setup() 109 return -EINVAL; in adc_it8xxx2_channel_setup() [all …]
|
D | adc_cc13xx_cc26xx.c | 4 * SPDX-License-Identifier: Apache-2.0 39 /** Internal sample time unit conversion entry. */ 45 /** Maps standard unit sample times (us) to internal (raw hal_ti register) values */ 85 data->repeat_buffer = data->buffer; in adc_context_start_sampling() 87 AUXADCEnableSync(data->ref_source, data->sample_time, AUXADC_TRIGGER_MANUAL); in adc_context_start_sampling() 98 data->buffer = data->repeat_buffer; in adc_context_update_buffer_pointer() 100 data->buffer++; in adc_context_update_buffer_pointer() 106 struct adc_cc13xx_cc26xx_data *data = dev->data; in adc_cc13xx_cc26xx_init() 107 const struct adc_cc13xx_cc26xx_cfg *config = dev->config; in adc_cc13xx_cc26xx_init() 109 data->dev = dev; in adc_cc13xx_cc26xx_init() [all …]
|
/Zephyr-latest/samples/modules/cmsis_dsp/moving_average/ |
D | README.rst | 1 .. zephyr:code-sample:: cmsis-dsp-moving-average 2 :name: CMSIS-DSP moving average 4 Use the CMSIS-DSP library to calculate the moving average of a signal. 9 This sample demonstrates how to use the CMSIS-DSP library to calculate the moving average of a 12 It can be run on any board supported in Zephyr, but note that CMSIS-DSP is specifically optimized 13 for ARM Cortex-A and Cortex-M processors. 19 The sample uses a very simple input signal of 32 samples, and computes the moving average using a 21 CMSIS-DSP function, and displayed on the console. 24 In order to allow an easy comparison of the efficiency of the CMSIS-DSP library when used on ARM 25 processors vs. other architectures, the sample outputs the time and number of cycles it took to [all …]
|
/Zephyr-latest/tests/boards/nrf/coresight_stm/pytest/ |
D | test_stm.py | 4 # SPDX-License-Identifier: Apache-2.0 12 from time import sleep 24 # https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/misc/coresight/nrf_etr.c 49 def _analyse_autoconf(filepath: str) -> None: 68 def _check_benchmark_results(output: str, core: str, constraints: STMLimits) -> None: 77 "regex": rf"{core}: Timing for log message with 0 arguments: (.+)us", 81 "regex": rf"{core}: Timing for log message with 1 argument: (.+)us", 85 "regex": rf"{core}: Timing for log message with 2 arguments: (.+)us", 89 "regex": rf"{core}: Timing for log message with 3 arguments: (.+)us", 93 "regex": rf"{core}: Timing for log_message with string: (.+)us", [all …]
|
/Zephyr-latest/tests/benchmarks/latency_measure/src/ |
D | thread.c | 4 * SPDX-License-Identifier: Apache-2.0 8 * @file measure time for various thread operations 40 /* 3. Finish measuring time to start <alt_thread> */ in alt_thread_entry() 42 timestamp.sample = timing_timestamp_get(); in alt_thread_entry() 44 /* 4. Let <start_thread> process the time measurement. */ in alt_thread_entry() 48 /* 7. Begin measuring time to suspend active thread (self/alt_thread) */ in alt_thread_entry() 50 timestamp.sample = timing_timestamp_get(); in alt_thread_entry() 53 /* 10. Finish measuring time to resume <alt_thread> (self) */ in alt_thread_entry() 55 timestamp.sample = timing_timestamp_get(); in alt_thread_entry() 57 /* 11. Lower the priority so <start_thread> can terminate us. */ in alt_thread_entry() [all …]
|
/Zephyr-latest/samples/boards/nordic/coresight_stm/pytest/ |
D | test_stm.py | 4 # SPDX-License-Identifier: Apache-2.0 11 from time import sleep 21 # https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/misc/coresight/nrf_etr.c#L102 34 def _analyse_autoconf(filepath: str) -> None: 53 def _check_benchmark_results(output: str, core: str) -> None: 60 rf"{core}: Timing for log message with 0 arguments: (.+)us", output 65 rf"{core}: Timing for log message with 1 argument: (.+)us", output 70 rf"{core}: Timing for log message with 2 arguments: (.+)us", output 75 rf"{core}: Timing for log message with 3 arguments: (.+)us", output 80 rf"{core}: Timing for log_message with string: (.+)us", output [all …]
|
/Zephyr-latest/samples/drivers/virtualization/ivshmem/doorbell/ |
D | README.rst | 1 .. zephyr:code-sample:: ivshmem-doorbell 3 :relevant-api: ivshmem 5 Use Inter-VM Shared Memory to exchange messages between two processes running on different 11 This sample shows how two processes on different operating systems can 20 ivshmem-server needs to be available and running. The server is available in 21 Zephyr SDK or pre-built in some distributions. Otherwise, it is available in 24 ivshmem-client needs to be available as it is employed in this sample as an 25 external application. The same conditions of ivshmem-server applies to the 26 ivshmem-server, as it is also available via QEMU. 31 Building ivshmem-doorbell is as follows: [all …]
|
/Zephyr-latest/tests/drivers/build_all/input/ |
D | app.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 17 #io-channel-cells = <1>; 18 #address-cells = <1>; 19 #size-cells = <0>; 26 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 32 gpio-controller; 34 #gpio-cells = <0x2>; [all …]
|
/Zephyr-latest/doc/develop/test/twister/ |
D | twister_blackbox.rst | 23 Sample test file 35 .. code-block:: console 37 twister -i --outdir $OUTDIR -T $TEST_DATA/tests -y --level $LEVEL 38 --test-config $TEST_DATA/test_config.yaml -p qemu_x86 -p frdm_k64f 40 It presumes a CLI with the ``zephyr-env.sh`` or ``zephyr-env.cmd`` already run. 42 Such a test provides us with all the outputs we typically expect of a Twister run thanks to 48 ``twister-out`` directories. Most of the time, we will use the ``out_path`` fixture in conjunction 49 with ``--outdir`` flag (L52) to keep test-generated files in temporary directories. 59 - allows us to use ``clear_log`` fixture from ``conftest.py`` . 63 - this is an example of ``pytest`` 's test parametrization. [all …]
|
/Zephyr-latest/samples/subsys/display/lvgl/boards/ |
D | native_posix.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/lvgl/lvgl.h> 16 compatible = "gpio-qdec"; 18 steps-per-period = <4>; 20 sample-time-us = <2000>; 21 idle-timeout-ms = <200>; 25 compatible = "gpio-keys"; 59 compatible = "zephyr,lvgl-button-input"; 61 input-codes = <INPUT_KEY_B>; [all …]
|
/Zephyr-latest/boards/nxp/frdm_ke17z/ |
D | frdm_ke17z.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 10 #include "frdm_ke17z-pinctrl.dtsi" 11 #include <zephyr/dt-bindings/input/input-event-codes.h> 12 #include <zephyr/dt-bindings/pwm/pwm.h> 16 compatible = "nxp,frdm-ke17z", "nxp,ke17z", "nxp,mke17z7"; 25 pwm-led0 = &red_pwm_led; 26 pwm-led1 = &green_pwm_led; 27 pwm-led2 = &blue_pwm_led; 28 mcuboot-button0 = &user_button_0; [all …]
|
/Zephyr-latest/boards/nxp/frdm_ke17z512/ |
D | frdm_ke17z512.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 10 #include "frdm_ke17z512-pinctrl.dtsi" 11 #include <zephyr/dt-bindings/input/input-event-codes.h> 12 #include <zephyr/dt-bindings/pwm/pwm.h> 21 zephyr,code-partition = &slot0_partition; 22 zephyr,uart-mcumgr = &lpuart2; 24 zephyr,shell-uart = &lpuart2; 34 pwm-led0 = &red_pwm_led; 35 pwm-led1 = &green_pwm_led; [all …]
|
/Zephyr-latest/drivers/sensor/ti/ti_hdc20xx/ |
D | ti_hdc20xx.c | 4 * SPDX-License-Identifier: Apache-2.0 35 /* Reset time: not in the datasheet, but found by trial and error */ 38 /* Conversion time for 14-bit resolution. Temperature needs 660us and humidity 610us */ 43 #define TI_HDC20XX_TEMP_OFFSET -2654208 /* = -40.5 * 2^16 */ 66 k_sem_give(&data->sem_int); in ti_hdc20xx_int_callback() 72 const struct ti_hdc20xx_config *config = dev->config; in ti_hdc20xx_sample_fetch() 73 struct ti_hdc20xx_data *data = dev->data; in ti_hdc20xx_sample_fetch() 80 rc = i2c_reg_write_byte_dt(&config->bus, TI_HDC20XX_REG_MEAS_CFG, 0x01); in ti_hdc20xx_sample_fetch() 87 if (config->gpio_int.port) { in ti_hdc20xx_sample_fetch() 88 k_sem_take(&data->sem_int, K_FOREVER); in ti_hdc20xx_sample_fetch() [all …]
|
/Zephyr-latest/samples/net/cloud/mqtt_azure/ |
D | README.rst | 1 .. zephyr:code-sample:: mqtt-azure 3 :relevant-api: bsd_sockets mqtt_socket tls_credentials random_api 10 This sample application demonstrates how an MQTT client 13 - Acquire a DHCPv4 lease 14 - Establish a TLS connection with Azure Cloud IoT hub 15 - Publish data to the Azure cloud 16 - SOCKS5 supported 17 - DNS supported 19 The source code of this sample application can be found at: 25 - Azure Cloud account [all …]
|
/Zephyr-latest/doc/develop/getting_started/ |
D | index.rst | 8 - Set up a command-line Zephyr development environment on Ubuntu, macOS, or 11 - Get the source code 12 - Build, flash, and run a sample application 23 .. group-tab:: Ubuntu 28 .. code-block:: bash 33 .. group-tab:: macOS 39 <https://support.apple.com/en-us/HT201541>`_. 41 .. group-tab:: Windows 46 .. _install-required-tools: 55 .. list-table:: [all …]
|
/Zephyr-latest/samples/boards/nordic/nrf53_sync_rtc/ |
D | README.rst | 1 .. zephyr:code-sample:: nrf_sync_rtc 9 Sample is showing how RTC clocks used for system clock on application and network 13 Sample is using IPM driver and IPC HAL to produce events which occur at same time on 23 For simplicity and low latency sample is not using more sophisticated IPM protocols. 28 .. zephyr-app-commands:: 29 :zephyr-app: samples/boards/nordic/nrf53_sync_rtc 32 :flash-args: --hex-file build/nrf53_sync_rtc/zephyr/zephyr.hex 33 :west-args: --sysbuild 38 - Speed: 115200 39 - Data: 8 bits [all …]
|
/Zephyr-latest/samples/userspace/prod_consumer/src/ |
D | app_b.c | 3 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/sys/libc-hooks.h> 46 /* Pretend that processor_thread takes some initialization time, in processor_thread() 68 /* Stick the now-processed data into the outgoing queue, in processor_thread() 82 * processor thread, we will re-use the default memory domain as the in app_b_entry() 101 /* Assign a resource pool to serve for kernel-side allocations on in app_b_entry() 111 * don't need access to the sample driver, App A handles all that in app_b_entry() 112 * for us. in app_b_entry()
|