2023-03-01 06:50:45 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "soc/ana_cmpr_periph.h"
|
2023-07-30 22:43:54 -04:00
|
|
|
#include "soc/ana_cmpr_struct.h"
|
2023-03-01 06:50:45 -05:00
|
|
|
|
2023-07-30 22:43:54 -04:00
|
|
|
const ana_cmpr_periph_t ana_cmpr_periph[SOC_ANA_CMPR_NUM] = {
|
2023-03-01 06:50:45 -05:00
|
|
|
[0] = {
|
|
|
|
.src_gpio = ANA_CMPR0_SRC_GPIO,
|
|
|
|
.ext_ref_gpio = ANA_CMPR0_EXT_REF_GPIO,
|
2023-07-18 08:08:22 -04:00
|
|
|
.intr_src = ETS_GPIO_INTR_SOURCE,
|
2023-03-01 06:50:45 -05:00
|
|
|
},
|
|
|
|
};
|
2023-07-30 22:43:54 -04:00
|
|
|
|
|
|
|
analog_cmpr_dev_t ANALOG_CMPR[SOC_ANA_CMPR_NUM] = {
|
|
|
|
[0] = {
|
|
|
|
.pad_comp_config = &GPIO_EXT.pad_comp_config,
|
|
|
|
.pad_comp_filter = &GPIO_EXT.pad_comp_filter,
|
|
|
|
.int_st = &GPIO_EXT.int_st,
|
|
|
|
.int_ena = &GPIO_EXT.int_ena,
|
|
|
|
.int_clr = &GPIO_EXT.int_clr,
|
|
|
|
},
|
|
|
|
};
|