Loading...
Searching...
No Matches
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.
 
#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.
 
#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.
 
#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.
 
#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_INT_FLANK

#define BTN0_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the BOOT/OK button GPIO.

Definition at line 49 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

BOOT/OK button GPIO mode definition.

Definition at line 43 of file board.h.

◆ 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_INT_FLANK

#define BTN1_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the MENU button GPIO.

Definition at line 73 of file board.h.

◆ BTN1_MODE

#define BTN1_MODE   GPIO_IN_PU

MENU button GPIO mode definition.

Definition at line 67 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_INT_FLANK

#define BTN2_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the DW- button GPIO.

Definition at line 97 of file board.h.

◆ BTN2_MODE

#define BTN2_MODE   GPIO_IN_PU

DW- button GPIO mode definition.

Definition at line 91 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_INT_FLANK

#define BTN3_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the UP+ button GPIO.

Definition at line 121 of file board.h.

◆ BTN3_MODE

#define BTN3_MODE   GPIO_IN_PU

UP+ button GPIO mode definition.

Definition at line 115 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.

◆ BUTTON0_PIN

#define BUTTON0_PIN   BTN0_PIN

Definition for compatibility with previous versions.

Definition at line 55 of file board.h.

◆ BUTTON1_PIN

#define BUTTON1_PIN   BTN1_PIN

Definition for compatibility with previous versions.

Definition at line 79 of file board.h.

◆ BUTTON2_PIN

#define BUTTON2_PIN   BTN2_PIN

Definition for compatibility with previous versions.

Definition at line 103 of file board.h.

◆ BUTTON3_PIN

#define BUTTON3_PIN   BTN3_PIN

Definition for compatibility with previous versions.

Definition at line 127 of file board.h.

◆ LED0_ACTIVE

#define LED0_ACTIVE   (1)

Green LED is high active.

Definition at line 138 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO15

Green LED.

Definition at line 137 of file board.h.

◆ LED1_ACTIVE

#define LED1_ACTIVE   (1)

Yellow LED is high active.

Definition at line 141 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO16

Yellow LED.

Definition at line 140 of file board.h.

◆ SDCARD_SPI_PARAM_CLK

#define SDCARD_SPI_PARAM_CLK   SPI1_SCK

Definition at line 180 of file board.h.

◆ SDCARD_SPI_PARAM_CS

#define SDCARD_SPI_PARAM_CS   SPI1_CS0

Definition at line 179 of file board.h.

◆ SDCARD_SPI_PARAM_MISO

#define SDCARD_SPI_PARAM_MISO   SPI1_MISO

Definition at line 182 of file board.h.

◆ SDCARD_SPI_PARAM_MOSI

#define SDCARD_SPI_PARAM_MOSI   SPI1_MOSI

Definition at line 181 of file board.h.

◆ SDCARD_SPI_PARAM_POWER

#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF

Definition at line 183 of file board.h.

◆ SDCARD_SPI_PARAM_SPI

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(1)

Definition at line 178 of file board.h.