21 #include "periph_cpu.h"
29 #define BIT(X) (1<<(X))
59 #if defined(I2C0_SCL) && defined(I2C0_SDA) && defined(I2C0_SPEED)
66 #if defined(I2C1_SCL) && defined(I2C1_SDA) && defined(I2C1_SPEED)
83 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
104 #if defined(PWM0_GPIOS) || defined(DOXYGEN)
117 #define PWM_NUMOF (1)
147 #define SPI0_DEV SPI_DEV(0)
148 #define SPI0_CTRL HSPI
149 #define SPI0_MISO GPIO12
150 #define SPI0_MOSI GPIO13
151 #define SPI0_SCK GPIO14
154 #define SPI0_CS0 GPIO15
181 #define SPI_NUMOF ARRAY_SIZE(spi_config)
189 #if defined(MODULE_ESP_SW_TIMER)
192 #define TIMER_NUMOF (1U)
193 #define TIMER_CHANNEL_NUMOF (10U)
198 #define TIMER_NUMOF (1U)
199 #define TIMER_CHANNEL_NUMOF (1U)
228 #define UART0_TXD GPIO1
232 #define UART0_RXD GPIO3
236 #define UART1_TXD GPIO2
240 #define UART1_RXD GPIO_UNDEF
267 #define UART_NUMOF ARRAY_SIZE(uart_config)
#define I2C0_SPEED
I2C bus speed of I2C_DEV(0)
#define I2C0_SCL
SCL signal of I2C_DEV(0)
#define I2C0_SDA
SDA signal of I2C_DEV(0)
static const gpio_t pwm0_channels[]
Static array of GPIOs that can be used as channels of PWM_DEV(0)
static const uart_conf_t uart_config[]
Static array with configuration for declared UART devices.
#define SPI0_MOSI
HSPI / SPI_DEV(0) MOSI pin.
#define UART0_RXD
RxD pin of UART_DEV(0)
#define UART1_TXD
TxD pin of UART_DEV(1)
#define SPI0_CTRL
HSPI / SPI_DEV(0) controller.
#define SPI0_CS0
HSPI / SPI_DEV(0) CS default pin, only used when cs parameter in spi_acquire is GPIO_UNDEF.
#define SPI0_SCK
HSPI / SPI_DEV(0) SCK pin.
static const spi_conf_t spi_config[]
Static array with configuration for declared SPI devices.
#define UART1_RXD
RxD pin of UART_DEV(1)
static const i2c_conf_t i2c_config[]
Static array with configuration for declared I2C devices.
#define SPI0_MISO
HSPI / SPI_DEV(0) MISO pin.
#define UART0_TXD
TxD pin of UART_DEV(0)
Common macros and compiler attributes/pragmas configuration.
I2C configuration structure.
i2c_speed_t speed
Configured bus speed, actual speed may be lower but never higher.
SPI device configuration.
spi_ctrl_t ctrl
SPI controller used for the interface.
UART device configuration.
gpio_t txd
GPIO used as TxD pin.