periph_conf.h File Reference

Peripheral configurations for ESP32-S3-USB-OTG boards. More...

Detailed Description

Peripheral configurations for ESP32-S3-USB-OTG boards.

Any modifications required for specific applications can be overridden by application-specific board configuration.

For detailed information about the peripheral configuration for ESP32-S3 boards, see section Common Peripherals.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file periph_conf.h.

#include <stdint.h>
#include "board.h"
#include "periph_cpu.h"
#include "periph_conf_common.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

ADC channel configuration

#define ADC_GPIOS   { GPIO1, GPIO2 }
 Declaration of GPIOs that can be used as ADC channels. More...
 

PWM channel configuration

#define PWM0_GPIOS   { LED0_PIN, LED1_PIN }
 Declaration of the channels for device PWM_DEV(0) More...
 

SD/MMC host controller configuration

#define SDMMC_CONFIG_NUMOF   1
 Number of configured SDMMC devices.
 
static const sdmmc_conf_t sdmmc_config []
 SDMMC devices. More...
 

SPI configuration

SPI_DEV(0) is used for LCD display SPI_DEV(1) is used for SPI SD Card (only configured if sdcard_spi is enabled)

#define SPI0_CTRL   SPI2_HOST
 FSPI is configured as SPI_DEV(0)
 
#define SPI0_SCK   GPIO6
 LCD SCLK.
 
#define SPI0_MOSI   GPIO7
 LCD SDA.
 
#define SPI0_MISO   GPIO3
 not used (dummy pin)
 
#define SPI0_CS0   GPIO5
 LCD CS.
 

UART configuration

ESP32-S3 provides 3 UART interfaces at maximum:

UART_DEV(0) uses fixed standard configuration.
UART_DEV(1) is not used.

#define UART0_TXD   GPIO43
 direct I/O pin for UART_DEV(0) TxD, can't be changed
 
#define UART0_RXD   GPIO44
 direct I/O pin for UART_DEV(0) RxD, can't be changed
 

Macro Definition Documentation

◆ ADC_GPIOS

#define ADC_GPIOS   { GPIO1, GPIO2 }

Declaration of GPIOs that can be used as ADC channels.

GPIO1 can be used for USB_DEV voltage monitoring as ADC_LINE(0). GPIO2 can be used for Battery voltage monitoring as ADC_LINE(1).

Definition at line 47 of file periph_conf.h.

◆ PWM0_GPIOS

#define PWM0_GPIOS   { LED0_PIN, LED1_PIN }

Declaration of the channels for device PWM_DEV(0)

LED pins are used as PWM channels.

Definition at line 62 of file periph_conf.h.

Variable Documentation

◆ sdmmc_config

const sdmmc_conf_t sdmmc_config[]
static
Initial value:
= {
{
.slot = SDMMC_SLOT_1,
.cd = GPIO_UNDEF,
.wp = GPIO_UNDEF,
.clk = GPIO36,
.cmd = GPIO35,
.dat0 = GPIO37,
.dat1 = GPIO38,
.dat2 = GPIO33,
.dat3 = GPIO34,
},
}
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
@ SDMMC_SLOT_1
SD/MMC host controller slot 1.
Definition: periph_cpu.h:686

SDMMC devices.

Definition at line 72 of file periph_conf.h.