Searched refs:counter_id (Results 1 – 6 of 6) sorted by relevance
/hal_espressif-2.7.6/components/hal/esp32c3/ |
D | systimer_hal.c | 27 uint64_t systimer_hal_get_counter_value(systimer_counter_id_t counter_id) in systimer_hal_get_counter_value() argument 31 systimer_ll_counter_snapshot(counter_id); in systimer_hal_get_counter_value() 32 while (!systimer_ll_is_counter_value_valid(counter_id)); in systimer_hal_get_counter_value() 38 lo_start = systimer_ll_get_counter_value_low(counter_id); in systimer_hal_get_counter_value() 41 hi = systimer_ll_get_counter_value_high(counter_id); in systimer_hal_get_counter_value() 42 lo_start = systimer_ll_get_counter_value_low(counter_id); in systimer_hal_get_counter_value() 53 uint64_t systimer_hal_get_time(systimer_counter_id_t counter_id) in systimer_hal_get_time() argument 55 return systimer_hal_get_counter_value(counter_id) / SYSTIMER_TICKS_PER_US; in systimer_hal_get_time() 91 void systimer_hal_counter_value_advance(systimer_counter_id_t counter_id, int64_t time_us) in systimer_hal_counter_value_advance() argument 93 …systimer_counter_value_t new_count = { .val = systimer_hal_get_counter_value(counter_id) + time_us… in systimer_hal_counter_value_advance() [all …]
|
/hal_espressif-2.7.6/components/hal/esp32s3/ |
D | systimer_hal.c | 24 uint64_t systimer_hal_get_counter_value(systimer_counter_id_t counter_id) in systimer_hal_get_counter_value() argument 28 systimer_ll_counter_snapshot(counter_id); in systimer_hal_get_counter_value() 29 while (!systimer_ll_is_counter_value_valid(counter_id)); in systimer_hal_get_counter_value() 35 lo_start = systimer_ll_get_counter_value_low(counter_id); in systimer_hal_get_counter_value() 38 hi = systimer_ll_get_counter_value_high(counter_id); in systimer_hal_get_counter_value() 39 lo_start = systimer_ll_get_counter_value_low(counter_id); in systimer_hal_get_counter_value() 50 uint64_t systimer_hal_get_time(systimer_counter_id_t counter_id) in systimer_hal_get_time() argument 52 return systimer_hal_get_counter_value(counter_id) / SYSTIMER_TICKS_PER_US; in systimer_hal_get_time() 88 void systimer_hal_counter_value_advance(systimer_counter_id_t counter_id, int64_t time_us) in systimer_hal_counter_value_advance() argument 90 …systimer_counter_value_t new_count = { .val = systimer_hal_get_counter_value(counter_id) + time_us… in systimer_hal_counter_value_advance() [all …]
|
/hal_espressif-2.7.6/components/hal/esp32c3/include/hal/ |
D | systimer_ll.h | 35 __attribute__((always_inline)) static inline void systimer_ll_enable_counter(uint32_t counter_id) in systimer_ll_enable_counter() argument 37 REG_SET_BIT(SYS_TIMER_SYSTIMER_CONF_REG, 1 << (30 - counter_id)); in systimer_ll_enable_counter() 40 …ine)) static inline void systimer_ll_counter_can_stall_by_cpu(uint32_t counter_id, uint32_t cpu_id… in systimer_ll_counter_can_stall_by_cpu() argument 43 REG_SET_BIT(SYS_TIMER_SYSTIMER_CONF_REG, 1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu() 45 REG_CLR_BIT(SYS_TIMER_SYSTIMER_CONF_REG, 1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu() 49 __attribute__((always_inline)) static inline void systimer_ll_counter_snapshot(uint32_t counter_id) in systimer_ll_counter_snapshot() argument 51 REG_SET_BIT(SYS_TIMER_SYSTIMER_UNIT0_OP_REG + 4 * counter_id, 1 << 30); in systimer_ll_counter_snapshot() 54 …ibute__((always_inline)) static inline bool systimer_ll_is_counter_value_valid(uint32_t counter_id) in systimer_ll_is_counter_value_valid() argument 56 return REG_GET_BIT(SYS_TIMER_SYSTIMER_UNIT0_OP_REG + 4 * counter_id, 1 << 29); in systimer_ll_is_counter_value_valid() 59 __attribute__((always_inline)) static inline void systimer_ll_set_counter_value(uint32_t counter_id… in systimer_ll_set_counter_value() argument [all …]
|
/hal_espressif-2.7.6/components/hal/esp32s3/include/hal/ |
D | systimer_ll.h | 35 __attribute__((always_inline)) static inline void systimer_ll_enable_counter(uint32_t counter_id) in systimer_ll_enable_counter() argument 37 REG_SET_BIT(SYS_TIMER_SYSTIMER_CONF_REG, 1 << (30 - counter_id)); in systimer_ll_enable_counter() 40 …ine)) static inline void systimer_ll_counter_can_stall_by_cpu(uint32_t counter_id, uint32_t cpu_id… in systimer_ll_counter_can_stall_by_cpu() argument 43 REG_SET_BIT(SYS_TIMER_SYSTIMER_CONF_REG, 1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu() 45 REG_CLR_BIT(SYS_TIMER_SYSTIMER_CONF_REG, 1 << ((28 - counter_id * 2) - cpu_id)); in systimer_ll_counter_can_stall_by_cpu() 49 __attribute__((always_inline)) static inline void systimer_ll_counter_snapshot(uint32_t counter_id) in systimer_ll_counter_snapshot() argument 51 REG_SET_BIT(SYS_TIMER_SYSTIMER_UNIT0_OP_REG + 4 * counter_id, 1 << 30); in systimer_ll_counter_snapshot() 54 …ibute__((always_inline)) static inline bool systimer_ll_is_counter_value_valid(uint32_t counter_id) in systimer_ll_is_counter_value_valid() argument 56 return REG_GET_BIT(SYS_TIMER_SYSTIMER_UNIT0_OP_REG + 4 * counter_id, 1 << 29); in systimer_ll_is_counter_value_valid() 59 __attribute__((always_inline)) static inline void systimer_ll_set_counter_value(uint32_t counter_id… in systimer_ll_set_counter_value() argument [all …]
|
/hal_espressif-2.7.6/components/hal/esp32s2/ |
D | systimer_hal.c | 25 uint64_t systimer_hal_get_counter_value(systimer_counter_id_t counter_id) in systimer_hal_get_counter_value() argument 51 uint64_t systimer_hal_get_time(systimer_counter_id_t counter_id) in systimer_hal_get_time() argument 53 return systimer_hal_get_counter_value(counter_id) / SYSTIMER_TICKS_PER_US; in systimer_hal_get_time() 101 void systimer_hal_counter_value_advance(systimer_counter_id_t counter_id, int64_t time_us) in systimer_hal_counter_value_advance() argument 103 …systimer_counter_value_t new_count = { .val = systimer_hal_get_counter_value(counter_id) + time_us… in systimer_hal_counter_value_advance() 108 void systimer_hal_enable_counter(systimer_counter_id_t counter_id) in systimer_hal_enable_counter() argument 110 (void)counter_id; in systimer_hal_enable_counter() 143 … systimer_hal_connect_alarm_counter(systimer_alarm_id_t alarm_id, systimer_counter_id_t counter_id) in systimer_hal_connect_alarm_counter() argument 147 (void)counter_id; in systimer_hal_connect_alarm_counter()
|
/hal_espressif-2.7.6/components/hal/include/hal/ |
D | systimer_hal.h | 28 void systimer_hal_enable_counter(systimer_counter_id_t counter_id); 33 uint64_t systimer_hal_get_counter_value(systimer_counter_id_t counter_id); 38 uint64_t systimer_hal_get_time(systimer_counter_id_t counter_id); 73 void systimer_hal_counter_value_advance(systimer_counter_id_t counter_id, int64_t time_us); 83 …systimer_hal_connect_alarm_counter(systimer_alarm_id_t alarm_id, systimer_counter_id_t counter_id); 88 void systimer_hal_counter_can_stall_by_cpu(uint32_t counter_id, uint32_t cpu_id, bool can);
|