Loading...
Searching...
No Matches
periph_conf.h File Reference

Configuration of CPU peripherals for the Waveshare ESP32-S3 1.28-inch round display board (Touch version) More...

Detailed Description

Configuration of CPU peripherals for the Waveshare ESP32-S3 1.28-inch round display board (Touch version)

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net
Yahia Abdella yahia.nosp@m..abd.nosp@m.ella@.nosp@m.tuhh.nosp@m..de

Definition in file periph_conf.h.

#include <stdint.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 }
 Declaration of GPIOs that can be used as ADC channels.
 

SPI configuration

SPI_DEV(0) is used for the LCD display

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. Otherwise they are not allocated as SPI signals before and can be used for other purposes as long as the SPI interface is not used.
#define SPI0_CTRL   SPI2_HOST
 SPI2 (FSPI) is configured as SPI_DEV(0)
 
#define SPI0_SCK   GPIO10
 LCD SCLK.
 
#define SPI0_MOSI   GPIO11
 LCD SDA.
 
#define SPI0_MISO   GPIO12
 LCD SDO.
 
#define SPI0_CS0   GPIO9
 LCD CS.
 

I2C configuration

I2C_DEV(0) is used for the IMU and the touch controller.

Note
The GPIOs listed in the configuration are only initialized as I2C signals when module periph_i2c is used. Otherwise they are not allocated and can be used for other purposes.
#define I2C0_SPEED   I2C_SPEED_FAST
 I2C bus speed of I2C_DEV(0)
 
#define I2C0_SCL   GPIO7
 SCL signal of I2C_DEV(0)
 
#define I2C0_SDA   GPIO6
 SDA signal of I2C_DEV(0)
 

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 }

Declaration of GPIOs that can be used as ADC channels.

GPIO1 can be used for Battery voltage monitoring as ADC_LINE(0): V_BAT = 3.3 / (1 << 12) * 3 * ADC_Value

Definition at line 38 of file periph_conf.h.

◆ I2C0_SCL

#define I2C0_SCL   GPIO7

SCL signal of I2C_DEV(0)

Definition at line 87 of file periph_conf.h.

◆ I2C0_SDA

#define I2C0_SDA   GPIO6

SDA signal of I2C_DEV(0)

Definition at line 90 of file periph_conf.h.

◆ I2C0_SPEED

#define I2C0_SPEED   I2C_SPEED_FAST

I2C bus speed of I2C_DEV(0)

Definition at line 84 of file periph_conf.h.

◆ SPI0_CS0

#define SPI0_CS0   GPIO9

LCD CS.

Definition at line 68 of file periph_conf.h.

◆ SPI0_CTRL

#define SPI0_CTRL   SPI2_HOST

SPI2 (FSPI) is configured as SPI_DEV(0)

Definition at line 56 of file periph_conf.h.

◆ SPI0_MISO

#define SPI0_MISO   GPIO12

LCD SDO.

Definition at line 65 of file periph_conf.h.

◆ SPI0_MOSI

#define SPI0_MOSI   GPIO11

LCD SDA.

Definition at line 62 of file periph_conf.h.

◆ SPI0_SCK

#define SPI0_SCK   GPIO10

LCD SCLK.

Definition at line 59 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 105 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 104 of file periph_conf.h.