Home
last modified time | relevance | path

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

12345678910>>...24

/Zephyr-latest/drivers/counter/
DKconfig9 Enable support for counter and timer.
26 module-str = counter
29 source "drivers/counter/Kconfig.ambiq"
31 source "drivers/counter/Kconfig.gecko"
33 source "drivers/counter/Kconfig.tmr_cmsdk_apb"
35 source "drivers/counter/Kconfig.dtmr_cmsdk_apb"
37 source "drivers/counter/Kconfig.mcux_rtc"
39 source "drivers/counter/Kconfig.mcux_lpc_rtc"
41 source "drivers/counter/Kconfig.nrfx"
43 source "drivers/counter/Kconfig.imx_epit"
[all …]
Dcounter_mchp_xec.c63 struct btmr_regs *counter = COUNTER_XEC_REG_BASE(dev); in counter_xec_start() local
65 if (counter->CTRL & MCHP_BTMR_CTRL_ENABLE) { in counter_xec_start()
69 counter->CTRL |= (MCHP_BTMR_CTRL_ENABLE | MCHP_BTMR_CTRL_START); in counter_xec_start()
78 struct btmr_regs *counter = COUNTER_XEC_REG_BASE(dev); in counter_xec_stop() local
81 if (!(counter->CTRL & MCHP_BTMR_CTRL_ENABLE)) { in counter_xec_stop()
86 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()
104 struct btmr_regs *counter = COUNTER_XEC_REG_BASE(dev); in counter_xec_get_value() local
[all …]
/Zephyr-latest/tests/drivers/counter/counter_basic_api/boards/
Dgoogle_dragonclaw.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
45 counter {
52 counter {
59 counter {
66 counter {
[all …]
Dnucleo_f207zg.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
45 counter {
52 counter {
59 counter {
67 counter {
[all …]
Dnucleo_f746zg.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
45 counter {
52 counter {
59 counter {
66 counter {
[all …]
Dnucleo_h743zi.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
45 counter {
52 counter {
59 counter {
66 counter {
[all …]
Dstm32f4_disco.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
45 counter {
52 counter {
59 counter {
66 counter {
[all …]
Dstm32h747i_disco_stm32h747xx_m7.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
45 counter {
52 counter {
59 counter {
66 counter {
[all …]
Dnucleo_f722ze.overlay13 counter {
20 counter {
27 counter {
34 counter {
41 counter {
48 counter {
55 counter {
62 counter {
69 counter {
76 counter {
[all …]
Dstm32h573i_dk.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
45 counter {
52 counter {
59 counter {
Dnucleo_l476rg.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
45 counter {
52 counter {
59 counter {
Dnucleo_f429zi.overlay3 counter {
10 counter {
17 counter {
24 counter {
30 counter {
37 counter {
44 counter {
Dnucleo_g071rb.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
45 counter {
Dstm32f3_disco.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
45 counter {
Dstm32l562e_dk.overlay3 counter {
10 counter {
17 counter {
25 counter {
32 counter {
39 counter {
46 counter {
Dnucleo_g474re.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
Dnucleo_l073rz.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
Dnucleo_l152re.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
Dnucleo_u083rc.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
Dstm32u083c_dk.overlay3 counter {
10 counter {
17 counter {
24 counter {
31 counter {
38 counter {
/Zephyr-latest/subsys/net/lib/prometheus/
Dcounter.c17 int prometheus_counter_add(struct prometheus_counter *counter, uint64_t value) in prometheus_counter_add() argument
19 if (counter == NULL) { in prometheus_counter_add()
23 counter->value += value; in prometheus_counter_add()
28 int prometheus_counter_set(struct prometheus_counter *counter, uint64_t value) in prometheus_counter_set() argument
32 if (counter == NULL) { in prometheus_counter_set()
36 if (value == counter->value) { in prometheus_counter_set()
40 old_value = counter->value; in prometheus_counter_set()
47 counter->value += (value - old_value); in prometheus_counter_set()
/Zephyr-latest/drivers/watchdog/
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
82 int err = counter_cancel_channel_alarm(counter, chan_id); in timeout_set()
89 return counter_set_channel_alarm(counter, chan_id, &alarm_cfg); in timeout_set()
97 const struct device *counter = config->counter; in wdt_counter_install_timeout() local
100 if (!device_is_ready(counter)) { in wdt_counter_install_timeout()
[all …]
/Zephyr-latest/dts/arm/infineon/cat1a/psoc6_01/
Dpsoc6_01.dtsi316 counter0_0: counter@40380100 {
317 compatible = "infineon,cat1-counter";
323 counter0_1: counter@40380140 {
324 compatible = "infineon,cat1-counter";
330 counter0_2: counter@40380180 {
331 compatible = "infineon,cat1-counter";
337 counter0_3: counter@403801c0 {
338 compatible = "infineon,cat1-counter";
344 counter0_4: counter@40380200 {
345 compatible = "infineon,cat1-counter";
[all …]
/Zephyr-latest/dts/arm/infineon/cat1a/psoc6_02/
Dpsoc6_02.dtsi320 counter0_0: counter@40380100 {
321 compatible = "infineon,cat1-counter";
327 counter0_1: counter@40380140 {
328 compatible = "infineon,cat1-counter";
334 counter0_2: counter@40380180 {
335 compatible = "infineon,cat1-counter";
341 counter0_3: counter@403801c0 {
342 compatible = "infineon,cat1-counter";
348 counter0_4: counter@40380200 {
349 compatible = "infineon,cat1-counter";
[all …]
/Zephyr-latest/tests/net/lib/prometheus/collector/src/
Dmain.c29 struct prometheus_counter *counter; in ZTEST() local
33 counter = (struct prometheus_counter *)prometheus_collector_get_metric( in ZTEST()
36 zassert_equal_ptr(counter, &test_counter_m, in ZTEST()
38 &test_counter_m, counter); in ZTEST()
42 ret = prometheus_counter_inc(counter); in ZTEST()
45 zassert_equal(counter->value, 1, "Counter value is not 1"); in ZTEST()

12345678910>>...24