mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
fix(esp_timer): enable systimer functional clock on ESP32-S31
ESP32-S31 has a separate functional clock gate for the systimer (reg_systimer_clk_en in HP_SYS_CLKRST) that defaults to off. Without it, the counter snapshot never completes, hanging execution inside esp_timer_init_nonos. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -153,6 +153,7 @@ esp_err_t esp_timer_impl_early_init(void)
|
||||
if (ref_count == 0) {
|
||||
systimer_ll_enable_bus_clock(true);
|
||||
systimer_ll_reset_register();
|
||||
systimer_ll_enable_sys_clock(true);
|
||||
}
|
||||
}
|
||||
systimer_hal_tick_rate_ops_t ops = {
|
||||
|
||||
Reference in New Issue
Block a user