board.h File Reference

Board definitions for the ESP32-S3-USB-OTG boards. More...

Detailed Description

Board definitions for the ESP32-S3-USB-OTG boards.

Any modifications required for specific applications can be overridden by application-specific board configuration.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

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.

Button pin definitions

#define BTN0_PIN   GPIO0
 BOOT/OK button GPIO pin definition. More...
 
#define BTN0_MODE   GPIO_IN_PU
 BOOT/OK button GPIO mode definition.
 
#define BTN0_INT_FLANK   GPIO_FALLING
 Default interrupt flank definition for the BOOT/OK button GPIO.
 
#define BUTTON0_PIN   BTN0_PIN
 Definition for compatibility with previous versions.
 
#define BTN1_PIN   GPIO14
 MENU button GPIO pin definition. More...
 
#define BTN1_MODE   GPIO_IN_PU
 MENU button GPIO mode definition.
 
#define BTN1_INT_FLANK   GPIO_FALLING
 Default interrupt flank definition for the MENU button GPIO.
 
#define BUTTON1_PIN   BTN1_PIN
 Definition for compatibility with previous versions.
 
#define BTN2_PIN   GPIO11
 DW- button GPIO pin definition. More...
 
#define BTN2_MODE   GPIO_IN_PU
 DW- button GPIO mode definition.
 
#define BTN2_INT_FLANK   GPIO_FALLING
 Default interrupt flank definition for the DW- button GPIO.
 
#define BUTTON2_PIN   BTN2_PIN
 Definition for compatibility with previous versions.
 
#define BTN3_PIN   GPIO10
 UP+ button GPIO pin definition. More...
 
#define BTN3_MODE   GPIO_IN_PU
 UP+ button GPIO mode definition.
 
#define BTN3_INT_FLANK   GPIO_FALLING
 Default interrupt flank definition for the UP+ button GPIO.
 
#define BUTTON3_PIN   BTN3_PIN
 Definition for compatibility with previous versions.
 

LED (on-board) configuration

ESP32-S3-USB-OTG boards have two LEDs on board.

#define LED0_PIN   GPIO15
 Green LED.
 
#define LED0_ACTIVE   (1)
 Green LED is high active.
 
#define LED1_PIN   GPIO16
 Yellow LED.
 
#define LED1_ACTIVE   (1)
 Yellow LED is high active.
 

SD-Card interface configuration

SD-Card interface uses SPI_DEV(1) on this board.

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(1)
 
#define SDCARD_SPI_PARAM_CS   SPI1_CS0
 
#define SDCARD_SPI_PARAM_CLK   SPI1_SCK
 
#define SDCARD_SPI_PARAM_MOSI   SPI1_MOSI
 
#define SDCARD_SPI_PARAM_MISO   SPI1_MISO
 
#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF
 

Macro Definition Documentation

◆ BTN0_PIN

#define BTN0_PIN   GPIO0

BOOT/OK button GPIO pin definition.

The BOOT button is connected to GPIO0 and is used as OK button during normal operation. The button is LOW active.

Definition at line 38 of file board.h.

◆ BTN1_PIN

#define BTN1_PIN   GPIO14

MENU button GPIO pin definition.

The MENU button is connected to GPIO14. It is LOW active.

Definition at line 62 of file board.h.

◆ BTN2_PIN

#define BTN2_PIN   GPIO11

DW- button GPIO pin definition.

The DW- button is connected to GPIO11. It is LOW active.

Definition at line 86 of file board.h.

◆ BTN3_PIN

#define BTN3_PIN   GPIO10

UP+ button GPIO pin definition.

The MENU button is connected to GPIO10. It is LOW active.

Definition at line 110 of file board.h.