esp32/include/periph_conf_common.h¶
Common declarations of ESP32 periphery for all ESP32 boards.
This file contains peripheral configurations that are valid for all ESP32.
For detailed information about the configuration of ESP32 boards, see section .
-
ADC_GPIOS
¶ Declaration of GPIOs that can be used as ADC channels.
1
{ }
ADC_GPIOS is defined in board-specific peripheral configuration. Since ADC_GPIOS must be defined even if there are no ADC channels, an empty list definition is done here as fallback configuration.
-
ADC_NUMOF
¶ Number of GPIOs declared as ADC channels.
1
(adc_chn_num)
The number of GPIOs that are declared as ADC channels is determined from the ADC_GPIOS definition.
Note
ADC_NUMOF definition must not be changed.
-
DAC_GPIOS
¶ Declaration of GPIOs that can be used as DAC channels.
1
{ }
DAC_GPIOS is defined in board-specific peripheral configuration. Since DAC_GPIOS must be defined even if there are no DAC channels, an empty list definition is done here as fallback configuration.
-
DAC_NUMOF
¶ Number of GPIOs declared as DAC channels.
1
(dac_chn_num)
The number of GPIOs that are declared as DAC channels is determined from the DAC_GPIOS definition.
Note
DAC_NUMOF definition must not be changed.
-
I2C_NUMOF
¶ Number of I2C interfaces.
1
(i2c_bus_num)
The number of I2C interfaces is determined from board-specific peripheral definitions of I2Cn_SPEED, I2Cn_SCK, and I2Cn_SDA.
Note
I2C_NUMOF definition must not be changed.
-
PWM_NUMOF
¶ Number of PWM devices.
1
(pwm_dev_num)
The number of PWM devices is determined from the PWM0_GPIOS and PWM1_GPIOS definitions.
Note
PWM_NUMOF definition must not be changed.
-
SPI_NUMOF
¶ Number of SPI interfaces.
1
(spi_bus_num)
The number of SPI interfaces is determined from board-specific peripheral definitions of SPIn_*.
Note
SPI_NUMOF definition must not be changed.
-
UART_NUMOF
¶ Number of UART interfaces.
1
1
The number of UART interfaces is determined from board-specific peripheral definitions of UARTn_*.
Note
UART_NUMOF definition must not be changed.