25 #include "periph_conf.h"
32 #include "sdkconfig.h"
34 #if defined(CPU_FAM_ESP32)
36 #elif defined(CPU_FAM_ESP32C3)
38 #elif defined(CPU_FAM_ESP32H2)
40 #elif defined(CPU_FAM_ESP32S2)
42 #elif defined(CPU_FAM_ESP32S3)
45 # error "ESP32x SoC family not supported"
58 #if defined(LED0_PIN) || DOXYGEN
59 #define LED0_MASK (BIT(LED0_PIN))
60 #define LED0_ON (gpio_write(LED0_PIN, LED0_ACTIVE))
61 #define LED0_OFF (gpio_write(LED0_PIN, !LED0_ACTIVE))
62 #define LED0_TOGGLE (gpio_toggle(LED0_PIN))
65 #if defined(LED1_PIN) || DOXYGEN
66 #define LED1_MASK (BIT(LED1_PIN))
67 #define LED1_ON (gpio_write(LED1_PIN, LED1_ACTIVE))
68 #define LED1_OFF (gpio_write(LED1_PIN, !LED1_ACTIVE))
69 #define LED1_TOGGLE (gpio_toggle(LED1_PIN))
72 #if defined(LED2_PIN) || DOXYGEN
73 #define LED2_MASK (BIT(LED2_PIN))
74 #define LED2_ON (gpio_write(LED2_PIN, LED2_ACTIVE))
75 #define LED2_OFF (gpio_write(LED2_PIN, !LED2_ACTIVE))
76 #define LED2_TOGGLE (gpio_toggle(LED2_PIN))
85 #ifndef STDIO_UART_BAUDRATE
86 #define STDIO_UART_BAUDRATE (115200)
90 #if MODULE_MTD || DOXYGEN
109 #ifndef SPI_FLASH_DRIVE_START
110 #define SPI_FLASH_DRIVE_START 0
113 #define MTD_0 mtd_dev_get(0)
115 #if MODULE_MTD_SDCARD_DEFAULT || DOXYGEN
116 #define MTD_1 mtd_dev_get(1)
117 #elif MODULE_MTD_SDMMC_DEFAULT
118 #define MTD_1 mtd_dev_get(1)
127 #ifndef CONFIG_SDCARD_GENERIC_MTD_OFFSET
128 #define CONFIG_SDCARD_GENERIC_MTD_OFFSET 1
137 #ifndef CONFIG_SDMMC_GENERIC_MTD_OFFSET
138 #define CONFIG_SDMMC_GENERIC_MTD_OFFSET 1
Compatibility wrapper for arduino_iomap.h.
Board definitions that are common for all ESP32 boards.
Board definitions that are common for all ESP32-C3 boards.
Board definitions that are common for all ESP32-H2 boards.
Board definitions that are common for all ESP32-S2 boards.
Board definitions that are common for all ESP32-S3 boards.
void print_board_config(void)
Print the board configuration in a human readable format.
Low-level GPIO peripheral driver interface definitions.