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_ESP32C6)
40 #elif defined(CPU_FAM_ESP32H2)
42 #elif defined(CPU_FAM_ESP32S2)
44 #elif defined(CPU_FAM_ESP32S3)
47 # error "ESP32x SoC family not supported"
60 #if defined(LED0_PIN) || DOXYGEN
61 #define LED0_MASK (BIT(LED0_PIN))
62 #define LED0_ON (gpio_write(LED0_PIN, LED0_ACTIVE))
63 #define LED0_OFF (gpio_write(LED0_PIN, !LED0_ACTIVE))
64 #define LED0_TOGGLE (gpio_toggle(LED0_PIN))
67 #if defined(LED1_PIN) || DOXYGEN
68 #define LED1_MASK (BIT(LED1_PIN))
69 #define LED1_ON (gpio_write(LED1_PIN, LED1_ACTIVE))
70 #define LED1_OFF (gpio_write(LED1_PIN, !LED1_ACTIVE))
71 #define LED1_TOGGLE (gpio_toggle(LED1_PIN))
74 #if defined(LED2_PIN) || DOXYGEN
75 #define LED2_MASK (BIT(LED2_PIN))
76 #define LED2_ON (gpio_write(LED2_PIN, LED2_ACTIVE))
77 #define LED2_OFF (gpio_write(LED2_PIN, !LED2_ACTIVE))
78 #define LED2_TOGGLE (gpio_toggle(LED2_PIN))
87 #ifndef STDIO_UART_BAUDRATE
88 #define STDIO_UART_BAUDRATE (115200)
92 #if MODULE_MTD || DOXYGEN
111 #ifndef SPI_FLASH_DRIVE_START
112 #define SPI_FLASH_DRIVE_START 0
115 #define MTD_0 mtd_dev_get(0)
117 #if MODULE_MTD_SDCARD_DEFAULT || DOXYGEN
118 #define MTD_1 mtd_dev_get(1)
119 #elif MODULE_MTD_SDMMC_DEFAULT
120 #define MTD_1 mtd_dev_get(1)
129 #ifndef CONFIG_SDCARD_GENERIC_MTD_OFFSET
130 #define CONFIG_SDCARD_GENERIC_MTD_OFFSET 1
139 #ifndef CONFIG_SDMMC_GENERIC_MTD_OFFSET
140 #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-C6 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.