Home
last modified time | relevance | path

Searched refs:counter_id (Results 1 – 10 of 10) sorted by relevance

/hal_espressif-latest/components/hal/esp32s3/include/hal/
Dsystimer_ll.h40 …)) static inline void systimer_ll_enable_counter(systimer_dev_t *dev, uint32_t counter_id, bool en) in systimer_ll_enable_counter() argument
43 dev->conf.val |= 1 << (30 - counter_id); in systimer_ll_enable_counter()
45 dev->conf.val &= ~(1 << (30 - counter_id)); in systimer_ll_enable_counter()
49 …oid systimer_ll_counter_can_stall_by_cpu(systimer_dev_t *dev, uint32_t counter_id, uint32_t cpu_id… in systimer_ll_counter_can_stall_by_cpu() argument
52 dev->conf.val |= 1 << ((28 - counter_id * 2) - cpu_id); in systimer_ll_counter_can_stall_by_cpu()
54 dev->conf.val &= ~(1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu()
58 …_inline)) static inline void systimer_ll_counter_snapshot(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_counter_snapshot() argument
60 dev->unit_op[counter_id].timer_unit_update = 1; in systimer_ll_counter_snapshot()
63 …e)) static inline bool systimer_ll_is_counter_value_valid(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_is_counter_value_valid() argument
65 return dev->unit_op[counter_id].timer_unit_value_valid; in systimer_ll_is_counter_value_valid()
[all …]
/hal_espressif-latest/components/hal/esp32c2/include/hal/
Dsystimer_ll.h40 …)) static inline void systimer_ll_enable_counter(systimer_dev_t *dev, uint32_t counter_id, bool en) in systimer_ll_enable_counter() argument
43 dev->conf.val |= 1 << (30 - counter_id); in systimer_ll_enable_counter()
45 dev->conf.val &= ~(1 << (30 - counter_id)); in systimer_ll_enable_counter()
49 …oid systimer_ll_counter_can_stall_by_cpu(systimer_dev_t *dev, uint32_t counter_id, uint32_t cpu_id… in systimer_ll_counter_can_stall_by_cpu() argument
52 dev->conf.val |= 1 << ((28 - counter_id * 2) - cpu_id); in systimer_ll_counter_can_stall_by_cpu()
54 dev->conf.val &= ~(1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu()
58 …_inline)) static inline void systimer_ll_counter_snapshot(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_counter_snapshot() argument
60 dev->unit_op[counter_id].timer_unit_update = 1; in systimer_ll_counter_snapshot()
63 …e)) static inline bool systimer_ll_is_counter_value_valid(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_is_counter_value_valid() argument
65 return dev->unit_op[counter_id].timer_unit_value_valid; in systimer_ll_is_counter_value_valid()
[all …]
/hal_espressif-latest/components/hal/esp32c3/include/hal/
Dsystimer_ll.h40 …)) static inline void systimer_ll_enable_counter(systimer_dev_t *dev, uint32_t counter_id, bool en) in systimer_ll_enable_counter() argument
43 dev->conf.val |= 1 << (30 - counter_id); in systimer_ll_enable_counter()
45 dev->conf.val &= ~(1 << (30 - counter_id)); in systimer_ll_enable_counter()
49 …oid systimer_ll_counter_can_stall_by_cpu(systimer_dev_t *dev, uint32_t counter_id, uint32_t cpu_id… in systimer_ll_counter_can_stall_by_cpu() argument
52 dev->conf.val |= 1 << ((28 - counter_id * 2) - cpu_id); in systimer_ll_counter_can_stall_by_cpu()
54 dev->conf.val &= ~(1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu()
58 …_inline)) static inline void systimer_ll_counter_snapshot(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_counter_snapshot() argument
60 dev->unit_op[counter_id].timer_unit_update = 1; in systimer_ll_counter_snapshot()
63 …e)) static inline bool systimer_ll_is_counter_value_valid(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_is_counter_value_valid() argument
65 return dev->unit_op[counter_id].timer_unit_value_valid; in systimer_ll_is_counter_value_valid()
[all …]
/hal_espressif-latest/components/hal/esp32c6/include/hal/
Dsystimer_ll.h49 …)) static inline void systimer_ll_enable_counter(systimer_dev_t *dev, uint32_t counter_id, bool en) in systimer_ll_enable_counter() argument
52 dev->conf.val |= 1 << (30 - counter_id); in systimer_ll_enable_counter()
54 dev->conf.val &= ~(1 << (30 - counter_id)); in systimer_ll_enable_counter()
58 …oid systimer_ll_counter_can_stall_by_cpu(systimer_dev_t *dev, uint32_t counter_id, uint32_t cpu_id… in systimer_ll_counter_can_stall_by_cpu() argument
61 dev->conf.val |= 1 << ((28 - counter_id * 2) - cpu_id); in systimer_ll_counter_can_stall_by_cpu()
63 dev->conf.val &= ~(1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu()
67 …_inline)) static inline void systimer_ll_counter_snapshot(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_counter_snapshot() argument
69 dev->unit_op[counter_id].timer_unit_update = 1; in systimer_ll_counter_snapshot()
72 …e)) static inline bool systimer_ll_is_counter_value_valid(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_is_counter_value_valid() argument
74 return dev->unit_op[counter_id].timer_unit_value_valid; in systimer_ll_is_counter_value_valid()
[all …]
/hal_espressif-latest/components/hal/esp32h2/include/hal/
Dsystimer_ll.h49 …)) static inline void systimer_ll_enable_counter(systimer_dev_t *dev, uint32_t counter_id, bool en) in systimer_ll_enable_counter() argument
52 dev->conf.val |= 1 << (30 - counter_id); in systimer_ll_enable_counter()
54 dev->conf.val &= ~(1 << (30 - counter_id)); in systimer_ll_enable_counter()
58 …oid systimer_ll_counter_can_stall_by_cpu(systimer_dev_t *dev, uint32_t counter_id, uint32_t cpu_id… in systimer_ll_counter_can_stall_by_cpu() argument
61 dev->conf.val |= 1 << ((28 - counter_id * 2) - cpu_id); in systimer_ll_counter_can_stall_by_cpu()
63 dev->conf.val &= ~(1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu()
67 …_inline)) static inline void systimer_ll_counter_snapshot(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_counter_snapshot() argument
69 dev->unit_op[counter_id].timer_unit_update = 1; in systimer_ll_counter_snapshot()
72 …e)) static inline bool systimer_ll_is_counter_value_valid(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_is_counter_value_valid() argument
74 return dev->unit_op[counter_id].timer_unit_value_valid; in systimer_ll_is_counter_value_valid()
[all …]
/hal_espressif-latest/components/hal/
Dsystimer_hal.c51 uint64_t systimer_hal_get_counter_value(systimer_hal_context_t *hal, uint32_t counter_id) in systimer_hal_get_counter_value() argument
55 systimer_ll_counter_snapshot(hal->dev, counter_id); in systimer_hal_get_counter_value()
56 while (!systimer_ll_is_counter_value_valid(hal->dev, counter_id)); in systimer_hal_get_counter_value()
62 lo_start = systimer_ll_get_counter_value_low(hal->dev, counter_id); in systimer_hal_get_counter_value()
65 hi = systimer_ll_get_counter_value_high(hal->dev, counter_id); in systimer_hal_get_counter_value()
66 lo_start = systimer_ll_get_counter_value_low(hal->dev, counter_id); in systimer_hal_get_counter_value()
77 uint64_t systimer_hal_get_time(systimer_hal_context_t *hal, uint32_t counter_id) in systimer_hal_get_time() argument
79 return hal->ticks_to_us(systimer_hal_get_counter_value(hal, counter_id)); in systimer_hal_get_time()
137 void systimer_hal_counter_value_advance(systimer_hal_context_t *hal, uint32_t counter_id, int64_t t… in systimer_hal_counter_value_advance() argument
140 .val = systimer_hal_get_counter_value(hal, counter_id) + hal->us_to_ticks(time_us), in systimer_hal_counter_value_advance()
[all …]
/hal_espressif-latest/components/hal/esp32s2/include/hal/
Dsystimer_ll.h40 …)) static inline void systimer_ll_enable_counter(systimer_dev_t *dev, uint32_t counter_id, bool en) in systimer_ll_enable_counter() argument
44 (void)counter_id; in systimer_ll_enable_counter()
47 …oid systimer_ll_counter_can_stall_by_cpu(systimer_dev_t *dev, uint32_t counter_id, uint32_t cpu_id… in systimer_ll_counter_can_stall_by_cpu() argument
50 (void)counter_id; in systimer_ll_counter_can_stall_by_cpu()
55 …_inline)) static inline void systimer_ll_counter_snapshot(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_counter_snapshot() argument
57 (void)counter_id; in systimer_ll_counter_snapshot()
61 …e)) static inline bool systimer_ll_is_counter_value_valid(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_is_counter_value_valid() argument
63 (void)counter_id; in systimer_ll_is_counter_value_valid()
67 …inline void systimer_ll_set_counter_value(systimer_dev_t *dev, uint32_t counter_id, uint64_t value) in systimer_ll_set_counter_value() argument
69 (void)counter_id; in systimer_ll_set_counter_value()
[all …]
/hal_espressif-latest/components/hal/include/hal/
Dsystimer_hal.h65 void systimer_hal_enable_counter(systimer_hal_context_t *hal, uint32_t counter_id);
70 uint64_t systimer_hal_get_counter_value(systimer_hal_context_t *hal, uint32_t counter_id);
75 uint64_t systimer_hal_get_time(systimer_hal_context_t *hal, uint32_t counter_id);
110 void systimer_hal_counter_value_advance(systimer_hal_context_t *hal, uint32_t counter_id, int64_t t…
115 …mer_hal_connect_alarm_counter(systimer_hal_context_t *hal, uint32_t alarm_id, uint32_t counter_id);
120 void systimer_hal_counter_can_stall_by_cpu(systimer_hal_context_t *hal, uint32_t counter_id, uint32…
/hal_espressif-latest/components/esp_rom/patches/
Desp_rom_systimer.c33 uint64_t systimer_hal_get_time(systimer_hal_context_t *hal, uint32_t counter_id) in systimer_hal_get_time() argument
35 return hal->ticks_to_us(systimer_hal_get_counter_value(hal, counter_id)); in systimer_hal_get_time()
57 void systimer_hal_counter_value_advance(systimer_hal_context_t *hal, uint32_t counter_id, int64_t t… in systimer_hal_counter_value_advance() argument
60 .val = systimer_hal_get_counter_value(hal, counter_id) + hal->us_to_ticks(time_us), in systimer_hal_counter_value_advance()
62 systimer_ll_set_counter_value(hal->dev, counter_id, new_count.val); in systimer_hal_counter_value_advance()
63 systimer_ll_apply_counter_value(hal->dev, counter_id); in systimer_hal_counter_value_advance()
/hal_espressif-latest/components/esp_hw_support/
Dsleep_modes.c495 for (uint32_t counter_id = 0; counter_id < SOC_SYSTIMER_COUNTER_NUM; ++counter_id) { in suspend_timers() local
496 systimer_ll_enable_counter(&SYSTIMER, counter_id, false); in suspend_timers()
506 for (uint32_t counter_id = 0; counter_id < SOC_SYSTIMER_COUNTER_NUM; ++counter_id) { in resume_timers() local
507 systimer_ll_enable_counter(&SYSTIMER, counter_id, true); in resume_timers()