/Zephyr-latest/dts/bindings/sensor/ |
D | ams,tmd2620.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 include: [sensor-device.yaml, i2c-device.yaml] 11 int-gpios: 12 type: phandle-array 15 The interrupt pin of TMD2620 is open-drain, active low. 17 as pull-up, active low. 19 proximity-gain: 24 - 1 25 - 2 26 - 4 [all …]
|
/Zephyr-latest/drivers/can/ |
D | can_common.c | 4 * SPDX-License-Identifier: Apache-2.0 15 /* Maximum acceptable deviation in sample point location (permille) */ 30 ctx->status = error; in can_tx_default_cb() 31 k_sem_give(&ctx->done); in can_tx_default_cb() 38 const struct can_driver_api *api = (const struct can_driver_api *)dev->api; in z_impl_can_send() 42 return -EINVAL; in z_impl_can_send() 45 if ((frame->flags & CAN_FRAME_IDE) != 0U) { in z_impl_can_send() 51 CHECKIF((frame->id & ~(id_mask)) != 0U) { in z_impl_can_send() 52 LOG_ERR("invalid frame with %s (%d-bit) CAN ID 0x%0*x", in z_impl_can_send() 53 (frame->flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in z_impl_can_send() [all …]
|
/Zephyr-latest/dts/bindings/ieee802154/ |
D | atmel,rf2xx.yaml | 1 # Copyright (c) 2019-2020 Gerson Fernando Budke <nandojve@gmail.com> 2 # SPDX-License-Identifier: Apache-2.0 8 include: spi-device.yaml 11 irq-gpios: 12 type: phandle-array 15 reset-gpios: 16 type: phandle-array 19 slptr-gpios: 20 type: phandle-array 23 Multi-functional pin that controls sleep, deep sleep, transmit [all …]
|
/Zephyr-latest/tests/drivers/can/timing/src/ |
D | main.c | 2 * Copyright (c) 2022-2024 Vestas Wind Systems A/S 5 * SPDX-License-Identifier: Apache-2.0 20 * @brief Allowed sample point calculation margin in permille. 28 /** Bitrate in bit/s */ 30 /** Desired sample point in permille */ 55 /* CiA 601-2 recommended data phase bitrates */ 73 * @param bitrate the CAN bitrate in bit/s 78 const uint32_t ts = 1 + timing->prop_seg + timing->phase_seg1 + timing->phase_seg2; in assert_bitrate_correct() 83 zassert_not_equal(timing->prescaler, 0, "prescaler is zero"); in assert_bitrate_correct() 88 bitrate_calc = core_clock / timing->prescaler / ts; in assert_bitrate_correct() [all …]
|
/Zephyr-latest/dts/bindings/input/ |
D | analog-axis.yaml | 2 # SPDX-License-Identifier: Apache-2.0 12 #include <zephyr/dt-bindings/input/input-event-codes.h> 15 compatible = "analog-axis"; 16 poll-period-ms = <15>; 17 axis-x { 18 io-channels = <&adc 0>; 19 in-deadzone = <50>; 20 in-min = <100>; 21 in-max = <800>; 26 compatible: "analog-axis" [all …]
|
D | cirque,pinnacle-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 7 data-ready-gpios: 8 type: phandle-array 20 - "1x" 21 - "2x" 22 - "3x" 23 - "4x" 25 data-mode: 29 Data output mode in which position is reported. In the relative mode 30 each position is reported as relative to the last position. In the [all …]
|
/Zephyr-latest/include/zephyr/devicetree/ |
D | can.h | 9 * SPDX-License-Identifier: Apache-2.0 20 * @defgroup devicetree-can Devicetree CAN API 29 * controller. If no CAN transceiver is present in the devicetree, the minimum 34 * transceiver0: can-phy0 { 35 * compatible = "vnd,can-transceiver"; 36 * min-bitrate = <15000>; 37 * max-bitrate = <1000000>; 38 * #phy-cells = <0>; 42 * compatible = "vnd,can-controller"; 47 * compatible = "vnd,can-controller"; [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | linear_range.h | 3 * SPDX-License-Identifier: Apache-2.0 23 * The linear range API maps values in a linear range to a range index. A linear 26 * - Minimum value 27 * - Step value 28 * - Minimum index value 29 * - Maximum index value 31 * For example, in a voltage regulator, supported voltages typically map to a 34 * - 1000uV: 0x00 35 * - 1250uV: 0x01 36 * - 1500uV: 0x02 [all …]
|
/Zephyr-latest/ |
D | .gitlint | 2 # Zephyr-specific defaults are located in scripts/gitlint/zephyr_commit_rules.py 4 ignore=title-trailing-punctuation, T3, title-max-length, T1, body-hard-tab, B3, B1 5 # verbosity should be a value between 1 and 3, the commandline -v flags take precedence over this 8 ignore-merge-commits=false 9 ignore-revert-commits=false 10 ignore-fixup-commits=false 11 ignore-squash-commits=false 15 # Set the extra-path where gitlint will search for user defined rules 17 extra-path=scripts/gitlint 19 [title-max-length-no-revert] [all …]
|
/Zephyr-latest/dts/bindings/pinctrl/ |
D | ti,cc13xx-cc26xx-pinctrl.yaml | 2 # SPDX-License-Identifier: Apache-2.0 7 Device pin configuration should be placed in the child nodes of this node. 11 The node has the 'pinctrl' node label set in your SoC's devicetree, 18 All device pin configurations should be placed in child nodes of the 19 'pinctrl' node, as in the i2c0 example shown at the end. 24 - bias-disable: Disable pull-up/down. 25 - bias-pull-down: Enable pull-down resistor. 26 - bias-pull-up: Enable pull-up resistor. 27 - drive-open-drain: Output driver is open-drain. 28 - drive-open-drain: Output driver is open-source. [all …]
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_sam.c | 4 * SPDX-License-Identifier: Apache-2.0 13 * - Once the watchdog disable bit is set, it cannot be cleared till next 15 * - Since the MCU boots with WDT enabled, the CONFIG_WDT_DISABLE_AT_BOOT 16 * is set default at boot and watchdog module is disabled in the MCU for 18 * - If the application needs to use the watchdog in the system, then 19 * CONFIG_WDT_DISABLE_AT_BOOT must be unset in the app's config file 49 const struct wdt_sam_dev_cfg *config = dev->config; in wdt_sam_isr() 51 Wdt * const wdt = config->regs; in wdt_sam_isr() 52 struct wdt_sam_dev_data *data = dev->data; in wdt_sam_isr() 55 wdt_sr = wdt->WDT_SR; in wdt_sam_isr() [all …]
|
/Zephyr-latest/samples/boards/st/power_mgmt/suspend_to_ram/boards/ |
D | nucleo_wba55cg.overlay | 2 * SPDX-License-Identifier: Apache-2.0 8 /* Change min residency time to ease power consumption measurement */ 11 cpu-power-states = <&stop0 &stop1 &standby>; 14 power-states { 16 min-residency-us = <500000>; 17 exit-latency-us = <50>; 20 min-residency-us = <1000000>; 21 exit-latency-us = <100>; 24 min-residency-us = <2000000>; 25 exit-latency-us = <1000>; [all …]
|
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v1/src/ |
D | kernel_apis.c | 4 * SPDX-License-Identifier: Apache-2.0 15 * align perfectly. 1 percent base intolerance is to cover CPU processing in the 38 * with 'main'. The kernel is in this case already started. in ZTEST() 57 uint32_t start_time, stop_time, diff, max, min; in ZTEST() local 63 diff = (uint32_t)k_cyc_to_ns_floor64(stop_time - in ZTEST() 67 min = WAIT_TIME_US - (TOLERANCE_PPC * WAIT_TIME_US / 100); in ZTEST() 69 zassert_true(diff <= max && diff >= min, in ZTEST()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | emul_sensor.h | 3 * SPDX-License-Identifier: Apache-2.0 22 * These are for internal use only, so skip these in public documentation. 40 enum sensor_attribute attribute, q31_t *min, q31_t *max, 56 return target && target->backend_api; in emul_sensor_backend_is_supported() 64 * @param value Expected value in fixed-point format using standard SI unit for sensor type 68 * @return -ENOTSUP if no backend API or if channel not supported by emul 69 * @return -ERANGE if provided value is not in the sensor's supported range 75 if (!target || !target->backend_api) { in emul_sensor_backend_set_channel() 76 return -ENOTSUP; in emul_sensor_backend_set_channel() 79 struct emul_sensor_driver_api *api = (struct emul_sensor_driver_api *)target->backend_api; in emul_sensor_backend_set_channel() [all …]
|
/Zephyr-latest/dts/bindings/clock/ |
D | litex,clk.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 include: [clock-controller.yaml, base.yaml] 14 clock-cells: 15 - id 22 "#clock-cells": 26 clock-output-names: 28 type: string-array 31 by the first cell in the clock specifier. 33 litex,lock-timeout: 38 litex,drdy-timeout: [all …]
|
D | microchip,xec-pcr.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "microchip,xec-pcr" 8 include: [clock-controller.yaml, pinctrl-device.yaml, base.yaml] 14 core-clock-div: 17 description: Divide 96 MHz PLL clock to produce Cortex-M4 core clock 19 slow-clock-div: 25 pll-32k-src: 30 periph-32k-src: 35 xtal-single-ended: 39 clk32kmon-period-min: [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; 41 /* PA enable is overwriting packet end used in ISR profiling, hence in lll_prof_radio_end_backup() 56 * and use it in profiling event 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() 75 /* check changes in min, avg and max of latency */ in lll_prof_send() [all …]
|
/Zephyr-latest/dts/bindings/regulator/ |
D | regulator-gpio.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 GPIO-controlled voltage of regulators 8 vccq_sd0: regulator-vccq-sd0 { 9 compatible = "regulator-gpio"; 11 regulator-name = "SD0 VccQ"; 12 regulator-min-microvolt = <1800000>; 13 regulator-max-microvolt = <3300000>; 15 enable-gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>; 20 regulator-boot-on; 23 In the above example, three GPIO pins are used for controlling the regulator: [all …]
|
D | nxp,pca9420.yaml | 2 # SPDX-License-Identifier: Apache-2.0 34 nxp,enable-modesel-pins: 40 nxp,vin-ilim-microamp: 44 - 85000 45 - 255000 46 - 425000 47 - 595000 48 - 765000 49 - 935000 50 - 1105000 [all …]
|
/Zephyr-latest/tests/drivers/regulator/api/ |
D | app.overlay | 3 * SPDX-License-Identifier: Apache-2.0 8 compatible = "zephyr,fake-regulator"; 13 regulator-always-on; 17 regulator-boot-on; 21 regulator-min-microvolt = <100>; 22 regulator-max-microvolt = <200>; 23 regulator-min-microamp = <100>; 24 regulator-max-microamp = <200>; 25 regulator-allowed-modes = <1 10>; 26 regulator-initial-mode = <1>; [all …]
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/ |
D | data_load.py | 5 # you may not use this file except in compliance with the License. 8 # http://www.apache.org/licenses/LICENSE-2.0 10 # Unless required by applicable law or agreed to in writing, software 16 # pylint: disable=g-bad-import-order 50 def get_data_file(self, data_path, data_type): # pylint: disable=no-self-use 56 for idx, line in enumerate(lines): # pylint: disable=unused-variable 66 def pad(self, data, seq_length, dim): # pylint: disable=no-self-use 70 # Before- Neighbour padding 71 tmp_data = (np.random.rand(seq_length, dim) - 0.5) * noise_level + data[0] 72 tmp_data[(seq_length - [all …]
|
/Zephyr-latest/lib/utils/ |
D | winstream.c | 3 * SPDX-License-Identifier: Apache-2.0 8 /* This code may be used (e.g. for trace/logging) in very early 22 * (arm64 excepted) either promise firm ordering (x86) or are in-order 31 return idx >= ws->len ? idx - ws->len : idx; in idx_mod() 34 /* Computes modular a - b, assuming a and b are in [0:len) */ 37 return idx_mod(ws, a + (ws->len - b)); in idx_sub() 44 uint32_t start = ws->start, end = ws->end, seq = ws->seq; in sys_winstream_write() 47 * (Max bytes buffered is actually len-1 because start==end is in sys_winstream_write() 50 if (len > ws->len - 1) { in sys_winstream_write() 52 len = ws->len - 1; in sys_winstream_write() [all …]
|
/Zephyr-latest/dts/bindings/memory-controllers/ |
D | renesas,smartbond-nor-psram.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 compatible: "renesas,smartbond-nor-psram" 14 is-ram: 19 dev-size: 23 Memory size/capacity in bits. 25 dev-type: 31 dev-density: 40 dev-id: 46 reset-delay-us: 50 Time in microseconds (us) the memory device can accept the next command following a SW reset. [all …]
|
/Zephyr-latest/dts/bindings/phy/ |
D | can-transceiver.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 include: phy-controller.yaml 9 min-bitrate: 12 The minimum bitrate supported by the CAN transceiver in bits/s. 14 max-bitrate: 18 The maximum bitrate supported by the CAN transceiver in bits/s. 20 "#phy-cells":
|
/Zephyr-latest/tests/drivers/watchdog/wdt_error_cases/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 71 /* Following variables are incremented in WDT callbacks 115 * -EFAULT when watchdog instance is not enabled. 129 zassert_true(ret == -EFAULT, in ZTEST() 130 "Calling wdt_disable before watchdog was started should return -EFAULT (-14), " in ZTEST() 169 zassert_true(ret == -EINVAL, in ZTEST() 179 * -ENOTSUP when flag WDT_FLAG_RESET_NONE is not supported 194 m_cfg_wdt0.window.min = DEFAULT_WINDOW_MIN; in ZTEST() 197 zassert_true(ret == -ENOTSUP, in ZTEST() 207 * -ENOTSUP when flag WDT_FLAG_RESET_CPU_CORE is not supported [all …]
|