2021-11-06 05:25:49 -04:00
|
|
|
/*
|
2022-01-17 21:32:56 -05:00
|
|
|
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
2021-11-06 05:25:49 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "soc/adc_periph.h"
|
|
|
|
|
|
|
|
/* Store IO number corresponding to the ADC channel number. */
|
|
|
|
const int adc_channel_io_map[SOC_ADC_PERIPH_NUM][SOC_ADC_MAX_CHANNEL_NUM] = {
|
|
|
|
/* ADC1 */
|
|
|
|
{
|
|
|
|
ADC1_CHANNEL_0_GPIO_NUM, ADC1_CHANNEL_1_GPIO_NUM, ADC1_CHANNEL_2_GPIO_NUM, ADC1_CHANNEL_3_GPIO_NUM, ADC1_CHANNEL_4_GPIO_NUM
|
|
|
|
},
|
|
|
|
/* ADC2 */
|
|
|
|
{
|
2022-03-08 06:26:04 -05:00
|
|
|
-1, -1, -1, -1, -1
|
2021-11-06 05:25:49 -04:00
|
|
|
}
|
|
|
|
};
|