boards/esp32-wroom-32/include/periph_conf.h¶
Peripheral MCU configuration for generic ESP32-WROOM-32 boards.
This configuration can be used for a large set of ESP32 boards that use an ESP32-WROOM-32 module and simply break out all GPIOs to external pads without having any special hardware or interfaces on-board. Examples are Espressif’s EPS32-DEVKIT or NodeMCU-ESP32S and a large number of clones.
For detailed information about the configuration of ESP32 boards, see section .
-
ADC_GPIOS
¶ Declaration of GPIOs that can be used as ADC channels.
1 2 3
{ GPIO0 , GPIO2 , GPIO4 , GPIO12, GPIO13, GPIO14, \ GPIO15, GPIO25, GPIO26, GPIO27, GPIO32, GPIO33, \ GPIO34, GPIO35, GPIO36, GPIO39 }
For generic boards, all ADC pins that have broken out are declared as ADC channels.
Note
As long as the GPIOs listed in ADC_GPIOS are not initialized as ADC channels with the
adc_init
function, they can be used for other purposes.
-
DAC_GPIOS
¶ Declaration of GPIOs that can be used as DAC channels.
1
{ GPIO25, GPIO26 }
For generic boards the 2 DAC lines GPIO25 and GPIO26 are declared as DAC channels.
Note
As long as the GPIOs listed in DAC_GPIOS are not initialized as DAC channels with the
dac_init
function, they can be used for other purposes.
-
I2C0_SPEED
¶ I2C bus speed of
i2c.h::I2C_DEV
1
I2C_SPEED_FAST
-
I2C0_SCL
¶ SCL signal of
i2c.h::I2C_DEV
[UEXT1].1
GPIO22
-
I2C0_SDA
¶ SDA signal of
i2c.h::I2C_DEV
[UEXT1].1
GPIO21
-
PWM0_GPIOS
¶ Declaration of the channels for device
pwm.h::PWM_DEV
, at maximum six channels.1
{ GPIO0, GPIO2, GPIO4, GPIO16, GPIO17 }
-
PWM1_GPIOS
¶ Declaration of the channels for device
pwm.h::PWM_DEV
, at maximum six channels.1
{ GPIO27, GPIO32, GPIO33 }
-
SPI0_DEV
¶ VSPI is used as
spi.h::SPI_DEV
1
VSPI
-
SPI0_SCK
¶ VSPI SCK.
1
GPIO18
-
SPI0_MISO
¶ VSPI MISO.
1
GPIO19
-
SPI0_MOSI
¶ VSPI MOSI.
1
GPIO23
-
SPI0_CS0
¶ VSPI CS0.
1
GPIO5
-
SPI1_DEV
¶ HSPI is used as
spi.h::SPI_DEV
1
HSPI
-
SPI1_SCK
¶ HSPI SCK.
1
GPIO14
-
SPI1_MISO
¶ HSPI MISO.
1
GPIO12
-
SPI1_MOSI
¶ HSPI MOSI.
1
GPIO13
-
SPI1_CS0
¶ HSPI CS0.
1
GPIO15
-
UART0_TXD
¶ direct I/O pin for
uart.h::UART_DEV
TxD, can’t be changed1
GPIO10
-
UART0_RXD
¶ direct I/O pin for
uart.h::UART_DEV
RxD, can’t be changed1
GPIO9
-
UART1_TXD
¶ direct I/O pin for
uart.h::UART_DEV
TxD1
GPIO10
-
UART1_RXD
¶ direct I/O pin for
uart.h::UART_DEV
RxD1
GPIO9