mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
refactor(ana_cmpr): use enum types in ll
This commit is contained in:
@@ -11,7 +11,7 @@ const ana_cmpr_periph_t ana_cmpr_periph[SOC_ANA_CMPR_NUM] = {
|
||||
[0] = {
|
||||
.src_gpio = ANA_CMPR0_SRC_GPIO,
|
||||
.ext_ref_gpio = ANA_CMPR0_EXT_REF_GPIO,
|
||||
.intr_src = ETS_GPIO_NMI_SOURCE,
|
||||
.intr_src = ETS_GPIO_EXT_SOURCE,
|
||||
},
|
||||
};
|
||||
|
||||
|
@@ -47,7 +47,7 @@ typedef enum {
|
||||
ETS_CACHE_INTR_SOURCE,
|
||||
ETS_CPU_PERI_TIMEOUT_INTR_SOURCE,
|
||||
ETS_GPIO_INTR_SOURCE, /**< interrupt of GPIO, level*/
|
||||
ETS_GPIO_NMI_SOURCE, /**< interrupt of GPIO, NMI*/
|
||||
ETS_GPIO_EXT_SOURCE, /**< interrupt of GPIO, EXT (analog comparator)*/
|
||||
ETS_PAU_INTR_SOURCE,
|
||||
ETS_HP_PERI_TIMEOUT_INTR_SOURCE,
|
||||
ETS_MODEM_PERI_TIMEOUT_INTR_SOURCE,
|
||||
|
@@ -39,7 +39,7 @@ const char *const esp_isr_names[] = {
|
||||
[ETS_CACHE_INTR_SOURCE] = "CACHE",
|
||||
[ETS_CPU_PERI_TIMEOUT_INTR_SOURCE] = "CPU_PERI_TIMEOUT",
|
||||
[ETS_GPIO_INTR_SOURCE] = "GPIO_INTR",
|
||||
[ETS_GPIO_NMI_SOURCE] = "GPIO_NMI",
|
||||
[ETS_GPIO_EXT_SOURCE] = "GPIO_EXT",
|
||||
[ETS_PAU_INTR_SOURCE] = "PAU",
|
||||
[ETS_HP_PERI_TIMEOUT_INTR_SOURCE] = "HP_PERI_TIMEOUT",
|
||||
[ETS_MODEM_PERI_TIMEOUT_INTR_SOURCE] = "MODEM_PERI_TIMEOUT",
|
||||
|
Reference in New Issue
Block a user