2023-06-29 23:29:39 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "soc/pcnt_periph.h"
|
|
|
|
#include "soc/gpio_sig_map.h"
|
|
|
|
|
|
|
|
const pcnt_signal_conn_t pcnt_periph_signals = {
|
2023-08-01 03:00:05 -04:00
|
|
|
.groups = {
|
|
|
|
[0] = {
|
|
|
|
.irq = ETS_PCNT_INTR_SOURCE,
|
|
|
|
.units = {
|
|
|
|
[0] = {
|
|
|
|
.channels = {
|
|
|
|
[0] = {
|
|
|
|
.control_sig = PCNT_CTRL_CH0_PAD_IN0_IDX,
|
|
|
|
.pulse_sig = PCNT_SIG_CH0_PAD_IN0_IDX
|
|
|
|
},
|
|
|
|
[1] = {
|
|
|
|
.control_sig = PCNT_CTRL_CH1_PAD_IN0_IDX,
|
|
|
|
.pulse_sig = PCNT_SIG_CH1_PAD_IN0_IDX
|
|
|
|
}
|
|
|
|
},
|
|
|
|
.clear_sig = PCNT_RST_PAD_IN0_IDX
|
|
|
|
},
|
|
|
|
[1] = {
|
|
|
|
.channels = {
|
|
|
|
[0] = {
|
|
|
|
.control_sig = PCNT_CTRL_CH0_PAD_IN1_IDX,
|
|
|
|
.pulse_sig = PCNT_SIG_CH0_PAD_IN1_IDX,
|
|
|
|
},
|
|
|
|
[1] = {
|
|
|
|
.control_sig = PCNT_CTRL_CH1_PAD_IN1_IDX,
|
|
|
|
.pulse_sig = PCNT_SIG_CH1_PAD_IN1_IDX
|
|
|
|
}
|
|
|
|
},
|
|
|
|
.clear_sig = PCNT_RST_PAD_IN1_IDX
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
.channels = {
|
|
|
|
[0] = {
|
|
|
|
.control_sig = PCNT_CTRL_CH0_PAD_IN2_IDX,
|
|
|
|
.pulse_sig = PCNT_SIG_CH0_PAD_IN2_IDX,
|
|
|
|
},
|
|
|
|
[1] = {
|
|
|
|
.control_sig = PCNT_CTRL_CH1_PAD_IN2_IDX,
|
|
|
|
.pulse_sig = PCNT_SIG_CH1_PAD_IN2_IDX
|
|
|
|
}
|
|
|
|
},
|
|
|
|
.clear_sig = PCNT_RST_PAD_IN2_IDX
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
.channels = {
|
|
|
|
[0] = {
|
|
|
|
.control_sig = PCNT_CTRL_CH0_PAD_IN3_IDX,
|
|
|
|
.pulse_sig = PCNT_SIG_CH0_PAD_IN3_IDX,
|
|
|
|
},
|
|
|
|
[1] = {
|
|
|
|
.control_sig = PCNT_CTRL_CH1_PAD_IN3_IDX,
|
|
|
|
.pulse_sig = PCNT_SIG_CH1_PAD_IN3_IDX
|
|
|
|
}
|
|
|
|
},
|
|
|
|
.clear_sig = PCNT_RST_PAD_IN3_IDX
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-29 23:29:39 -04:00
|
|
|
};
|