mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user