mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user