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

Peripheral MCU configuration for Espressif ESP32-Ethernet-Kit. More...

Detailed Description

Peripheral MCU configuration for Espressif ESP32-Ethernet-Kit.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net
Erik Ekman eekma.nosp@m.n@go.nosp@m.ogle..nosp@m.com

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 and DAC channel configuration

#define ADC_GPIOS   { GPIO34, GPIO35, GPIO36, GPIO39 }
 Declaration of GPIOs that can be used as ADC channels.
 

Declaration of GPIOs that can be used as DAC channels

ESP32-Ethernet-Kit has no GPIOs left that might be used as DAC channels.

#define DAC_GPIOS   { }
 

I2C configuration

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   GPIO33
 SCL signal of I2C_DEV(0)
 
#define I2C0_SDA   GPIO32
 SDA signal of I2C_DEV(0)
 

PWM channel configuration

Note
As long as the according PWM device is not initialized with the pwm_init, the GPIOs declared for this device can be used for other purposes.
#define PWM0_GPIOS   { GPIO2, GPIO4 }
 

SPI configuration

SPI configuration depends on configured/connected components.

HSPI is only available when all JTAG pins are disabled.

#define SPI0_CTRL   HSPI
 HSPI is used as SPI_DEV(0)
 
#define SPI0_SCK   GPIO14
 HSPI SCK.
 
#define SPI0_MISO   GPIO12
 HSPI MISO.
 
#define SPI0_MOSI   GPIO13
 HSPI MOSI.
 
#define SPI0_CS0   GPIO15
 HSPI CS0.
 

UART configuration

ESP32 provides 3 UART interfaces at maximum:

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

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

Macro Definition Documentation

◆ ADC_GPIOS

#define ADC_GPIOS   { GPIO34, GPIO35, GPIO36, GPIO39 }

Declaration of GPIOs that can be used as ADC channels.

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.

Definition at line 41 of file periph_conf.h.

◆ DAC_GPIOS

#define DAC_GPIOS   { }

Definition at line 52 of file periph_conf.h.

◆ I2C0_SCL

#define I2C0_SCL   GPIO33

SCL signal of I2C_DEV(0)

Definition at line 69 of file periph_conf.h.

◆ I2C0_SDA

#define I2C0_SDA   GPIO32

SDA signal of I2C_DEV(0)

Definition at line 72 of file periph_conf.h.

◆ I2C0_SPEED

#define I2C0_SPEED   I2C_SPEED_FAST

I2C bus speed of I2C_DEV(0)

Definition at line 66 of file periph_conf.h.

◆ PWM0_GPIOS

#define PWM0_GPIOS   { GPIO2, GPIO4 }

Definition at line 89 of file periph_conf.h.

◆ SPI0_CS0

#define SPI0_CS0   GPIO15

HSPI CS0.

Definition at line 109 of file periph_conf.h.

◆ SPI0_CTRL

#define SPI0_CTRL   HSPI

HSPI is used as SPI_DEV(0)

Definition at line 105 of file periph_conf.h.

◆ SPI0_MISO

#define SPI0_MISO   GPIO12

HSPI MISO.

Definition at line 107 of file periph_conf.h.

◆ SPI0_MOSI

#define SPI0_MOSI   GPIO13

HSPI MOSI.

Definition at line 108 of file periph_conf.h.

◆ SPI0_SCK

#define SPI0_SCK   GPIO14

HSPI SCK.

Definition at line 106 of file periph_conf.h.

◆ UART0_RXD

#define UART0_RXD   GPIO3

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

Definition at line 124 of file periph_conf.h.

◆ UART0_TXD

#define UART0_TXD   GPIO1

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

Definition at line 123 of file periph_conf.h.