Home
last modified time | relevance | path

Searched +full:timeout +full:- +full:period (Results 1 – 25 of 191) sorted by relevance

12345678

/Zephyr-latest/drivers/watchdog/
Dwdt_dw.h1 /* SPDX-License-Identifier: Apache-2.0 */
19 * and programmed based on user-defined options.
57 * by the time a second timeout occurs then generate a system reset
82 * Timeout Range Register
104 * Timeout period
109 * Timeout period for initialization
116 * bits WDT_CNT_WIDTH - 1 to 0
155 * Upper limit of Timeout Period parameters
163 * Upper limit of Initial Timeout Period parameters
195 * Describes the initial timeout period that is available directly after reset. It controls the
[all …]
Dwdt_dw_common.c1 /* SPDX-License-Identifier: Apache-2.0 */
35 uint32_t period; in dw_wdt_configure() local
38 LOG_ERR("Timeout not installed."); in dw_wdt_configure()
39 return -ENOTSUP; in dw_wdt_configure()
42 /* Configure timeout */ in dw_wdt_configure()
43 period = config & ~WDT_DW_FLAG_CONFIGURED; in dw_wdt_configure()
46 dw_wdt_timeout_period_init_set(base, period); in dw_wdt_configure()
49 dw_wdt_timeout_period_set(base, period); in dw_wdt_configure()
62 uint32_t period; in dw_wdt_calc_period() local
64 /* Window timeout is not supported by this driver */ in dw_wdt_calc_period()
[all …]
Dwdt_nxp_s32.c2 * Copyright 2022-2024 NXP
4 * SPDX-License-Identifier: Apache-2.0
45 /* Timeout */
81 #define REG_READ(r) sys_read32(config->base + (r))
82 #define REG_WRITE(r, v) sys_write32((v), config->base + (r))
96 uint32_t period; member
115 struct swt_nxp_s32_timeout timeout; member
120 switch (config->lock_mode) { in swt_lock()
139 LOG_ERR("Watchdog hard-locked"); in swt_unlock()
140 err = -EFAULT; in swt_unlock()
[all …]
Dwdt_gecko.c5 * SPDX-License-Identifier: Apache-2.0
28 * to select its timeout period.
50 /* Find the rounded up value of cycles for supplied timeout. When using ULFRCO
51 * (default), 1 cycle is 1 ms +/- 12%.
53 static int wdt_gecko_get_persel_from_timeout(uint32_t timeout) in wdt_gecko_get_persel_from_timeout() argument
58 if (wdt_gecko_get_timeout_from_persel(idx) >= timeout) { in wdt_gecko_get_persel_from_timeout()
66 static int wdt_gecko_convert_window(uint32_t window, uint32_t period) in wdt_gecko_convert_window() argument
71 incr_val = period / 8; in wdt_gecko_convert_window()
75 * timeout period up to 87.5% (= 7 * 12.5%) in wdt_gecko_convert_window()
92 const struct wdt_gecko_cfg *config = dev->config; in wdt_gecko_setup()
[all …]
/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/dts/bindings/watchdog/
Dti,tps382x.yaml10 wdi-gpios:
11 type: phandle-array
14 WDI gpio. If WDI remains high or low longer than the timeout period,
21 timeout-period:
25 Time-out period in milliseconds. Typical for TPS3823/4/8 and TPS3823A is
27 the watchdog should be kicked within the minimum timeout period. The kick
/Zephyr-latest/kernel/
Dtimer.c2 * Copyright (c) 1997-2016 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
25 * @param t Timeout used by the timer.
29 struct k_timer *timer = CONTAINER_OF(t, struct k_timer, timeout); in z_timer_expiration_handler()
33 /* In sys_clock_announce(), when a timeout expires, it is first removed in z_timer_expiration_handler()
34 * from the timeout list, then its expiration handler is called (with in z_timer_expiration_handler()
36 * this function. Usually, the timeout structure related to the timer in z_timer_expiration_handler()
37 * that is handled here will not be linked to the timeout list at this in z_timer_expiration_handler()
41 * interrupt. Then, the timeout structure for this timer will turn out in z_timer_expiration_handler()
42 * to be linked to the timeout list. And in such case, since the timer in z_timer_expiration_handler()
[all …]
/Zephyr-latest/dts/bindings/mipi-dbi/
Dnxp,lcdic.yaml2 # SPDX-License-Identifier: Apache-2.0
5 NXP LCDIC Controller. This controller implements 8080 and SPI mode MIPI-DBI
9 include: ["mipi-dbi-controller.yaml", "pinctrl-device.yaml"]
21 nxp,swap-bytes:
27 reset-gpios:
28 type: phandle-array
34 nxp,write-inactive-cycles:
39 clock frequency. This controls the length of the inactive period of the
42 nxp,write-active-cycles:
47 clock frequency. This controls the length of the active period of the
[all …]
/Zephyr-latest/drivers/pwm/
Dpwm_capture.c2 * Copyright (c) 2020-2021 Vestas Wind Systems A/S
4 * SPDX-License-Identifier: Apache-2.0
15 uint32_t period; member
29 data->period = period_cycles; in z_pwm_capture_cycles_callback()
30 data->pulse = pulse_cycles; in z_pwm_capture_cycles_callback()
31 data->status = status; in z_pwm_capture_cycles_callback()
33 k_sem_give(&data->sem); in z_pwm_capture_cycles_callback()
37 pwm_flags_t flags, uint32_t *period, in z_impl_pwm_capture_cycles() argument
38 uint32_t *pulse, k_timeout_t timeout) in z_impl_pwm_capture_cycles() argument
45 return -ENOTSUP; in z_impl_pwm_capture_cycles()
[all …]
Dpwm_handlers.c3 * Copyright (c) 2020-2021 Vestas Wind Systems A/S
5 * SPDX-License-Identifier: Apache-2.0
12 uint32_t channel, uint32_t period, in z_vrfy_pwm_set_cycles() argument
17 period, pulse, flags); in z_vrfy_pwm_set_cycles()
54 k_timeout_t timeout) in z_vrfy_pwm_capture_cycles() argument
56 uint32_t period; in z_vrfy_pwm_capture_cycles() local
65 flags, &period, &pulse, timeout); in z_vrfy_pwm_capture_cycles()
67 K_OOPS(k_usermode_to_copy(period_cycles, &period, in z_vrfy_pwm_capture_cycles()
/Zephyr-latest/tests/kernel/timer/timer_behavior/
DKconfig1 # SPDX-License-Identifier: Apache-2.0
21 int "The number of microseconds to for the timer period"
31 int "Maximum drift in microseconds allowed (should be about 1 period allowance)"
35 int "Maximum drift percentage for the timer period"
38 # difference in the test period is nothing unusual (it can happen for
40 # of elapsed ticks when scheduling a new timeout but before the timer
41 # driver sets up that timeout).
50 Toggles a GPIO pin, on every period, that can be used by an external
64 int "Maximum timer period drift in PPM for tests using external tool"
67 Parts Per Million of allowed period drift when using an external tool
/Zephyr-latest/drivers/ethernet/
DKconfig.gecko3 # 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.
/Zephyr-latest/drivers/timer/
Dcc13xx_cc26xx_rtc_timer.c4 * SPDX-License-Identifier: Apache-2.0
10 * TI SimpleLink CC13X2/CC26X2 RTC-based system timer
13 * RTC counts continually in 64-bit mode and timeouts are
80 if ((next - now) > (uint32_t)0x80000000) { in setThreshold()
83 } else if ((now + COMPARE_MARGIN - next) < (uint32_t)0x80000000) { in setThreshold()
111 ticks = (currCount - rtc_last) / RTC_COUNTS_PER_TICK; in rtc_isr()
120 /* calculate new 64-bit RTC count for next interrupt */ in rtc_isr()
153 uint64_t period; in startDevice() local
164 * set the compare register to one period. in startDevice()
165 * For a very small period round up to interrupt upon 4th tick in in startDevice()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dpwm.h3 * Copyright (c) 2020-2021 Vestas Wind Systems A/S
5 * SPDX-License-Identifier: Apache-2.0
34 #include <zephyr/dt-bindings/pwm/pwm.h>
54 /** PWM pin capture captures period. */
60 /** PWM pin capture captures both period and pulse width. */
64 /** PWM pin capture captures a single period/pulse width. */
67 /** PWM pin capture captures period/pulse width continuously. */
87 * the PWM device), the PWM signal period in nanoseconds and the flags
103 /** Period in nanoseconds. */
104 uint32_t period; member
[all …]
/Zephyr-latest/subsys/shell/
DKconfig.template.shell_log_queue_timeout1 # SPDX-License-Identifier: Apache-2.0
4 int "Log message drop timeout (in milliseconds)"
5 default $(default-timeout)
6 range -1 10000
9 dropped if queue is still full after requested time (-1 is forever).
10 Logger thread is blocked for that period, thus long timeout impacts
/Zephyr-latest/dts/bindings/clock/
Dmicrochip,xec-pcr.yaml2 # 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/modules/hal_nordic/nrfs/backends/
Dnrfs_backend_ipc_service.h4 * SPDX-License-Identifier: Apache-2.0
53 * @brief this function will block until connection or timeout expires
55 * @param timeout
58 * @return -EAGAIN Waiting period timed out.
60 int nrfs_backend_wait_for_connection(k_timeout_t timeout);
69 * @param[in] timeout Non-negative waiting period to add the message,
76 nrfs_err_t nrfs_backend_send_ex(void *message, size_t size, k_timeout_t timeout, bool high_prio);
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dhealth_cli.h8 * SPDX-License-Identifier: Apache-2.0
40 /** @brief Optional callback for Health Period Status messages.
42 * Handles received Health Period Status messages from a Health
43 * server. The @c divisor param represents the period divisor value.
47 * @param divisor Health Period Divisor value.
129 &(cli_data)->pub, cli_data, &bt_mesh_health_cli_cb)
197 /** @brief Invoke a self-test procedure for the given Company ID.
220 /** @brief Invoke a self-test procedure for the given Company ID (unacked).
233 /** @brief Get the target node's Health fast period divisor.
235 * The health period divisor is used to increase the publish rate when a fault
[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
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:
39 debounce-down-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 …]
/Zephyr-latest/tests/benchmarks/footprints/src/
Dtimer.c4 * SPDX-License-Identifier: Apache-2.0
13 #define PERIOD 50 macro
60 k_timer_start(&timer0, K_MSEC(DURATION), K_MSEC(PERIOD)); in thread_fn()
62 busy_wait_ms(DURATION + PERIOD * EXPIRE_TIMES + PERIOD / 2); in thread_fn()
66 k_timer_start(&timer0, K_MSEC(DURATION), K_MSEC(PERIOD)); in thread_fn()
69 * the initial timeout request gets cancelled and new in thread_fn()
73 k_timer_start(&timer0, K_MSEC(DURATION), K_MSEC(PERIOD)); in thread_fn()
75 busy_wait_ms(DURATION + PERIOD * EXPIRE_TIMES + PERIOD / 2); in thread_fn()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_obj_server.h4 * SPDX-License-Identifier: Apache-2.0
42 * @brief Returns the default minimum period for an observation set for the server
51 * @brief Returns the default maximum period for an observation set for the server
99 * @brief Disable server instance for a period of time.
101 * Timeout values can be calculated using kernel macros like K_SECONDS().
104 * @param timeout Timeout value.
107 int lwm2m_server_disable(uint16_t obj_inst_id, k_timeout_t timeout);
134 * @brief Reset all disable-timers for all server instances.
/Zephyr-latest/include/zephyr/sys/
Dmutex.h4 * SPDX-License-Identifier: Apache-2.0
72 /* Nothing to do, kernel-side data structures are initialized at in sys_mutex_init()
78 k_timeout_t timeout);
87 * a timeout occurs.
93 * @param timeout Waiting period to lock the mutex,
97 * @retval -EBUSY Returned without waiting.
98 * @retval -EAGAIN Waiting period timed out.
99 * @retval -EACCES Caller has no access to provided mutex address
100 * @retval -EINVAL Provided mutex not recognized by the kernel
102 static inline int sys_mutex_lock(struct sys_mutex *mutex, k_timeout_t timeout) in sys_mutex_lock() argument
[all …]
/Zephyr-latest/tests/drivers/gnss/gnss_api/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
27 int "Search period for satellites in seconds"
31 int "Timeout waiting for a fix in seconds"
/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>;

12345678