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:
Marius Vikhammer
2026-03-18 11:08:40 +08:00
parent e8ba294bd2
commit 4ab44312d4
13 changed files with 128 additions and 1 deletions

View File

@@ -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 = {