feat(ana_cmpr): supported analog comparator etm function on p4

This commit is contained in:
laokaiyao
2023-07-28 15:40:38 +08:00
parent a989ce4ab1
commit bf2a5653a9
9 changed files with 169 additions and 4 deletions

View File

@@ -395,6 +395,14 @@ config SOC_ANA_CMPR_SUPPORT_MULTI_INTR
bool
default y
config SOC_ANA_CMPR_SUPPORT_ETM
bool
default y
config SOC_ANA_CMPR_ETM_EVENTS_PER_UNIT
int
default 2
config SOC_I2C_NUM
int
default 2

View File

@@ -553,7 +553,7 @@ typedef union {
uint32_t val;
} gpio_clock_gate_reg_t;
/** Type of zero_det0_filter_cnt register
/** Type of zero_det_filter_cnt register
* GPIO analog comparator zero detect filter count
*/
typedef union {

View File

@@ -221,8 +221,10 @@
#define SOC_DEDIC_PERIPH_ALWAYS_ENABLE (1) /*!< The dedicated GPIO (a.k.a. fast GPIO) is featured by some customized CPU instructions, which is always enabled */
/*------------------------- Analog Comparator CAPS ---------------------------*/
#define SOC_ANA_CMPR_NUM (2U)
#define SOC_ANA_CMPR_SUPPORT_MULTI_INTR (1)
#define SOC_ANA_CMPR_NUM (2U)
#define SOC_ANA_CMPR_SUPPORT_MULTI_INTR (1)
#define SOC_ANA_CMPR_SUPPORT_ETM (1)
#define SOC_ANA_CMPR_ETM_EVENTS_PER_UNIT (2)
/*-------------------------- I2C CAPS ----------------------------------------*/
// ESP32-P4 has 2 I2Cs