Loading...
Searching...
No Matches
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.
 

PWM channel configuration

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

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 48 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 63 of file periph_conf.h.

◆ SPI0_CS0

#define SPI0_CS0   GPIO5

LCD CS.

Definition at line 87 of file periph_conf.h.

◆ SPI0_CTRL

#define SPI0_CTRL   SPI2_HOST

FSPI is configured as SPI_DEV(0)

Definition at line 75 of file periph_conf.h.

◆ SPI0_MISO

#define SPI0_MISO   GPIO3

not used (dummy pin)

Definition at line 84 of file periph_conf.h.

◆ SPI0_MOSI

#define SPI0_MOSI   GPIO7

LCD SDA.

Definition at line 81 of file periph_conf.h.

◆ SPI0_SCK

#define SPI0_SCK   GPIO6

LCD SCLK.

Definition at line 78 of file periph_conf.h.

◆ UART0_RXD

#define UART0_RXD   GPIO44

direct I/O pin for UART_DEV(0) RxD, can't be changed

Definition at line 120 of file periph_conf.h.

◆ UART0_TXD

#define UART0_TXD   GPIO43

direct I/O pin for UART_DEV(0) TxD, can't be changed

Definition at line 119 of file periph_conf.h.