Go to the documentation of this file.
23 #ifndef PERIPH_CONF_COMMON_H
24 #define PERIPH_CONF_COMMON_H
27 #include "periph_cpu.h"
63 #define ADC_NUMOF ARRAY_SIZE(adc_channels)
95 #define DAC_NUMOF ARRAY_SIZE(dac_channels)
107 #if defined(I2C0_SCL) && defined(I2C0_SDA) && defined(I2C0_SPEED)
114 #if defined(I2C1_SCL) && defined(I2C1_SDA) && defined(I2C1_SPEED)
131 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
150 static const gpio_t pwm1_channels[] =
PWM1_GPIOS;
161 #if defined(PWM0_GPIOS) && defined(PWM1_GPIOS)
162 #define PWM_NUMOF (2)
163 #elif defined(PWM0_GPIOS) || defined(PWM1_GPIOS)
164 #define PWM_NUMOF (1)
166 #define PWM_NUMOF (0)
207 #define SPI_NUMOF ARRAY_SIZE(spi_config)
216 #define UART0_TXD (GPIO1)
219 #define UART0_RXD (GPIO3)
230 #if defined(UART1_TXD) && defined(UART1_RXD)
236 #if defined(UART2_TXD) && defined(UART2_RXD)
252 #define UART_NUMOF ARRAY_SIZE(uart_config)
#define SPI1_MISO
HSPI MISO.
#define SPI0_SCK
HSPI / SPI_DEV(0) SCK pin.
#define SPI0_CS0
HSPI / SPI_DEV(0) CS default pin, only used when cs parameter in spi_acquire is GPIO_UNDEF.
#define PWM1_GPIOS
PWM_DEV(1) is not used.
Common macros and compiler attributes/pragmas configuration.
static const gpio_t dac_channels[]
Static array with declared DAC channels.
gpio_t txd
GPIO used as TxD pin.
#define I2C0_SPEED
I2C bus speed of I2C_DEV(0)
#define UART0_RXD
RxD of UART_DEV(0) used on all ESP32 boards.
#define I2C0_SCL
SCL signal of I2C_DEV(0) [UEXT1].
#define SPI1_CTRL
HSPI is used as SPI_DEV(1)
#define SPI1_CS0
HSPI CS0.
#define SPI0_MOSI
HSPI / SPI_DEV(0) MOSI pin.
static const uart_conf_t uart_config[]
Static array with configuration for declared UART devices.
spi_ctrl_t ctrl
SPI controller used for the interface.
#define SPI1_MOSI
HSPI MOSI.
#define PWM0_GPIOS
PWM channels for device PWM_DEV(0)
UART device configuration.
#define UART0_TXD
TxD of UART_DEV(0) used on all ESP32 boards.
static const gpio_t adc_channels[]
Static array with declared ADC channels.
#define SPI0_MISO
HSPI / SPI_DEV(0) MISO pin.
#define ADC_GPIOS
Declaration of GPIOs that can be used as ADC channels.
#define SPI0_CTRL
HSPI / SPI_DEV(0) controller.
static const gpio_t pwm0_channels[]
Static array of GPIOs that can be used as channels of PWM_DEV(0)
static const spi_conf_t spi_config[]
Static array with configuration for declared SPI devices.
#define I2C0_SDA
SDA signal of I2C_DEV(0) [UEXT1].
#define DAC_GPIOS
Declaration of GPIOs that can be used as DAC channels.
static const i2c_conf_t i2c_config[]
Static array with configuration for declared I2C devices.
i2c_speed_t speed
baudrate used for the bus
#define SPI1_SCK
HSPI SCK.
I2C configuration options.
SPI configuration structure type.