boards/esp32-olimex-evb/include/periph_conf.h

Peripheral MCU configuration for Olimex ESP32-EVB (ESP32-GATEWAY)

This configuration is for the Olimex ESP32-EVB, but can also be used for the Olimex ESP32-GATEWAY. To use this board definition with Olimex ESP32-GATEWAY, add

1
USEMODULE += olimex_esp32_gateway
to the makefile of the application to use the according default board configuration.

For detailed information about the configuration of ESP32 boards, see section .

Note

Most definitions can be overridden by an .

ADC_GPIOS

Declaration of GPIOs that can be used as ADC channels.

1
{ }

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

Olimex ESP32-EVB has no GPIOs left that might be used as DAC channels.

1
{ }
CAN_TX

CAN TX tranceiver signal.

1
GPIO5
CAN_RX

CAN RX tranceiver signal.

1
GPIO35
I2C0_SPEED

I2C bus speed of i2c.h::I2C_DEV

1
I2C_SPEED_FAST
I2C0_SCL

SCL signal of i2c.h::I2C_DEV

1
GPIO16
I2C0_SDA

SDA signal of i2c.h::I2C_DEV

1
GPIO13
PWM0_GPIOS

In DOUT and DIO flash mode, GPIO9 and GIO10 are available and can be used as PWM channels with PWM_DEV(0).

1
{ GPIO9, GPIO10 }
PWM1_GPIOS

pwm.h::PWM_DEV is not used.

1
{ }
SPI0_DEV

HSPI is used as spi.h::SPI_DEV

1
HSPI

It is available at the [UEXT] connector on Olimex ESP32-EVB.

Although the SD card interface of the Olimex ESP32-EVB is also available at the SPI_DEV(0) interface, it does not have a CS signal. Therefore, it cannot be used in SPI mode with the sdcard_spi module. Olimex ESP32-GATEWAY uses the integrated SD card interface with another GPIO for the CS signal.

Note

The GPIOs listed in the configuration are first initialized as SPI signals when the corresponding SPI interface is used for the first time by either calling the spi_init_cs function or the spi_acquire function. That is, they are not allocated as SPI signals before and can be used for other purposes as long as the SPI interface is not used.

SPI0_SCK

SCK [UEXT] / SD card interface].

1
GPIO14
SPI0_MISO

MISO [UEXT] / SD card interface].

1
GPIO2
SPI0_MOSI

MOSI [UEXT] / SD Card interface].

1
GPIO15
SPI0_CS0

CS0 [UEXT].

1
GPIO17
UART0_TXD

direct I/O pin for uart.h::UART_DEV, can’t be changed

1
GPIO1
UART0_RXD

direct I/O pin for uart.h::UART_DEV, can’t be changed

1
GPIO3
UART1_TXD

uart.h::UART_DEV TxD.

1
GPIO4
UART1_RXD

uart.h::UART_DEV RxD.

1
GPIO36