/Zephyr-latest/tests/drivers/input/gpio_kbd_matrix/boards/ |
D | native_sim.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 kbd_matrix_interrupt: kbd-matrix-interrupt { 13 compatible = "gpio-kbd-matrix"; 14 row-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>, 16 col-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>, 18 debounce-down-ms = <80>; 19 debounce-up-ms = <40>; 20 poll-timeout-ms = <500>; 23 kbd_matrix_poll: kbd-matrix-poll { 24 compatible = "gpio-kbd-matrix"; [all …]
|
/Zephyr-latest/dts/bindings/input/ |
D | gpio-qdec.yaml | 2 # SPDX-License-Identifier: Apache-2.0 11 and goes back to idling after the specified timeout. 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: [all …]
|
D | kbd-matrix-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 9 row-size: 14 col-size: 19 poll-period-ms: 24 to never exit poll mode. Defaults to 5ms if unspecified. 26 stable-poll-period-ms: 30 stable, defaults to poll-period-ms value if unspecified. 32 poll-timeout-ms: 36 How long to wait before going from polling back to idle state. Defaults 37 to 100ms if unspecified. [all …]
|
D | gpio-kbd-matrix.yaml | 2 # SPDX-License-Identifier: Apache-2.0 11 kbd-matrix { 12 compatible = "gpio-kbd-matrix"; 13 row-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>, 15 col-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>, 18 no-ghostkey-check; 21 compatible: "gpio-kbd-matrix" 24 - name: kbd-matrix-common.yaml 25 property-blocklist: 26 - row-size [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | Kconfig.gecko | 3 # SPDX-License-Identifier: Apache-2.0 27 int "Carrier check timeout period (ms)" 31 Set the RX idle timeout period in milliseconds after which the 32 PHY's carrier status is re-evaluated.
|
D | Kconfig.stm32_hal | 5 # SPDX-License-Identifier: Apache-2.0 79 int "Carrier check timeout period (ms)" 83 Set the RX idle timeout period in milliseconds after which the 84 PHY's carrier status is re-evaluated.
|
/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/subsys/modem/backends/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 36 (<UART receive_buf_size> / 2) / (<UART baud rate> / <UART bits per byte>) * <ms per sec> 44 int "Modem async UART transmit timeout in milliseconds" 48 int "Modem async UART receive idle timeout in milliseconds"
|
/Zephyr-latest/tests/kernel/threads/no-multithreading/src/ |
D | main.c | 5 * SPDX-License-Identifier: Apache-2.0 18 watchdog--; in ZTEST() 28 int64_t diff = k_uptime_get() - now; in ZTEST() 52 zassert_false(timeout_run, "Timeout should not expire because irq is locked"); in ZTEST() 56 zassert_true(timeout_run, "Timeout should expire because irq got unlocked"); in ZTEST() 66 /* Start timer and go to idle, cpu should sleep until it is waken up in ZTEST() 73 diff = k_uptime_get() - now; in ZTEST() 74 zassert_true(timeout_run, "Timeout should expire"); in ZTEST() 75 zassert_within(diff, 10, 2, "Unexpected time passed: %d ms", (int)diff); in ZTEST() 86 sys_init_result = -1; \ [all …]
|
/Zephyr-latest/tests/kernel/context/src/ |
D | main.c | 2 * Copyright (c) 2012-2015 Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 42 #define UNKNOWN_COMMAND -1 43 #define INVALID_BEHAVIOUR -2 54 * The Cortex-M use the SYSTICK exception for the system timer, which is 75 /* Cortex-M1 and Nios II do have a power saving instruction, so k_cpu_idle() 138 if (arch_current_thread()->base.prio < 0) { in isr_handler() 231 /* Set up a time to trigger events to exit idle mode */ in _test_kernel_cpu_idle() 251 dt = k_uptime_ticks() - t0; in _test_kernel_cpu_idle() 252 zassert_true(abs((int32_t) (dt - dur)) <= slop, in _test_kernel_cpu_idle() [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | Kconfig.tcp | 6 # SPDX-License-Identifier: Apache-2.0 18 module-dep = NET_LOG 19 module-str = Log level for TCP 20 module-help = Enables TCP handler output debug messages 41 CONFIG_NUM_COOP_PRIORITIES-1 else lowest priority is 42 CONFIG_NUM_PREEMPT_PRIORITIES-1. 53 To avoid a (low-probability) issue when delayed packets from 60 it is desirable to do so." For low-resource systems, having 64 non-repeating port numbers and initial sequence numbers. Due 65 to this, Zephyr uses much lower value of 1500ms by default. [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/drivers/timer/ |
D | ite_it8xxx2_timer.c | 3 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/interrupt-controller/ite-intc.h> 19 #define COUNT_1US (EC_FREQ / USEC_PER_SEC - 1) 61 #define MS_TO_COUNT(hz, ms) ((hz) * (ms) / 1000) argument 135 timer2_reg->ET2PSR = EXT_PSR_32P768K; in timer_5ms_one_shot() 141 hw_cnt = MS_TO_COUNT(32768, 5/*ms*/); in timer_5ms_one_shot() 142 timer2_reg->ET2CNTLH2R = (uint8_t)((hw_cnt >> 16) & 0xff); in timer_5ms_one_shot() 143 timer2_reg->ET2CNTLHR = (uint8_t)((hw_cnt >> 8) & 0xff); in timer_5ms_one_shot() 144 timer2_reg->ET2CNTLLR = (uint8_t)(hw_cnt & 0xff); in timer_5ms_one_shot() 160 usec_to_wait--; in arch_busy_wait() [all …]
|
D | stm32_lptim_timer.c | 5 * SPDX-License-Identifier: Apache-2.0 54 * - system clock based on an LPTIM instance, clocked by LSI or LSE 55 * - prescaler is set to a 2^value from 1 (division of the LPTIM source clock by 1) 57 * - using LPTIM AutoReload capability to trig the IRQ (timeout irq) 58 * - when timeout irq occurs the counter is already reset 59 * - the maximum timeout duration is reached with the lptim_time_base value 60 * - with prescaler of 1, the max timeout (LPTIM_TIMEBASE) is 2 seconds: 62 * - with prescaler of 128, the max timeout (LPTIM_TIMEBASE) is 256 seconds: 75 * This is for example about of 65000 x 2000ms when clocked by LSI 88 (COND_CODE_1(CONFIG_SMP, (arch_curr_cpu()->id), (_current_cpu->id))) [all …]
|
/Zephyr-latest/doc/services/input/ |
D | gpio-kbd.rst | 1 .. _gpio-kbd: 6 The :dtcompatible:`gpio-kbd-matrix` driver supports a large variety of keyboard 21 .. figure:: no-diodes.svg 30 .. code-block:: devicetree 32 kbd-matrix { 33 compatible = "gpio-kbd-matrix"; 34 row-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>, 37 col-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>, 42 In this configuration the matrix scanning library enters idle mode once all 49 time can be tweaked by changing the ``settle-time-us`` property. [all …]
|
/Zephyr-latest/include/zephyr/drivers/usb_c/ |
D | usbc_tc.h | 3 * SPDX-License-Identifier: Apache-2.0 8 * @brief USB Type-C Cable and Connector API used for USB-C drivers 10 * The information in this file was taken from the USB Type-C 18 * @brief USB Type-C 19 * @defgroup usb_type_c USB Type-C 32 * See Table 4-3 VBUS Sink Characteristics 38 * See Table 4-3 VBUS Sink Characteristics 45 * See Table 4-29 VBUS and VCONN Timing Parameters 52 * See Table 4-29 VBUS and VCONN Timing Parameters 58 * See Table 4-29 VBUS and VCONN Timing Parameters [all …]
|
/Zephyr-latest/drivers/peci/ |
D | peci_mchp_xec.c | 4 * SPDX-License-Identifier: Apache-2.0 27 /* 1 ms */ 32 /* 5 ms */ 74 if (atomic_test_and_set_bit(data->pm_policy_state_flag, flag) == 0) { in peci_xec_pm_policy_state_lock_get() 82 if (atomic_test_and_clear_bit(data->pm_policy_state_flag, flag) == 1) { in peci_xec_pm_policy_state_lock_put() 91 const struct peci_xec_config * const cfg = dev->config; in peci_girq_enable() 93 mchp_xec_ecia_girq_src_en(cfg->girq, cfg->girq_pos); in peci_girq_enable() 98 const struct peci_xec_config * const cfg = dev->config; in peci_girq_status_clear() 100 mchp_soc_ecia_girq_src_clr(cfg->girq, cfg->girq_pos); in peci_girq_status_clear() 105 const struct peci_xec_config * const cfg = dev->config; in peci_clr_slp_en() [all …]
|
/Zephyr-latest/include/zephyr/ |
D | kernel.h | 4 * SPDX-License-Identifier: Apache-2.0 53 #define K_PRIO_COOP(x) (-(CONFIG_NUM_COOP_PRIORITIES - (x))) 56 #define K_HIGHEST_THREAD_PRIO (-CONFIG_NUM_COOP_PRIORITIES) 60 #define K_LOWEST_APPLICATION_THREAD_PRIO (K_LOWEST_THREAD_PRIO - 1) 245 * bits, arch-specific use high bits. 289 * from within a user-provided callback they have been invoked. 290 * Effectively it serves as a tiny bit of zero-overhead TLS data. 328 /* end - thread options */ 335 * - @ref K_USER allocate a userspace thread (requires `CONFIG_USERSPACE=y`) 353 * @retval -EBUSY if the thread stack is in use. [all …]
|
/Zephyr-latest/subsys/testsuite/ztest/src/ |
D | ztress.c | 4 * SPDX-License-Identifier: Apache-2.0 31 /* Timer handling test timeout which ends test prematurely. */ 32 static k_timeout_t timeout; variable 90 if (tmr_data->exec_cnt != 0 && exec_cnt[0] != 0) { in progress_timeout() 91 progress = (100 * exec_cnt[0]) / tmr_data->exec_cnt; in progress_timeout() 110 uint64_t rem = 1000 * (k_timer_expires_ticks(&test_timer) - sys_clock_tick_get()) / in progress_timeout() 113 printk("\r%u%% remaining:%u ms", progress, (uint32_t)rem); in progress_timeout() 141 int load = 1000 - (1000 * (idle_cycles - prev_idle_cycles) / in control_load() 142 (rt_stats_all.execution_cycles - total_cycles)); in control_load() 177 int idx = 31 - __builtin_clz(mask); in preempt_update() [all …]
|
/Zephyr-latest/tests/kernel/threads/thread_apis/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 54 * @brief Verify idle thread 155 /* Some memory-related error cases for k_thread_name_set() */ in ZTEST_USER() 157 /* Non-Secure images cannot normally access memory outside the image in ZTEST_USER() 161 zassert_equal(ret, -EFAULT, "accepted nonsense string (%d)", ret); in ZTEST_USER() 164 zassert_equal(ret, -EFAULT, "accepted unreadable string"); in ZTEST_USER() 166 zassert_equal(ret, -EINVAL, "accepted non-thread object"); in ZTEST_USER() 168 zassert_equal(ret, -EINVAL, "no permission on thread object"); in ZTEST_USER() 179 /* memory-related cases for k_thread_name_get() */ in ZTEST_USER() 182 zassert_equal(ret, -ENOSPC, "wrote to too-small buffer"); in ZTEST_USER() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_npcx_controller.c | 4 * SPDX-License-Identifier: Apache-2.0 15 * support for a two-wire SMBus/I2C synchronous serial interface. The following 21 * +<----------------+<----------------------+ 23 * +------+ +------------+ | +------- ----+ | +------- -------+ | 24 * +->| IDLE |-->| WAIT_START |--->| WRITE_FIFO |-+--->| WRITE_SUSPEND |--+ 25 * | +------+ +------------+ +------------+ Yes +---------------+ | 27 * | +-----------+ | 28 * +--------------------------------------------| WAIT_STOP |<------------+ 29 * STOP is completed +-----------+ Issue STOP 35 * +<-----------------+<---------------------+ [all …]
|
D | i2c_mchp_xec.c | 4 * SPDX-License-Identifier: Apache-2.0 29 /* I2C timeout is 10 ms (WAIT_INTERVAL * WAIT_COUNT) */ 33 /* Line High Timeout is 2.5 ms (WAIT_LINE_HIGH_USEC * WAIT_LINE_HIGH_COUNT) */ 73 * i2c_baud_clk_period/bus_clk_period - 2 = (low_period + hi_period) 74 * bus_clk_reg (16MHz/100KHz -2) = 0x4F + 0x4F 75 * (16MHz/400KHz -2) = 0x0F + 0x17 76 * (16MHz/1MHz -2) = 0x05 + 0x09 105 (const struct i2c_xec_config *const) (dev->config); in i2c_xec_reset_config() 107 (struct i2c_xec_data *const) (dev->data); in i2c_xec_reset_config() 108 uint32_t ba = config->base_addr; in i2c_xec_reset_config() [all …]
|
/Zephyr-latest/kernel/ |
D | Kconfig | 3 # 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 48 The extra one is for the idle thread, which must run at the lowest 58 to priorities 0 to CONFIG_NUM_PREEMPT_PRIORITIES - 1. 66 The extra one is for the idle thread, which must run at the lowest 71 default -2 if !PREEMPT_ENABLED [all …]
|
/Zephyr-latest/include/zephyr/tracing/ |
D | tracing.h | 4 * SPDX-License-Identifier: Apache-2.0 27 * inner-working of the kernel and various other subsystems. 80 * @param timeout Timeout period 82 #define sys_port_trace_k_thread_join_enter(thread, timeout) argument 87 * @param timeout Timeout period 89 #define sys_port_trace_k_thread_join_blocking(thread, timeout) argument 94 * @param timeout Timeout period 97 #define sys_port_trace_k_thread_join_exit(thread, timeout, ret) argument 101 * @param timeout Timeout period 103 #define sys_port_trace_k_thread_sleep_enter(timeout) argument [all …]
|
/Zephyr-latest/dts/arm/microchip/ |
D | mec1501hsz.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <arm/armv7-m.dtsi> 8 #include <zephyr/dt-bindings/adc/adc.h> 9 #include <zephyr/dt-bindings/clock/mchp_xec_pcr.h> 10 #include <zephyr/dt-bindings/i2c/i2c.h> 11 #include <zephyr/dt-bindings/gpio/gpio.h> 12 #include <zephyr/dt-bindings/gpio/microchip-xec-gpio.h> 16 #address-cells = <1>; 17 #size-cells = <0>; 21 compatible = "arm,cortex-m4"; [all …]
|