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

@@ -62,6 +62,17 @@ static inline void systimer_ll_enable_bus_clock(bool enable)
systimer_ll_enable_bus_clock(__VA_ARGS__); \
} while(0)
/**
* @brief Enable the sys clock for systimer module
* This chip does not have a separate sys clock gate, this is a no-op.
*
* @param enable true to enable, false to disable
*/
static inline void systimer_ll_enable_sys_clock(bool enable)
{
(void)enable;
}
/**
* @brief Reset the systimer module
*