/Zephyr-latest/tests/subsys/input/longpress/boards/ |
D | native_sim.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 10 fake_input_device: fake-device { 11 compatible = "vnd,input-device"; 16 compatible = "zephyr,input-longpress"; 17 input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>; 18 short-codes = <INPUT_KEY_A>, <INPUT_KEY_B>; 19 long-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>; 20 long-delay-ms = <100>; 23 longpress_no_short: longpress-no-short { [all …]
|
/Zephyr-latest/dts/bindings/input/ |
D | zephyr,input-longpress.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Input longpress pseudo-device 8 corresponding to short and long press. 15 #include <zephyr/dt-bindings/input/input-event-codes.h> 19 compatible = "zephyr,input-longpress"; 20 input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>; 21 short-codes = <INPUT_KEY_A>, <INPUT_KEY_B>; 22 long-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>; 23 long-delay-ms = <1000>; 35 # long press [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 …]
|
/Zephyr-latest/drivers/flash/ |
D | Kconfig.nor | 1 # Copyright (c) 2018 Savoir-Faire Linux. 4 # SPDX-License-Identifier: Apache-2.0 27 set by the page-size devicetree property) and 29 jedec-id properties in the devicetree jedec,spi-nor node. 35 sfdp-bfp property in devicetree. The size and jedec-id properties are 43 for all supported JESD216-compatible devices. 56 int "Delay time in us" 59 This is the wait delay (in us) to allow for CS switching to take effect 65 Flash operations can take anywhere from 1ms to 240 seconds to 66 complete. Enabling this option adds a delay between polls on the [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | net_timeout.h | 11 * SPDX-License-Identifier: Apache-2.0 18 * @brief Network long timeout primitives and helpers 19 * @defgroup net_timeout Network long timeout primitives and helpers 36 /** @brief Divisor used to support ms resolution timeouts. 44 * The simplest solution is to use the native conversion of the well-defined 45 * 32-bit unsigned difference to a 32-bit signed difference, which caps the 46 * maximum delay at INT32_MAX. This is compatible with the standard mechanism 102 /** @brief Return the 64-bit system time at which the timeout will complete. 110 * @param now the full-precision value of k_uptime_get() relative to which the 138 /** @brief Update state to reflect elapsed time and get new delay. [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/samples/bluetooth/mesh/src/ |
D | main.c | 1 /* main.c - Application main entry point */ 6 * SPDX-License-Identifier: Apache-2.0 61 * 0: 100 ms 85 static inline uint8_t model_time_encode(int32_t ms) in model_time_encode() argument 87 if (ms == SYS_FOREVER_MS) { in model_time_encode() 92 if (ms >= BIT_MASK(6) * time_res[i]) { in model_time_encode() 96 uint8_t steps = DIV_ROUND_UP(ms, time_res[i]); in model_time_encode() 137 * The LED should be on as long as the transition is in in onoff_timeout() 168 int32_t delay = 0; in gen_onoff_set_unack() local 170 if (buf->len) { in gen_onoff_set_unack() [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/ |
D | sar_cfg.rst | 21 sent as a single-segment segmented message when acknowledgment by the lower transport layer is 23 transmission and acknowledge single-segment segmented messages. 66 * Acknowledgment delay increment (see the `SAR Acknowledgment Delay Increment`_ state). 75 …unicast~retransmissions~interval~step + unicast~retransmissions~interval~increment \times (TTL - 1) 85 discard timer tells how long the lower transport layer waits before discarding the segmented message 95 min(SegN + 0.5 , acknowledgment~delay~increment) \times segment~reception~interval 138 * SAR Acknowledgment Delay Increment 153 (\mathtt{CONFIG\_BT\_MESH\_SAR\_TX\_SEG\_INT\_STEP} + 1) \times 10~\text{ms} 185 (\mathtt{CONFIG\_BT\_MESH\_SAR\_TX\_UNICAST\_RETRANS\_INT\_STEP} + 1) \times 25~\text{ms} 201 (\mathtt{CONFIG\_BT\_MESH\_SAR\_TX\_UNICAST\_RETRANS\_INT\_INC} + 1) \times 25~\text{ms} [all …]
|
/Zephyr-latest/samples/drivers/counter/maxim_ds3231/src/ |
D | main.c | 2 * Copyright (c) 2019-2020 Peter Bigot Consulting, LLC 4 * SPDX-License-Identifier: Apache-2.0 15 /* Format times as: YYYY-MM-DD HH:MM:SS DOW DOY */ 17 long nsec) in format_time() 25 bp += strftime(bp, bpe - bp, "%Y-%m-%d %H:%M:%S", tp); in format_time() 27 bp += snprintf(bp, bpe - bp, ".%09lu", nsec); in format_time() 29 bp += strftime(bp, bpe - bp, " %a %j", tp); in format_time() 38 printk("Counter callback at %u ms, id %d, ticks %u, ud %p\n", in sec_counter_callback() 57 printk("Sec signaled at %u ms, param %p, delay %u; set %d\n", in sec_alarm_handler() 58 k_uptime_get_32(), ud, now - syncclock, rc); in sec_alarm_handler() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 113 bool "Mesh-specific workqueue" 116 mesh-specific workqueue. This will ensure that messages are always sent. 117 The application needs to ensure the mesh-specific workqueue size is large 130 CONFIG_BT_BUF_CMD_TX_COUNT, the host returns -ENOBUFS immediately 187 greater than zero, this can noticeably delay transmission of 189 in a friendship, this option can delay transmission of local 237 bool "PB-ADV support" 299 bool "PB-GATT Server support" 314 the PB-GATT is enabled. [all …]
|
D | access.c | 4 * SPDX-License-Identifier: Apache-2.0 36 /* 20 - 50ms */ 38 /* 20 - 500ms */ 75 /** Type of relation; value in range 0x00-0xFE marks correspondence 100 (mod_rel_list[(idx)].elem_base == mod->rt->elem_idx && \ 101 mod_rel_list[(idx)].idx_base == mod->rt->mod_idx + (offset)) 104 (mod_rel_list[(idx)].elem_ext == mod->rt->elem_idx && \ 105 mod_rel_list[(idx)].idx_ext == mod->rt->mod_idx + (offset)) 130 for (i = 0; i < dev_comp->elem_count; i++) { in bt_mesh_model_foreach() 131 const struct bt_mesh_elem *elem = &dev_comp->elem[i]; in bt_mesh_model_foreach() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | Kconfig.gatt | 4 # SPDX-License-Identifier: Apache-2.0 31 this to 0 disables GATT long/reliable writes. 72 bool "Automatic re-subscription to characteristics" 77 Quirk: upon re-establishing a bonded connection, assumes the remote 85 bool "Automatic security re-establishment request as a peripheral" 89 This option requests security re-establishment automatically whenever 95 bt_conn_set_security() to re-establish security prior to sending any 140 int "Delay for batching multiple notifications in a single PDU." 156 bool "GATT Enforce change-unaware state" 163 a client until it becomes change-aware." [all …]
|
D | hci_core.h | 1 /* hci_core.h - Bluetooth HCI core access */ 5 * Copyright (c) 2015-2016 Intel Corporation 7 * SPDX-License-Identifier: Apache-2.0 45 * - Explicit scanning, @ref BT_LE_SCAN_USER_EXPLICIT_SCAN. 46 * - The application instructed the stack to automatically connect if a given device 48 * - The application wants to connect to a peer device using private addresses, but 50 * host-based privacy and first scan for the device before it initiates a connection. 51 * - The application wants to synchronize to a periodic advertiser. 80 /* Total number of flags - must be at the end of the enum */ 135 * has been established as long as there are connections available. [all …]
|
/Zephyr-latest/include/zephyr/ |
D | kernel.h | 4 * SPDX-License-Identifier: Apache-2.0 35 BUILD_ASSERT(sizeof(int64_t) == sizeof(long long)); 36 BUILD_ASSERT(sizeof(intptr_t) == sizeof(long)); 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 */ [all …]
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | hci_spi_st.c | 1 /* hci_spi_st.c - STMicroelectronics HCI SPI Bluetooth driver */ 7 * SPDX-License-Identifier: Apache-2.0 65 #define MAX_MTU (SPI_MAX_MSG_LEN - H4_HDR_SIZE - BT_L2CAP_HDR_SIZE - BT_HCI_ACL_HDR_SIZE) 126 return -ENOTSUP; in bluenrg_bt_reset() 135 /* Add reset delay and release reset */ in bluenrg_bt_reset() 210 /* On BlueNRG-MS, host is expected to read */ 211 /* as long as IRQ pin is high */ 236 return -EINVAL; in bt_spi_get_header() 257 attempts--; in bt_spi_get_header() 297 /* To make sure we have a minimum delay from previous release cs */ in bt_spi_get_header() [all …]
|
/Zephyr-latest/subsys/dap/ |
D | cmsis_dap.c | 2 * Copyright (c) 2018-2019 PHYTEC Messtechnik GmbH 5 * SPDX-License-Identifier: Apache-2.0 9 * This file is based on DAP.c from CMSIS-DAP Source (Revision: V2.0.0) 10 * https://github.com/ARM-software/CMSIS_5/tree/develop/CMSIS/DAP/Firmware 11 * Copyright (c) 2013-2017 ARM Limited. All rights reserved. 12 * SPDX-License-Identifier: Apache-2.0 51 MIN(CONFIG_CMSIS_DAP_PACKET_SIZE - 2, UINT8_MAX - 2), 52 "PROBE_VENDOR string is too long."); 54 MIN(CONFIG_CMSIS_DAP_PACKET_SIZE - 2, UINT8_MAX - 2), 55 "PROBE_NAME string is too long."); [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | util.h | 2 * Copyright (c) 2011-2014, Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 40 * @defgroup sys-util Utility Functions 69 /** Number of bits in a long int. */ 72 /** Number of bits in a long long int. */ 80 (((~0UL) - (1UL << (l)) + 1) & (~0UL >> (BITS_PER_LONG - 1 - (h)))) 83 * @brief Create a contiguous 64-bit bitmask starting at bit position @p l 87 (((~0ULL) - (1ULL << (l)) + 1) & (~0ULL >> (BITS_PER_LONG_LONG - 1 - (h)))) 89 /** @brief 0 if @p cond is true-ish; causes a compile error otherwise. */ 90 #define ZERO_OR_COMPILE_ERROR(cond) ((int) sizeof(char[1 - 2 * !(cond)]) - 1) [all …]
|
/Zephyr-latest/doc/kernel/services/timing/ |
D | clocks.rst | 46 ---------- 49 rounding control for all time units. Any unit of "ms" (milliseconds), 66 word, these conversions expand to a 2-4 operation sequence, requiring 127 being 32 bits. Large uptime counts in non-tick units will experience 129 timing-sensitive applications with long uptimes will be configured to 142 ------------- 146 a double-linked list, with an attendant delta count in ticks from the 150 expected to be embedded within subsystem-defined data structures (for 155 multiple-conversion steps internal to the kernel, so precision is 157 long a timeout might be. [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() 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() 264 /* Align to a "ms boundary". */ in _test_kernel_cpu_idle() [all …]
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_dw1000_regs.h | 4 * 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 */ 108 /* Long Frames mode */ 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/tests/kernel/smp/src/ |
D | main.c | 4 * 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() 101 * faster than the other thread so long as it is fairly in t2_fn() 140 t2_count = -1; in ZTEST() 141 while (t2_count == -1) { in ZTEST() 193 while (sync_count == -1) { in ZTEST() 220 for (int i = 0; i < num_threads - 1; i++) { in spin_for_threads_exit() 221 volatile uint8_t *p = &tinfo[i].tid->base.thread_state; in spin_for_threads_exit() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | bluetooth.h | 7 * Copyright (c) 2015-2016 Intel Corporation 9 * SPDX-License-Identifier: Apache-2.0 162 * If rpa sharing is enabled and rpa expired cb of any adv-sets belonging 163 * to same adv id returns false, then adv-sets will continue with old rpa 242 * That is, the application shall not re-register them when 243 * the Bluetooth subsystem is re-enabled later. 292 * @see https://specificationrefs.bluetooth.com/assigned-values/Appearance%20Values.pdf 325 * subsequent call to this function with non-NULL @a addrs parameter. 345 * pre-defined address is provided, since in such a situation the app clearly 370 * parameter was non-NULL). [all …]
|
D | conn.h | 6 * Copyright (c) 2015-2016 Intel Corporation 8 * SPDX-License-Identifier: Apache-2.0 47 * @param int_min Minimum Connection Interval (N * 1.25 ms) 48 * @param int_max Maximum Connection Interval (N * 1.25 ms) 50 * @param to Supervision Timeout (N * 10 ms) 62 * @param int_min Minimum Connection Interval (N * 1.25 ms) 63 * @param int_max Maximum Connection Interval (N * 1.25 ms) 65 * @param to Supervision Timeout (N * 10 ms) 73 * Connection Interval: 30-50 ms 208 * after a packet containing a Link Layer PDU with a non-zero Length [all …]
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_litex.c | 4 * 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/semaphore/semaphore/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 115 /**TESTPOINT: thread-thread sync via sema*/ in tsema_thread_thread() 129 /**TESTPOINT: thread-isr sync via sema*/ in tsema_thread_isr() 140 if (ret != 0 && ret != -EBUSY) { in isr_sem_take() 210 critical_var -= 1; in sem_queue_mutual_exclusion2() 216 zassert_true(critical_var == tmp - 1); in sem_queue_mutual_exclusion2() 238 * - Get the semaphore count. 239 * - Verify the semaphore count equals to initialized value. 248 "- got %u, expected %u"); in ZTEST_USER() 284 * - Initialize a semaphore with valid count and max limit. [all …]
|