Board specific definitions for generic ESP32-WROOM-32 boards. More...

Detailed Description

Board specific definitions for generic ESP32-WROOM-32 boards.

This configuration can be used for a large set of ESP32 boards that use an ESP32-WROOM-32 module and simply break out all GPIOs to external pads without having any special hardware or interfaces on-board. Examples are Espressif's EPS32-DEVKIT or NodeMCU-ESP32S and a large number of clones.

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

Most definitions can be overridden by an application-specific board configuration.
Gunar Schorcht

Definition in file board.h.

#include <stdint.h>
#include "board_common.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


static void board_init (void)
 Initialize the board specific hardware.

Button pin definitions

#define BTN0_PIN   GPIO0
 Default button GPIO pin definition. More...
#define BTN0_MODE   GPIO_IN
 Default button GPIO mode definition. More...
 Default interrupt flank definition for the button GPIO.
#define BUTTON0_PIN   BTN0_PIN
 Definition for compatibility with previous versions.

Macro Definition Documentation


#define BTN0_MODE   GPIO_IN

Default button GPIO mode definition.

Since the GPIO of the button is pulled up with an external resistor, the mode for the GPIO pin has to be GPIO_IN.

Definition at line 57 of file board.h.


#define BTN0_PIN   GPIO0

Default button GPIO pin definition.

Generic ESP32 boards have a BOOT button connected to GPIO0, which can be used as button during normal operation. Since the GPIO0 pin is pulled up, the button signal is inverted, i.e., pressing the button will give a low signal.

Definition at line 49 of file board.h.