Home
last modified time | relevance | path

Searched +full:wait +full:- +full:time +full:- +full:factor (Results 1 – 24 of 24) sorted by relevance

/Zephyr-latest/dts/bindings/sensor/
Dams,tmd2620.yaml2 # 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/samples/sensor/proximity_polling/boards/
Dnrf52840dk_nrf52840.overlay3 prox-sensor0 = &tmd2620;
13 int-gpios = <&gpio1 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
14 proximity-gain = <4>;
15 proximity-pulse-length = <16>;
16 proximity-pulse-count = <15>;
17 proximity-high-threshold = <255>;
18 proximity-low-threshold = <0>;
19 proximity-led-drive-strength = <4>;
20 proximity-interrupt-filter = <0>;
21 wait-time-factor = <0>;
/Zephyr-latest/doc/kernel/services/scheduling/
Dindex.rst6 The kernel's priority-based scheduler allows an application's threads
13 at any point in time; this thread is known as the **current thread**.
15 There are various points in time when the scheduler is given an
19 - transition of a thread from running state to a suspended or waiting
21 - transition of a thread to the :ref:`ready state <thread_states>`, for
23 - return to thread context after processing an interrupt
24 - when a running thread invokes :c:func:`k_yield`
43 However, when both earliest-deadline-first scheduling is enabled
46 to have the higher priority. Thus, when earliest-deadline-first scheduling is
54 at any time unless interrupts have been masked. This applies to both
[all …]
/Zephyr-latest/drivers/adc/
Dadc_ite_it8xxx2.c4 * SPDX-License-Identifier: Apache-2.0
32 /* ADC sample time delay (Unit:us) */
34 /* Wait next clock rising (Clock source 32.768K) */
38 #define ADC_CHANNEL_OFFSET(ch) ((ch)-CHIP_ADC_CH13-ADC_CHANNEL_SHIFT)
47 /* Select analog clock division factor */
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()
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc1200.c1 /* ieee802154_cc1200.c - TI CC1200 driver */
8 * SPDX-License-Identifier: Apache-2.0
80 const struct cc1200_config *config = dev->config; in z_cc1200_access_reg()
118 return (spi_transceive_dt(&config->bus, &tx, &rx) == 0); in z_cc1200_access_reg()
124 return (spi_write_dt(&config->bus, &tx) == 0); in z_cc1200_access_reg()
129 struct cc1200_context *cc1200 = dev->data; in get_mac()
132 sys_rand_get(&cc1200->mac_addr[4], 4U); in get_mac()
134 cc1200->mac_addr[7] = (cc1200->mac_addr[7] & ~0x01) | 0x02; in get_mac()
136 cc1200->mac_addr[4] = CONFIG_IEEE802154_CC1200_MAC4; in get_mac()
137 cc1200->mac_addr[5] = CONFIG_IEEE802154_CC1200_MAC5; in get_mac()
[all …]
Dieee802154_dw1000_regs.h4 * SPDX-License-Identifier: Apache-2.0
7 * https://github.com/Decawave/mynewt-dw1000-core.git
14 * Copyright (C) 2017-2018, Decawave Limited, All Rights Reserved
24 * http://www.apache.org/licenses/LICENSE-2.0
75 /* Frame Filtering Behave as a Co-ordinator */
114 /* Receive Wait Timeout Enable. */
117 * Receiver Auto-Re-enable.
118 * This bit is used to cause the receiver to re-enable automatically
126 /* System Time Counter (40-bit) */
180 * of non-standard values
[all …]
/Zephyr-latest/kernel/
DKconfig3 # Copyright (c) 2014-2015 Wind River Systems, Inc.
4 # SPDX-License-Identifier: Apache-2.0
9 module-str = kernel
13 bool "Multi-threading" if ARCH_HAS_SINGLE_THREAD_SUPPORT
35 K_PRIO_COOP(0) to K_PRIO_COOP(CONFIG_NUM_COOP_PRIORITIES - 1)
39 -CONFIG_NUM_COOP_PRIORITIES to -1
58 to priorities 0 to CONFIG_NUM_PREEMPT_PRIORITIES - 1.
71 default -2 if !PREEMPT_ENABLED
85 default -127
92 int "Number of very-high priority 'preemptor' threads"
[all …]
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_utils.h4 * SPDX-License-Identifier: Apache-2.0
11 * All references to the standard in this file cite IEEE 802.15.4-2020.
27 net_if_get_device(iface)->api; in ieee802154_radio_get_hw_capabilities()
33 return radio->get_capabilities(net_if_get_device(iface)); in ieee802154_radio_get_hw_capabilities()
39 net_if_get_device(iface)->api; in ieee802154_radio_cca()
42 return -ENOENT; in ieee802154_radio_cca()
45 return radio->cca(net_if_get_device(iface)); in ieee802154_radio_cca()
51 net_if_get_device(iface)->api; in ieee802154_radio_set_channel()
54 return -ENOENT; in ieee802154_radio_set_channel()
57 return radio->set_channel(net_if_get_device(iface), channel); in ieee802154_radio_set_channel()
[all …]
/Zephyr-latest/drivers/sensor/infineon/dps310/
Ddps310.c6 * SPDX-License-Identifier: Apache-2.0
56 /* Polling time in ms*/
107 /* Setup constants depending on temperature oversampling factor */
150 /* Setup constants depending on pressure oversampling factor */
254 comp->c0 = (((uint16_t)raw_coef[0]) << 4) + (raw_coef[1] >> 4); in dps310_calib_coeff_creation()
256 if (comp->c0 > POW_2_11_MINUS_1) { in dps310_calib_coeff_creation()
257 comp->c0 = comp->c0 - POW_2_12; in dps310_calib_coeff_creation()
260 comp->c1 = (((uint16_t)(raw_coef[1] & 0x0F)) << 8) + raw_coef[2]; in dps310_calib_coeff_creation()
262 if (comp->c1 > POW_2_11_MINUS_1) { in dps310_calib_coeff_creation()
263 comp->c1 = comp->c1 - POW_2_12; in dps310_calib_coeff_creation()
[all …]
/Zephyr-latest/include/zephyr/
Dkernel_structs.h4 * SPDX-License-Identifier: Apache-2.0
49 /* states: common uses low bits, arch-specific use high bits */
75 /* end - states */
82 /* lowest value of _thread_base.preempt at which a thread is non-preemptible */
86 #define _PREEMPT_THRESHOLD (_NON_PREEMPT_THRESHOLD - 1U)
94 * in sorted order, taking an O(N) cost every time a thread is added
101 * is just stubs) and higher constant-factor performance overhead, but
106 * configurable at build time.
115 /* Traditional/textbook "multi-queue" structure. Separate lists for a
220 * field since it's not possible to divide the IA-32 non-integer
[all …]
/Zephyr-latest/drivers/clock_control/
Dclock_stm32_ll_wb0.c4 * SPDX-License-Identifier: Apache-2.0
43 # error slow-clock source is not enabled
53 # error Invalid device selected as slow-clock
66 "clksys-prescaler cannot be 64 when SYSCLK source is Direct HSE");
87 * to the measurement process. This variable is updated each time
96 * @param wait_event Semaphore to wait for completion of the measurement
108 * NOTE: (size - 1) is required to get the correct count, in measure_lsi_frequency()
113 (CONFIG_STM32WB0_LSI_MEASUREMENT_WINDOW - 1)); in measure_lsi_frequency()
119 /* Wait for semaphore to be signaled */ in measure_lsi_frequency()
123 /* Wait for calibration to finish (polling) */ in measure_lsi_frequency()
[all …]
Dclock_control_litex.c4 * SPDX-License-Identifier: Apache-2.0
66 …* https://github.com/Digilent/Zybo-hdmi-out/blob/b991fff6e964420ae3c00c3dbee52f2ad748b3ba/sdk/disp…
213 return litex_clk_filter_table[glob_mul - 1]; in litex_clk_lookup_filter()
219 return litex_clk_lock_table[glob_mul - 1]; in litex_clk_lookup_lock()
234 int assert = (1 << (drp[reg].size * BITS_PER_BYTE)) - 1; in litex_clk_assert_reg()
251 timeout = ldev->timeout.lock; in litex_clk_wait()
253 timeout = ldev->timeout.drdy; in litex_clk_wait()
257 timeout--; in litex_clk_wait()
262 return -ETIME; in litex_clk_wait()
303 ldev->g_config.mul = 1; in litex_clk_update_global_config()
[all …]
/Zephyr-latest/tests/kernel/smp/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
32 volatile int sync_count = -1;
55 static volatile int thread_started[MAX_NUM_THREADS - 1];
63 int ret = arch_curr_cpu()->id; in curr_cpu()
136 /* Wait for the other thread (on a separate CPU) to actually in ZTEST()
140 t2_count = -1; in ZTEST()
141 while (t2_count == -1) { in ZTEST()
145 /* Wait slightly longer than the other thread so our in ZTEST()
193 while (sync_count == -1) { in ZTEST()
220 for (int i = 0; i < num_threads - 1; i++) { in spin_for_threads_exit()
[all …]
/Zephyr-latest/subsys/net/lib/dhcpv6/
Ddhcpv6.c4 * SPDX-License-Identifier: Apache-2.0
70 sys_rand_get(iface->config.dhcpv6.tid, sizeof(iface->config.dhcpv6.tid)); in dhcpv6_generate_tid()
80 /* In case server does not set T1/T2 values, the time choice is left to in dhcvp6_update_deadlines()
129 if (iface->config.dhcpv6.t1 > t1_abs) { in dhcvp6_update_deadlines()
130 iface->config.dhcpv6.t1 = t1_abs; in dhcvp6_update_deadlines()
133 if (iface->config.dhcpv6.t2 > t2_abs) { in dhcvp6_update_deadlines()
134 iface->config.dhcpv6.t2 = t2_abs; in dhcvp6_update_deadlines()
137 if (iface->config.dhcpv6.expire < expire_abs) { in dhcvp6_update_deadlines()
138 iface->config.dhcpv6.expire = expire_abs; in dhcvp6_update_deadlines()
148 if (u64_add_overflow(now, timeout, &iface->config.dhcpv6.timeout)) { in dhcpv6_set_timeout()
[all …]
/Zephyr-latest/boards/st/nucleo_wl55jc/doc/
Dnucleo_wl55jc.rst6 The NUCLEO-WL55JC STM32WL Nucleo-64 board provides an affordable and flexible
11 - STM32WL55JC microcontroller multiprotocol LPWAN dual-core 32-bit
12 (Arm® Cortex®-M4/M0+ at 48 MHz) in UFBGA73 package featuring:
14 - Ultra-low-power MCU
15 - RF transceiver (150 MHz to 960 MHz frequency range) supporting LoRa®,
17 - 256-Kbyte Flash memory and 64-Kbyte SRAM
19 - 3 user LEDs
20 - 3 user buttons and 1 reset push-button
21 - 32.768 kHz LSE crystal oscillator
22 - 32 MHz HSE on-board oscillator
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dsensor.h10 * SPDX-License-Identifier: Apache-2.0
42 * and can be obtained using the formula val1 + val2 * 10^(-6). Negative
47 * -0.5: val1 = 0, val2 = -500000
48 * -1.0: val1 = -1, val2 = 0
49 * -1.5: val1 = -1, val2 = -500000
54 /** Fractional part of the value (in one-millionth parts). */
101 /** Illuminance in infra-red spectrum, in lux. */
112 /** 1.0 micro-meters Particulate Matter, in ug/m^3 */
114 /** 2.5 micro-meters Particulate Matter, in ug/m^3 */
116 /** 10 micro-meters Particulate Matter, in ug/m^3 */
[all …]
/Zephyr-latest/tests/drivers/build_all/sensor/
Di2c.dtsi4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/dt-bindings/sensor/lsm6dsv16x.h>
10 #include <zephyr/dt-bindings/sensor/lsm6dso.h>
11 #include <zephyr/dt-bindings/sensor/lsm6dso16is.h>
12 #include <zephyr/dt-bindings/sensor/lps22hh.h>
13 #include <zephyr/dt-bindings/sensor/lps2xdf.h>
14 #include <zephyr/dt-bindings/sensor/lis2ds12.h>
15 #include <zephyr/dt-bindings/sensor/lis2dw12.h>
16 #include <zephyr/dt-bindings/sensor/ism330dhcx.h>
17 #include <zephyr/dt-bindings/sensor/iis2dlpc.h>
[all …]
/Zephyr-latest/drivers/video/
Dgc2145.c4 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/drivers/video-controls.h>
729 /* If writing failed wait 5ms before next attempt */ in gc2145_write_reg()
732 } while (tries--); in gc2145_write_reg()
754 /* If writing failed wait 5ms before next attempt */ in gc2145_read_reg()
757 } while (tries--); in gc2145_read_reg()
766 const struct gc2145_config *cfg = dev->config; in gc2145_write_all()
771 ret = gc2145_write_reg(&cfg->i2c, regs[i].addr, regs[i].value); in gc2145_write_all()
783 const struct gc2145_config *cfg = dev->config; in gc2145_soft_reset()
786 ret = gc2145_write_reg(&cfg->i2c, GC2145_REG_RESET, GC2145_REG_SW_RESET); in gc2145_soft_reset()
[all …]
/Zephyr-latest/include/zephyr/sd/
Dsd_spec.h2 * Copyright 2022-2023 NXP
4 * SPDX-License-Identifier: Apache-2.0
69 * to inform the SD card the next command is an application-specific one.
87 /* Bits 0-2 reserved */
99 /* Bits 17-18 reserved */
184 #define SD_SPI_CMD_BODY_SIZE (SD_SPI_CMD_SIZE - 1)
271 /** VDD 2.7-2.8 */
273 /** VDD 2.8-2.9 */
275 /** VDD 2.9-3.0 */
277 /** VDD 3.0-3.1 */
[all …]
/Zephyr-latest/subsys/net/ip/
Dtcp.c2 * Copyright (c) 2018-2020 Intel Corporation
4 * SPDX-License-Identifier: Apache-2.0
63 #define TCP_RTO_MS (conn->rto)
102 struct net_buf *buf, *first = pkt->cursor.buf, *second = first->frags; in tcp_pkt_linearize()
109 ret = -EINVAL; in tcp_pkt_linearize()
119 ret = -ENOBUFS; in tcp_pkt_linearize()
123 net_buf_linearize(buf->data, net_buf_max_len(buf), pkt->frags, pos, len); in tcp_pkt_linearize()
126 len1 = first->len - (pkt->cursor.pos - pkt->cursor.buf->data); in tcp_pkt_linearize()
127 len2 = len - len1; in tcp_pkt_linearize()
129 first->len -= len1; in tcp_pkt_linearize()
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-4.0.rst15 is now the standard way to provide device-specific protection to data at rest. (:github:`76222`)
18 :ref:`ZMS <zms_api>` is a new key-value storage subsystem compatible with all non-volatile storage
25 runtime configuration through vendor specific APIs. Initially the :dtcompatible:`nordic,nrf-comp`,
26 :dtcompatible:`nordic,nrf-lpcomp` and :dtcompatible:`nxp,kinetis-acmp` are supported.
31 Initially implemented drivers include a simple :dtcompatible:`zephyr,gpio-steppers` and a complex
32 sensor-less stall-detection capable with integrated ramp-controller :dtcompatible:`adi,tmc5041`.
50 directory for :zephyr:code-sample-category:`code samples <samples>`.
70 * :cve:`2024-8798`: Under embargo until 2024-11-22
71 * :cve:`2024-10395`: Under embargo until 2025-01-23
72 * :cve:`2024-11263` `Zephyr project bug tracker GHSA-jjf3-7x72-pqm9
[all …]
Drelease-notes-3.2.rst13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`).
15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`.
31 * CVE-2022-2993: Under embargo until 2022-11-03
33 * CVE-2022-2741: Under embargo until 2022-10-14
56 This definition can be used by third-party code to compile code conditional
58 Therefore, any third-party code integrated using the Zephyr build system will
91 changed from ``-ENETDOWN`` to ``-ENETUNREACH``. A return value of ``-ENETDOWN`` now indicates
129 * Removed support for configuring the CAN-FD maximum DLC value via Kconfig
156 valid for specific bindings to specify like :dtcompatible:`gpio-leds` and
157 :dtcompatible:`fixed-partitions`.
[all …]
Drelease-notes-3.0.rst22 * CVE-2021-3835: `Zephyr project bug tracker GHSA-fm6v-8625-99jf
23 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-fm6v-8625-99jf>`_
25 * CVE-2021-3861: `Zephyr project bug tracker GHSA-hvfp-w4h8-gxvj
26 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hvfp-w4h8-gxvj>`_
28 * CVE-2021-3966: `Zephyr project bug tracker GHSA-hfxq-3w6x-fv2m
29 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hfxq-3w6x-fv2m>`_
36 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_.
53 * Added ``ranges`` and ``dma-ranges`` as invalid property to be used with DT_PROP_LEN()
58 CRC-16-ANSI checksum. A new function, :c:func:`crc16_reflect`, has been
69 * The following Kconfig options related to radio front-end modules (FEMs) were
[all …]
/Zephyr-latest/drivers/usb_c/tcpc/
Ducpd_numaker.c4 * SPDX-License-Identifier: Apache-2.0
36 * by Timer-trigger EADC. To implement this interconnection, TCPC node_id
39 * NOTE: EADC and Timer interrupts needn't enable for Timer-triggered EADC.
49 * (1) DPM-supplied callback
76 #define NUMAKER_SYS_REG_DUMP(dev, reg_name) LOG_INF("SYS: %8s: 0x%08x", #reg_name, SYS->reg_name);
82 LOG_INF("%s: %8s: 0x%08x", #port, #reg_name, port->reg_name);
98 utcpd_base->reg_name = (val); \
110 LOG_ERR("UTCPD register (%s) write timeout, force-write", #reg_name); \
112 utcpd_base->reg_name = (val); \
137 LOG_ERR("UTCPD register (0x%04x) write timeout, force-write", reg_offset); \
[all …]