Loading...
Searching...
No Matches

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

Detailed Description

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

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net
Christopher Büchse chris.nosp@m.toph.nosp@m.er.bu.nosp@m.echs.nosp@m.e@tuh.nosp@m.h.de

Definition in file periph_conf.h.

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

Go to the source code of this file.

Macros

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

ADC channel configuration

#define ADC_GPIOS   { GPIO4, GPIO12 }
 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   GPIO_UNDEF
 LCD SDO (not connected)
 
#define SPI0_CS0   GPIO9
 LCD CS.
 

I2C configuration

I2C_DEV(0) is used for the touch controller.


I2C_DEV(1) is connected to the external I2C header. It has a level shifter and is therefore 5V tolerant.

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)
 
#define I2C1_SPEED   I2C_SPEED_FAST
 I2C bus speed of I2C_DEV(1)
 
#define I2C1_SCL   GPIO39
 SCL signal of I2C_DEV(1)
 
#define I2C1_SDA   GPIO38
 SDA signal of I2C_DEV(1)
 

Macro Definition Documentation

◆ ADC_GPIOS

#define ADC_GPIOS   { GPIO4, GPIO12 }

Declaration of GPIOs that can be used as ADC channels.

GPIO4 and GPIO12 are connected to the external flat flex header.

Definition at line 39 of file periph_conf.h.

◆ I2C0_SCL

#define I2C0_SCL   GPIO7

SCL signal of I2C_DEV(0)

Definition at line 90 of file periph_conf.h.

◆ I2C0_SDA

#define I2C0_SDA   GPIO6

SDA signal of I2C_DEV(0)

Definition at line 93 of file periph_conf.h.

◆ I2C0_SPEED

#define I2C0_SPEED   I2C_SPEED_FAST

I2C bus speed of I2C_DEV(0)

Definition at line 87 of file periph_conf.h.

◆ I2C1_SCL

#define I2C1_SCL   GPIO39

SCL signal of I2C_DEV(1)

Definition at line 99 of file periph_conf.h.

◆ I2C1_SDA

#define I2C1_SDA   GPIO38

SDA signal of I2C_DEV(1)

Definition at line 102 of file periph_conf.h.

◆ I2C1_SPEED

#define I2C1_SPEED   I2C_SPEED_FAST

I2C bus speed of I2C_DEV(1)

Definition at line 96 of file periph_conf.h.

◆ PWM0_GPIOS

#define PWM0_GPIOS   { LED0_PIN }

Declaration of the channels for device PWM_DEV(0)

LED pins are used as PWM channels.

Definition at line 112 of file periph_conf.h.

◆ SPI0_CS0

#define SPI0_CS0   GPIO9

LCD CS.

Definition at line 69 of file periph_conf.h.

◆ SPI0_CTRL

#define SPI0_CTRL   SPI2_HOST

SPI2 (FSPI) is configured as SPI_DEV(0)

Definition at line 57 of file periph_conf.h.

◆ SPI0_MISO

#define SPI0_MISO   GPIO_UNDEF

LCD SDO (not connected)

Definition at line 66 of file periph_conf.h.

◆ SPI0_MOSI

#define SPI0_MOSI   GPIO11

LCD SDA.

Definition at line 63 of file periph_conf.h.

◆ SPI0_SCK

#define SPI0_SCK   GPIO10

LCD SCLK.

Definition at line 60 of file periph_conf.h.