feat(etm): add ETM LL and GPIO ETM support on esp32s31

Enable ETM caps and add S31 ETM/GPIO LL and retention support for
GPTimer ETM builds.
This commit is contained in:
morris
2026-04-07 14:47:36 +08:00
parent 953c40c9aa
commit 43bc8c2fe5
56 changed files with 754 additions and 1268 deletions
@@ -11,6 +11,7 @@
#include <stdbool.h>
#include "hal/assert.h"
#include "hal/misc.h"
#include "hal/etm_types.h"
#include "soc/soc_etm_struct.h"
#include "soc/pcr_struct.h"
@@ -42,6 +43,30 @@ static inline void etm_ll_enable_bus_clock(int group_id, bool enable)
PCR.etm_conf.etm_clk_en = enable;
}
/**
* @brief Enable the clock for ETM function
*
* @param group_id Group ID
* @param enable true to enable, false to disable
*/
static inline void etm_ll_enable_function_clock(int group_id, bool enable)
{
(void)group_id;
(void)enable;
}
/**
* @brief Set the clock source for ETM
*
* @param group_id Group ID
* @param clk_src Clock source
*/
static inline void etm_ll_set_clock_source(int group_id, etm_clock_source_t clk_src)
{
(void)group_id;
(void)clk_src;
}
/**
* @brief Reset the ETM register
*