Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 147) sorted by relevance

123456

/drivers/counter/
A DKconfig9 Enable support for counter and timer.
26 module-str = counter
29 source "drivers/counter/Kconfig.ambiq"
31 source "drivers/counter/Kconfig.gecko"
41 source "drivers/counter/Kconfig.nrfx"
53 source "drivers/counter/Kconfig.sam"
55 source "drivers/counter/Kconfig.sam0"
57 source "drivers/counter/Kconfig.ace"
59 source "drivers/counter/Kconfig.cmos"
69 source "drivers/counter/Kconfig.xec"
[all …]
A Dcounter_mchp_xec.c86 reg = counter->CTRL; in counter_xec_stop()
92 counter->CTRL = reg; in counter_xec_stop()
94 counter->IEN = MCHP_BTMR_INTDIS; in counter_xec_stop()
95 counter->CNT = counter->PRLD; in counter_xec_stop()
106 *ticks = counter->CNT; in counter_xec_get_value()
145 counter->IEN = MCHP_BTMR_INTEN; in counter_xec_set_alarm()
180 return counter->STS; in counter_xec_get_pending_int()
187 return counter->PRLD; in counter_xec_get_top_value()
216 counter->CNT = cfg->ticks; in counter_xec_set_top_value()
220 counter->CNT = cfg->ticks; in counter_xec_set_top_value()
[all …]
A Dcounter_realtek_rts5912.c60 counter->ctrl |= (TIMER32_CTRL_EN); in counter_rts5912_start()
78 counter->cnt = counter->ldcnt; in counter_rts5912_stop()
92 *ticks = counter->cnt + 1; in counter_rts5912_get_value()
145 counter->ctrl |= TIMER32_CTRL_EN; in counter_rts5912_set_alarm()
147 value = counter->cnt; in counter_rts5912_set_alarm()
163 counter->ctrl = 0; in counter_rts5912_cancel_alarm()
178 return counter->intsts; in counter_rts5912_get_pending_int()
186 return counter->ldcnt; in counter_rts5912_get_top_value()
209 counter->ldcnt = cfg->ticks; in counter_rts5912_set_top_value()
229 value = counter->cnt; in counter_rts5912_set_top_value()
[all …]
A Dcounter_realtek_rts5912_slwtmr.c59 counter->ctrl |= SLWTMR_CTRL_EN; in counter_rts5912_start()
77 counter->ctrl = 0; in counter_rts5912_stop()
78 counter->ldcnt = counter->cnt; in counter_rts5912_stop()
93 *ticks = counter->cnt; in counter_rts5912_get_value()
128 counter->ctrl = 0; in counter_rts5912_set_alarm()
141 counter->ctrl |= SLWTMR_CTRL_EN; in counter_rts5912_set_alarm()
157 counter->ctrl = 0; in counter_rts5912_cancel_alarm()
172 return counter->insts; in counter_rts5912_get_pending_int()
180 return counter->ldcnt; in counter_rts5912_get_top_value()
199 counter->ctrl = 0; in counter_rts5912_set_top_value()
[all …]
A DKconfig.mcux_lpc_rtc13 bool "MCUX LPC RTC 1Hz counter driver"
17 Enable support for LPC 1Hz counter.
20 bool "MCUX LPC RTC High Resolution counter driver"
24 Enable support for LPC rtc high resolution counter.
A DKconfig.native_sim10 int "native_sim counter frequency in Hz"
15 int "native_sim counter: number of channels"
24 int "native_posix counter frequency in Hz (deprecated)"
28 int "native counter, number of channels (deprecated)"
A DKconfig.gd321 # GD32 counter timer configuration options
7 bool "GD32 timer counter driver"
12 Enable counter timer driver for GD32 series devices.
A DKconfig.rts59121 # Realtek counter configuration options
7 bool "Realtek rts5912 series counter driver"
11 Enable counter driver for Realtek RTS5912 MCU series. Such driver
A DKconfig.xec1 # XEC counter configuration options
7 bool "Microchip XEC series counter driver"
11 Enable counter driver for Microchip XEC MCU series. Such driver
A DKconfig.rts5912_slwtmr1 # Realtek counter configuration options
7 bool "Realtek rts5912 series slow timer counter driver"
11 Enable counter driver for Realtek RTS5912 MCU series. Such driver
A DKconfig.max32_timer5 bool "MAX32xxx counter driver"
9 Enable the counter driver for MAX32 MCUs.
A DKconfig.max32_rtc5 bool "MAX32xxx counter rtc driver"
9 Enable the counter rtc driver for MAX32 MCUs.
A DKconfig.mcux_tpm7 bool "MCUX TPM counter driver"
11 Enable support for mcux Timer PWM Module (TPM) counter driver.
A DKconfig.mspm05 bool "TI MSPM0 MCU family counter driver"
10 Enable the TI MSPM0 MCU family counter driver.
A DKconfig.stm32_timer5 bool "STM32 counter driver"
11 Enable the counter driver for STM32 family of processors.
/drivers/watchdog/
A Dwdt_counter.c28 const struct device *counter; member
34 const struct device *counter = config->counter; in wdt_counter_setup() local
40 return counter_start(counter); in wdt_counter_setup()
46 const struct device *counter = config->counter; in wdt_counter_disable() local
48 return counter_stop(counter); in wdt_counter_disable()
73 const struct device *counter = config->counter; in timeout_set() local
97 const struct device *counter = config->counter; in wdt_counter_install_timeout() local
100 if (!device_is_ready(counter)) { in wdt_counter_install_timeout()
104 uint32_t max_timeout = counter_get_top_value(counter) - in wdt_counter_install_timeout()
105 counter_get_guard_period(counter, in wdt_counter_install_timeout()
[all …]
A Dwdt_wwdg_stm32.c115 uint32_t counter) in wwdg_stm32_get_timeout() argument
134 uint32_t *counter) in wwdg_stm32_convert_timeout() argument
143 *counter = 0; in wwdg_stm32_convert_timeout()
151 *counter += WWDG_RESET_LIMIT; in wwdg_stm32_convert_timeout()
159 *counter = WWDG_COUNTER_MAX; in wwdg_stm32_convert_timeout()
214 uint32_t counter = 0U; in wwdg_stm32_install_timeout() local
227 if (!(IS_WWDG_COUNTER(counter) && in wwdg_stm32_install_timeout()
233 data->counter = counter; in wwdg_stm32_install_timeout()
243 LL_WWDG_SetWindow(wwdg, counter); in wwdg_stm32_install_timeout()
244 LL_WWDG_SetCounter(wwdg, counter); in wwdg_stm32_install_timeout()
[all …]
A Dwdt_wwdgt_gd32.c34 uint8_t counter; member
80 uint32_t *counter, uint32_t *wval, in gd32_wwdgt_calc_window() argument
87 *counter = max_count; in gd32_wwdgt_calc_window()
139 uint32_t counter = 0U; in gd32_wwdgt_install_timeout() local
148 if (gd32_wwdgt_calc_window(dev, &config->window, &counter, &window, in gd32_wwdgt_install_timeout()
155 data->counter = counter; in gd32_wwdgt_install_timeout()
157 wwdgt_config(counter, window, prescaler); in gd32_wwdgt_install_timeout()
168 wwdgt_counter_update(data->counter); in gd32_wwdgt_feed()
220 .counter = WWDGT_COUNTER_MIN,
A DKconfig.nxp_fs2623 int "Watchdog error counter limit"
26 Sets the maximum value of the watchdog error counter. Each time a
27 watchdog failure occurs, the device increments this counter by 2. The
28 watchdog error counter is decremented by 1 each time the watchdog is
34 int "Watchdog refresh counter limit"
37 Sets the maximum value of the watchdog refresh counter. Each time the
38 watchdog is properly refreshed, this counter is incremented by 1. Each
39 time this counter reaches its maximum value and if the next refresh is
40 also good, the fault error counter is decremented by 1. Each time
41 there is a bad watchdog refresh, this counter is reset to 0.
A Dwdt_wwdt_numaker.c40 uint32_t counter; member
85 uint32_t *counter) in m_wwdt_numaker_calc_window() argument
97 *counter = NUMAKER_COUNTER_MAX; in m_wwdt_numaker_calc_window()
102 *counter = NUMAKER_COUNTER_MAX - gap; in m_wwdt_numaker_calc_window()
103 if (*counter < NUMAKER_COUNTER_MIN) { in m_wwdt_numaker_calc_window()
104 *counter = NUMAKER_COUNTER_MIN; in m_wwdt_numaker_calc_window()
122 uint32_t counter; in wwdt_numaker_install_timeout() local
136 if (m_wwdt_numaker_calc_window(dev, &cfg->window, &timeout, &prescaler, &counter) != 0) { in wwdt_numaker_install_timeout()
141 LOG_DBG("counter=%d", counter); in wwdt_numaker_install_timeout()
144 data->counter = counter; in wwdt_numaker_install_timeout()
[all …]
/drivers/stepper/step_dir/
A Dstep_dir_stepper_counter_timing.c32 counter_get_frequency(config->counter) * microstep_interval_ns, NSEC_PER_SEC); in step_counter_timing_source_update()
37 ret = counter_set_top_value(config->counter, &data->counter_top_cfg); in step_counter_timing_source_update()
55 ret = counter_start(config->counter); in step_counter_timing_source_start()
72 ret = counter_stop(config->counter); in step_counter_timing_source_stop()
101 if (!device_is_ready(config->counter)) { in step_counter_timing_source_init()
109 data->counter_top_cfg.ticks = counter_us_to_ticks(config->counter, 1000000); in step_counter_timing_source_init()
A Dstep_dir_stepper_common.h34 const struct device *counter; member
50 .counter = DEVICE_DT_GET_OR_NULL(DT_PHANDLE(node_id, counter)), \
52 .timing_source = COND_CODE_1(DT_NODE_HAS_PROP(node_id, counter), \
/drivers/crypto/
A Dcrypto_intel_sha.c64 uint32_t counter; in intel_sha_regs_cpy() local
70 for (counter = 0; counter != len; ++counter) { in intel_sha_regs_cpy()
71 ((uint32_t *)dst)[counter] = ((uint32_t *)src)[counter]; in intel_sha_regs_cpy()
160 uint32_t counter = 0; in intel_sha_copy_hash() local
165 counter = 0; in intel_sha_copy_hash()
169 for (counter = 0; counter != len; counter++) { in intel_sha_copy_hash()
170 ((uint32_t *)dst)[counter] = in intel_sha_copy_hash()
171 ((uint32_t *)self->dfsha->sha_result)[last_idx - counter]; in intel_sha_copy_hash()
/drivers/timer/
A Dleon_gptimer.c25 uint32_t counter; member
95 uint32_t counter = tmr->counter; in sys_clock_cycle_get_32() local
97 return (0 - counter) * PRESCALER; in sys_clock_cycle_get_32()
A Drealtek_rts5912_rtmr.c50 static void rtmr_restart(uint32_t counter) in rtmr_restart() argument
53 RTMR_REG->LDCNT = counter; in rtmr_restart()
59 uint32_t counter = RTMR_REG->CNT; in rtmr_get_counter() local
61 if ((counter == 0) && (RTMR_REG->CTRL & RTOSTMR_CTRL_EN_Msk)) { in rtmr_get_counter()
62 counter = previous_cnt; in rtmr_get_counter()
65 return counter; in rtmr_get_counter()

Completed in 72 milliseconds

123456