esp32/include/board_common.h

Board definitions that are common for all ESP32 boards.

This file contains board configurations that are valid for all ESP32.

For detailed information about the configuration of ESP32 boards, see section .

ESP32_XTAL_FREQ
1
(40)
LED0_MASK
1
(BIT(LED0_PIN))
LED0_ON
1
(gpio_write(LED0_PIN,  LED0_ACTIVE))
LED0_OFF
1
(gpio_write(LED0_PIN, !LED0_ACTIVE))
LED0_TOGGLE
1
(gpio_toggle(LED0_PIN))
LED1_MASK
1
(BIT(LED1_PIN))
LED1_ON
1
(gpio_write(LED1_PIN,  LED1_ACTIVE))
LED1_OFF
1
(gpio_write(LED1_PIN, !LED1_ACTIVE))
LED1_TOGGLE
1
(gpio_toggle(LED1_PIN))
LED2_MASK
1
(BIT(LED2_PIN))
LED2_ON
1
(gpio_write(LED2_PIN,  LED2_ACTIVE))
LED2_OFF
1
(gpio_write(LED2_PIN, !LED2_ACTIVE))
LED2_TOGGLE
1
(gpio_toggle(LED2_PIN))
STDIO_UART_BAUDRATE

< Default baudrate of UART for stdio

1
(115200)
SPI_FLASH_DRIVE_START

MTD drive start address in SPI flash memory.

1
0

Defines the start adress of the MTD system device in the SPI flash memory. It can be overridden by

If the MTD start address is not defined or is 0, the first possible multiple of 0x100000 (1 MByte) is used in free SPI flash memory, which was determined from the partition table.

MTD_0

Default MTD drive definition.

1
mtd0
mtd_dev_t * mtd0

Pointer to the default MTD drive structure.

SPIFFS_ALIGNED_OBJECT_INDEX_TABLES
1
1
SPIFFS_READ_ONLY
1
0
SPIFFS_SINGLETON
1
0
SPIFFS_HAL_CALLBACK_EXTRA
1
1
SPIFFS_CACHE
1
1
void board_init(void)

Initialize board specific hardware.

Since all features of ESP32 boards are provided by the SOC, almost all initializations are done during the CPU initialization that is called from boot loader.

void print_board_config(void)

Print the board configuration in a human readable format.