refactor(gptimer): use group_id in clock ctrl functions

This commit is contained in:
Chen Jichang
2025-04-02 11:39:42 +08:00
parent faacaaaf8f
commit 2cbc297969
19 changed files with 105 additions and 98 deletions

View File

@@ -195,7 +195,7 @@ esp_err_t gptimer_del_timer(gptimer_handle_t timer)
ESP_LOGD(TAG, "del timer (%d,%d)", group_id, timer_id);
// disable the source clock
GPTIMER_CLOCK_SRC_ATOMIC() {
timer_ll_enable_clock(hal->dev, hal->timer_id, false);
timer_ll_enable_clock(group_id, hal->timer_id, false);
}
timer_hal_deinit(hal);
// recycle memory resource