/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/ |
D | systimer_ll.h | 44 …)) static inline void systimer_ll_enable_counter(systimer_dev_t *dev, uint32_t counter_id, bool en) in systimer_ll_enable_counter() argument 47 dev->conf.val |= 1 << (30 - counter_id); in systimer_ll_enable_counter() 49 dev->conf.val &= ~(1 << (30 - counter_id)); in systimer_ll_enable_counter() 53 …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 56 dev->conf.val |= 1 << ((28 - counter_id * 2) - cpu_id); in systimer_ll_counter_can_stall_by_cpu() 58 dev->conf.val &= ~(1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu() 62 …_inline)) static inline void systimer_ll_counter_snapshot(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_counter_snapshot() argument 64 dev->unit_op[counter_id].timer_unit_update = 1; in systimer_ll_counter_snapshot() 67 …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 69 return dev->unit_op[counter_id].timer_unit_value_valid; in systimer_ll_is_counter_value_valid() [all …]
|
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/ |
D | systimer_ll.h | 45 …)) static inline void systimer_ll_enable_counter(systimer_dev_t *dev, uint32_t counter_id, bool en) in systimer_ll_enable_counter() argument 48 dev->conf.val |= 1 << (30 - counter_id); in systimer_ll_enable_counter() 50 dev->conf.val &= ~(1 << (30 - counter_id)); in systimer_ll_enable_counter() 54 …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 57 dev->conf.val |= 1 << ((28 - counter_id * 2) - cpu_id); in systimer_ll_counter_can_stall_by_cpu() 59 dev->conf.val &= ~(1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu() 63 …_inline)) static inline void systimer_ll_counter_snapshot(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_counter_snapshot() argument 65 dev->unit_op[counter_id].timer_unit_update = 1; in systimer_ll_counter_snapshot() 68 …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 70 return dev->unit_op[counter_id].timer_unit_value_valid; in systimer_ll_is_counter_value_valid() [all …]
|
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/ |
D | systimer_ll.h | 44 …)) static inline void systimer_ll_enable_counter(systimer_dev_t *dev, uint32_t counter_id, bool en) in systimer_ll_enable_counter() argument 47 dev->conf.val |= 1 << (30 - counter_id); in systimer_ll_enable_counter() 49 dev->conf.val &= ~(1 << (30 - counter_id)); in systimer_ll_enable_counter() 53 …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 56 dev->conf.val |= 1 << ((28 - counter_id * 2) - cpu_id); in systimer_ll_counter_can_stall_by_cpu() 58 dev->conf.val &= ~(1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu() 62 …_inline)) static inline void systimer_ll_counter_snapshot(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_counter_snapshot() argument 64 dev->unit_op[counter_id].timer_unit_update = 1; in systimer_ll_counter_snapshot() 67 …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 69 return dev->unit_op[counter_id].timer_unit_value_valid; in systimer_ll_is_counter_value_valid() [all …]
|
/hal_espressif-3.6.0/components/hal/ |
D | systimer_hal.c | 30 uint64_t systimer_hal_get_counter_value(systimer_hal_context_t *hal, uint32_t counter_id) in systimer_hal_get_counter_value() argument 34 systimer_ll_counter_snapshot(hal->dev, counter_id); in systimer_hal_get_counter_value() 35 while (!systimer_ll_is_counter_value_valid(hal->dev, counter_id)); in systimer_hal_get_counter_value() 41 lo_start = systimer_ll_get_counter_value_low(hal->dev, counter_id); in systimer_hal_get_counter_value() 44 hi = systimer_ll_get_counter_value_high(hal->dev, counter_id); in systimer_hal_get_counter_value() 45 lo_start = systimer_ll_get_counter_value_low(hal->dev, counter_id); in systimer_hal_get_counter_value() 56 uint64_t systimer_hal_get_time(systimer_hal_context_t *hal, uint32_t counter_id) in systimer_hal_get_time() argument 58 return systimer_hal_get_counter_value(hal, counter_id) / SYSTIMER_LL_TICKS_PER_US; in systimer_hal_get_time() 112 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 114 …systimer_counter_value_t new_count = { .val = systimer_hal_get_counter_value(hal, counter_id) + ti… in systimer_hal_counter_value_advance() [all …]
|
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/ |
D | systimer_ll.h | 42 …)) static inline void systimer_ll_enable_counter(systimer_dev_t *dev, uint32_t counter_id, bool en) in systimer_ll_enable_counter() argument 46 (void)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 (void)counter_id; in systimer_ll_counter_can_stall_by_cpu() 57 …_inline)) static inline void systimer_ll_counter_snapshot(systimer_dev_t *dev, uint32_t counter_id) in systimer_ll_counter_snapshot() argument 59 (void)counter_id; 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 (void)counter_id; in systimer_ll_is_counter_value_valid() 69 …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 71 (void)counter_id; in systimer_ll_set_counter_value() [all …]
|
/hal_espressif-3.6.0/components/hal/include/hal/ |
D | systimer_hal.h | 39 void systimer_hal_enable_counter(systimer_hal_context_t *hal, uint32_t counter_id); 44 uint64_t systimer_hal_get_counter_value(systimer_hal_context_t *hal, uint32_t counter_id); 49 uint64_t systimer_hal_get_time(systimer_hal_context_t *hal, uint32_t counter_id); 84 void systimer_hal_counter_value_advance(systimer_hal_context_t *hal, uint32_t counter_id, int64_t t… 89 …mer_hal_connect_alarm_counter(systimer_hal_context_t *hal, uint32_t alarm_id, uint32_t counter_id); 94 void systimer_hal_counter_can_stall_by_cpu(systimer_hal_context_t *hal, uint32_t counter_id, uint32…
|