Home
last modified time | relevance | path

Searched +full:poll +full:- +full:timeout +full:- +full:ms (Results 1 – 25 of 51) sorted by relevance

123

/Zephyr-latest/tests/drivers/input/gpio_kbd_matrix/boards/
Dnative_sim.overlay4 * 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/
Dkbd-matrix-common.yaml2 # SPDX-License-Identifier: Apache-2.0
9 row-size:
14 col-size:
19 poll-period-ms:
23 Defines the poll period in msecs between between matrix scans, set to 0
24 to never exit poll mode. Defaults to 5ms if unspecified.
26 stable-poll-period-ms:
29 Defines the poll period in msecs between matrix scans when the matrix is
30 stable, defaults to poll-period-ms value if unspecified.
32 poll-timeout-ms:
[all …]
Dgpio-qdec.yaml2 # 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 …]
Dgpio-kbd-matrix.yaml2 # 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/tests/drivers/input/kbd_matrix/boards/
Dnative_sim.overlay4 * SPDX-License-Identifier: Apache-2.0
8 test_kbd_scan: test-kbd-scan {
9 compatible = "test-kbd-scan";
10 row-size = <3>;
11 col-size = <3>;
12 poll-period-ms = <5>;
13 debounce-down-ms = <40>;
14 debounce-up-ms = <80>;
15 poll-timeout-ms = <500>;
/Zephyr-latest/drivers/mspi/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
10 bool "Multi-bit Serial Peripheral Interface (MSPI) bus drivers"
18 select POLL
35 int "Completion timeout tolerance (ms)"
38 The tolerance value in ms for the MSPI completion timeout logic.
59 module-str = mspi
/Zephyr-latest/subsys/canbus/isotp/
DKconfig1 # ISO-TP configuration options
4 # SPDX-License-Identifier: Apache-2.0
7 bool "ISO-TP Transport [EXPERIMENTAL]"
10 select POLL
18 module-str = ISOTP
30 int "Bs timeout [ms] (timeout for receiving the frame control)"
34 Timeout for the reception of the next FC frame. ISO 15765-2: 1000ms
37 int "Ar and As timeout [ms] (sending and receiving timeout)"
41 As (sender transmit timeout) and Ar (receiver transmit timeout).
42 ISO 15765-2: 1000ms
[all …]
/Zephyr-latest/tests/net/socket/select/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
17 #define BUF_AND_SIZE(buf) buf, sizeof(buf) - 1
18 #define STRLEN(buf) (sizeof(buf) - 1)
94 /* Poll non-ready fd's with timeout of 0 */ in ZTEST_USER()
98 tstamp = k_uptime_get_32() - tstamp; in ZTEST_USER()
99 /* Even though we expect select to be non-blocking, scheduler may in ZTEST_USER()
109 /* Poll non-ready fd's with timeout of 10ms */ in ZTEST_USER()
116 tstamp = k_uptime_get_32() - tstamp; in ZTEST_USER()
121 /* Send pkt for s_sock and poll with timeout of 10ms */ in ZTEST_USER()
131 tstamp = k_uptime_get_32() - tstamp; in ZTEST_USER()
[all …]
/Zephyr-latest/tests/drivers/build_all/input/
Dapp.overlay4 * 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/drivers/spi/
DKconfig3 # Copyright (c) 2015-2016 Intel Corporation
4 # SPDX-License-Identifier: Apache-2.0
27 select POLL
63 int "Completion timeout tolerance (ms)"
66 The tolerance value in ms for the SPI completion timeout logic.
75 module-str = spi
78 # zephyr-keep-sorted-start
125 # zephyr-keep-sorted-stop
/Zephyr-latest/include/zephyr/tracing/
Dtracing.h4 * 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/tests/net/socket/poll/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
18 #define BUF_AND_SIZE(buf) buf, sizeof(buf) - 1
19 #define STRLEN(buf) (sizeof(buf) - 1)
29 /* On QEMU, poll() which waits takes +10ms from the requested time. */
66 /* Poll non-ready fd's with timeout of 0 */ in ZTEST()
69 zassert_true(k_uptime_get_32() - tstamp <= FUZZ, ""); in ZTEST()
80 /* Poll non-ready fd's with timeout of 30 */ in ZTEST()
83 tstamp = k_uptime_get_32() - tstamp; in ZTEST()
88 /* Send pkt for s_sock and poll with timeout of 10 */ in ZTEST()
94 tstamp = k_uptime_get_32() - tstamp; in ZTEST()
[all …]
/Zephyr-latest/modules/openthread/
DKconfig.thread4 # SPDX-License-Identifier: Apache-2.0
48 bool "FTD - Full Thread Device"
50 bool "MTD - Minimal Thread Device"
54 bool "SED - Sleepy End Device"
58 int "Poll period for sleepy end devices [ms]"
73 string "The platform-specific string to insert into the OpenThread version string"
88 Defines how many microseconds ahead should MAC deliver a CSL frame to the sub-MAC layer.
114 int "CSL timeout in seconds"
117 The default CSL timeout in seconds.
150 default -65
[all …]
/Zephyr-latest/include/zephyr/net/
Ddns_resolve.h10 * SPDX-License-Identifier: Apache-2.0
51 #define DNS_BUF_TIMEOUT K_MSEC(500) /* ms */
141 /** How many sockets the dispatcher is able to poll. */
199 /** Socket descriptors to poll */
201 /** Length of the poll array */
213 /** Buffer allocation timeout */
267 DNS_EAI_BADFLAGS = -1,
269 DNS_EAI_NONAME = -2,
271 DNS_EAI_AGAIN = -3,
272 /** Non-recoverable failure in name res */
[all …]
Dsocket.h9 * Copyright (c) 2017-2018 Linaro Limited
12 * SPDX-License-Identifier: Apache-2.0
44 * @name Options for poll()
48 /** zsock_poll: Poll for readability */
50 /** zsock_poll: Poll for exceptional condition */
52 /** zsock_poll: Poll for writability */
54 /** zsock_poll: Poll results in error condition (output value only) */
56 /** zsock_poll: Poll detected closed connection (output value only) */
75 /** zsock_recv/zsock_send: Override operation to non-blocking */
85 /* Well-known values, e.g. from Linux man 2 shutdown:
[all …]
/Zephyr-latest/doc/services/input/
Dgpio-kbd.rst1 .. _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>,
49 time can be tweaked by changing the ``settle-time-us`` property.
56 - disable ghosting detection, allowing any key combination to be detected
[all …]
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
55 static const char * const alpn_list[] = {"x-amzn-mqtt-ca"};
153 const size_t message_size = pub->message.payload.len; in handle_published_message()
157 (const char *)pub->message.topic.topic.utf8, pub->message_id, in handle_published_message()
158 pub->message.topic.qos, message_size, APP_BUFFER_SIZE); in handle_published_message()
176 switch (pub->message.topic.qos) { in handle_published_message()
180 puback.message_id = pub->message_id; in handle_published_message()
189 return discarded ? -ENOMEM : received; in handle_published_message()
204 LOG_DBG("MQTT event: %s [%u] result: %d", mqtt_evt_type_to_str(evt->type), evt->type, in mqtt_event_cb()
205 evt->result); in mqtt_event_cb()
[all …]
/Zephyr-latest/include/zephyr/
Dkernel.h4 * 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/include/zephyr/mgmt/
Dosdp.h4 * SPDX-License-Identifier: Apache-2.0
41 * - 0 - NOP – do not alter this output
42 * - 1 - set the permanent state to OFF, abort timed operation (if any)
43 * - 2 - set the permanent state to ON, abort timed operation (if any)
44 * - 3 - set the permanent state to OFF, allow timed operation to complete
45 * - 4 - set the permanent state to ON, allow timed operation to complete
46 * - 5 - set the temporary state to ON, resume perm state on timeout
47 * - 6 - set the temporary state to OFF, resume permanent state on timeout
51 * Time in units of 100 ms
69 * @brief LED params sub-structure. Part of LED command. See @ref osdp_cmd_led.
[all …]
/Zephyr-latest/drivers/input/
Dinput_gpio_kbd_matrix.c4 * SPDX-License-Identifier: Apache-2.0
47 const struct gpio_kbd_matrix_config *cfg = dev->config; in gpio_kbd_matrix_drive_column()
48 const struct input_kbd_matrix_common_config *common = &cfg->common; in gpio_kbd_matrix_drive_column()
49 struct gpio_kbd_matrix_data *data = dev->data; in gpio_kbd_matrix_drive_column()
55 state = BIT_MASK(common->col_size); in gpio_kbd_matrix_drive_column()
60 if (data->direct_write) { in gpio_kbd_matrix_drive_column()
61 const struct gpio_dt_spec *gpio0 = &cfg->col_gpio[0]; in gpio_kbd_matrix_drive_column()
65 gpio_mask = BIT_MASK(common->col_size) << gpio0->pin; in gpio_kbd_matrix_drive_column()
66 gpio_val = state << gpio0->pin; in gpio_kbd_matrix_drive_column()
68 gpio_port_set_masked(gpio0->port, gpio_mask, gpio_val); in gpio_kbd_matrix_drive_column()
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dhandlers.py4 # Copyright (c) 2018-2022 Intel Corporation
8 # SPDX-License-Identifier: Apache-2.0
39 print("Install pyserial python module with pip to use --device-testing option.")
45 pass # "--device-serial-pty" option is not supported on Windows OS
99 return math.ceil(self.instance.testsuite.timeout *
123 _d_suite = detected_suite_names[-len(expected_suite_names):]
219 this_timeout = timeout_time - time.time()
226 line_decoded = self.line.decode('utf-8', "replace")
229 stripped_line = stripped_line[:-len(suffix)].rstrip()
249 # so let's give it up to 100ms to do so
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dlpn.c4 * SPDX-License-Identifier: Apache-2.0
36 #warning Frienship feature may work unstable when non-deferred log mode is selected. Use the \
41 #define RX_DELAY_CORRECTION(lpn) ((lpn)->adv_duration)
64 #define REQ_RETRY_DURATION(lpn) (LPN_RECV_DELAY + (lpn)->adv_duration + \
65 (lpn)->recv_win + POLL_RETRY_TIMEOUT)
75 #define POLL_TIMEOUT_MAX(lpn) (POLL_TIMEOUT - \
87 /* 1 transmission, 20ms interval */
126 if (lpn->poll_timeout < POLL_TIMEOUT_MAX(lpn)) { in poll_timeout()
127 lpn->poll_timeout *= 2; in poll_timeout()
128 lpn->poll_timeout = in poll_timeout()
[all …]
/Zephyr-latest/drivers/sensor/infineon/dps310/
Ddps310.c6 * SPDX-License-Identifier: Apache-2.0
56 /* Polling time in ms*/
58 /* Number of times to poll before timeout */
62 * Measurement times in ms for different oversampling rates
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/tests/net/socket/tls/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
38 int c_sock = -1, s_sock = -1, new_sock = -1;
132 for (int i = 0; i < msg->msg_iovlen; i++) { in test_sendmsg()
133 struct iovec *vec = msg->msg_iov + i; in test_sendmsg()
135 total_len += vec->iov_len; in test_sendmsg()
170 c_sock = -1; in test_sockets_close()
175 s_sock = -1; in test_sockets_close()
180 new_sock = -1; in test_sockets_close()
269 if (test_data->retries > 0) { in test_msg_waitall_tx_work_handler()
270 test_send(test_data->sock, test_data->data + test_data->offset, 1, 0); in test_msg_waitall_tx_work_handler()
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_engine.c3 * Copyright (c) 2018-2019 Foundries.io
5 * SPDX-License-Identifier: Apache-2.0
68 #define THREAD_PRIORITY K_PRIO_COOP(CONFIG_NUM_COOP_PRIORITIES - 1)
70 #define THREAD_PRIORITY K_PRIO_PREEMPT(CONFIG_NUM_PREEMPT_PRIORITIES - 1)
90 uint32_t call_period; /* ms */
91 int64_t next_timestamp; /* ms */
131 zvfs_eventfd_write(sock_fds[MAX_POLL_FD - 1].fd, 1); in lwm2m_engine_wake_up()
137 if (client_ctx->sock_fd < 0) { in lwm2m_open_socket()
140 if (IS_ENABLED(CONFIG_LWM2M_DTLS_SUPPORT) && client_ctx->use_dtls) { in lwm2m_open_socket()
141 client_ctx->sock_fd = zsock_socket(client_ctx->remote_addr.sa_family, in lwm2m_open_socket()
[all …]

123