Loading...
Searching...
No Matches
board.h File Reference

Board specific definitions for Espressif ESP-WROVER-KIT V3. More...

Detailed Description

Board specific definitions for Espressif ESP-WROVER-KIT V3.

The Espressif ESP-WROVER-KIT is a development board that uses the ESP32-WROVER module which includes a built-in 4 MByte SPI RAM. Most important features of the board are

  • Micro-SD card interface
  • OV7670 camera interface
  • 3.2" SPI LCD panel
  • RGB LED

Furthermore, many GPIOs are broken out for extension. The USB bridge based on FDI FT2232HL provides a JTAG interface for debugging through the USB interface.

When the camera module is connected, add

USEMODULE += esp32_wrover_kit_camera

to the makefile of the application to use the according default board configuration.

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

Note
Most definitions can be overridden by an 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.

LED (on-board) configuration

#define LED0_PIN   GPIO0
 LED0 is available when the camera is not plugged in.
 
#define LED0_ACTIVE   (1)
 LED0 is high active.
 
#define LED1_PIN   GPIO2
 LED1 is available when the SD-Card is not used.
 
#define LED1_ACTIVE   (1)
 LED1 is high active.
 
#define LED2_PIN   GPIO4
 LED2 is available when the camera is not plugged in.
 
#define LED2_ACTIVE   (1)
 LED2 is high active.
 
#define LED_RED_PIN   LED0_PIN
 LED0 is a red LED.
 
#define LED_GREEN_PIN   LED1_PIN
 LED1 is a green LED.
 
#define LED_BLUE_PIN   LED2_PIN
 LED2 is a blue LED.
 

SD-Card interface configuration

The SD-Card interface is connected to the HSPI interface.

Since HSPI becomes SPI_DEV(0) when the camera is connected, the SD card interface uses SPI_DEV(0) in this case. Otherwise, SPI_DEV(1) is used.

This configuration cannot be changed.

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)
 SPI_DEV(0) is used when camera is connected.
 
#define SDCARD_SPI_PARAM_CLK   SPI0_SCK
 HSPI SCK is used (fixed)
 
#define SDCARD_SPI_PARAM_MOSI   SPI0_MOSI
 HSPI MOSI is used (fixed)
 
#define SDCARD_SPI_PARAM_MISO   SPI0_MISO
 HSPI MISO is used (fixed)
 
#define SDCARD_SPI_PARAM_CS   SPI0_CS0
 HSPI CS1 is used (fixed)
 
#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF
 power control is not used (fixed)
 

LCD configuration

This configuration cannot be changed.

#define LCD_CS   GPIO22
 
#define LCD_RST   GPIO18
 
#define LCD_DC   GPIO21
 
#define LCD_BACKLIGHT   GPIO5
 
#define BACKLIGHT_ON   gpio_clear(LCD_BACKLIGHT)
 
#define BACKLIGHT_OFF   gpio_set(LCD_BACKLIGHT)
 
#define ILI9341_PARAM_SPI   SPI_DEV(1)
 
#define ILI9341_PARAM_SPI_CLK   SPI_CLK_10MHZ
 
#define ILI9341_PARAM_CS   LCD_CS
 
#define ILI9341_PARAM_DCX   LCD_DC
 
#define ILI9341_PARAM_RST   LCD_RST
 
#define ILi9341_PARAM_RGB   0
 
#define ILI9341_PARAM_INVERTED   0
 
#define ILI9341_PARAM_ROTATION   ILI9341_ROTATION_HORZ_FLIP
 

Macro Definition Documentation

◆ BACKLIGHT_OFF

#define BACKLIGHT_OFF   gpio_set(LCD_BACKLIGHT)

Definition at line 115 of file board.h.

◆ BACKLIGHT_ON

#define BACKLIGHT_ON   gpio_clear(LCD_BACKLIGHT)

Definition at line 114 of file board.h.

◆ ILI9341_PARAM_CS

#define ILI9341_PARAM_CS   LCD_CS

Definition at line 119 of file board.h.

◆ ILI9341_PARAM_DCX

#define ILI9341_PARAM_DCX   LCD_DC

Definition at line 120 of file board.h.

◆ ILI9341_PARAM_INVERTED

#define ILI9341_PARAM_INVERTED   0

Definition at line 123 of file board.h.

◆ ILi9341_PARAM_RGB

#define ILi9341_PARAM_RGB   0

Definition at line 122 of file board.h.

◆ ILI9341_PARAM_ROTATION

#define ILI9341_PARAM_ROTATION   ILI9341_ROTATION_HORZ_FLIP

Definition at line 124 of file board.h.

◆ ILI9341_PARAM_RST

#define ILI9341_PARAM_RST   LCD_RST

Definition at line 121 of file board.h.

◆ ILI9341_PARAM_SPI

#define ILI9341_PARAM_SPI   SPI_DEV(1)

Definition at line 117 of file board.h.

◆ ILI9341_PARAM_SPI_CLK

#define ILI9341_PARAM_SPI_CLK   SPI_CLK_10MHZ

Definition at line 118 of file board.h.

◆ LCD_BACKLIGHT

#define LCD_BACKLIGHT   GPIO5

Definition at line 112 of file board.h.

◆ LCD_CS

#define LCD_CS   GPIO22

Definition at line 109 of file board.h.

◆ LCD_DC

#define LCD_DC   GPIO21

Definition at line 111 of file board.h.

◆ LCD_RST

#define LCD_RST   GPIO18

Definition at line 110 of file board.h.

◆ LED0_ACTIVE

#define LED0_ACTIVE   (1)

LED0 is high active.

Definition at line 57 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO0

LED0 is available when the camera is not plugged in.

Definition at line 56 of file board.h.

◆ LED1_ACTIVE

#define LED1_ACTIVE   (1)

LED1 is high active.

Definition at line 62 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO2

LED1 is available when the SD-Card is not used.

Definition at line 61 of file board.h.

◆ LED2_ACTIVE

#define LED2_ACTIVE   (1)

LED2 is high active.

Definition at line 67 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO4

LED2 is available when the camera is not plugged in.

Definition at line 66 of file board.h.

◆ LED_BLUE_PIN

#define LED_BLUE_PIN   LED2_PIN

LED2 is a blue LED.

Definition at line 77 of file board.h.

◆ LED_GREEN_PIN

#define LED_GREEN_PIN   LED1_PIN

LED1 is a green LED.

Definition at line 74 of file board.h.

◆ LED_RED_PIN

#define LED_RED_PIN   LED0_PIN

LED0 is a red LED.

Definition at line 71 of file board.h.

◆ SDCARD_SPI_PARAM_CLK

#define SDCARD_SPI_PARAM_CLK   SPI0_SCK

HSPI SCK is used (fixed)

Definition at line 94 of file board.h.

◆ SDCARD_SPI_PARAM_CS

#define SDCARD_SPI_PARAM_CS   SPI0_CS0

HSPI CS1 is used (fixed)

Definition at line 97 of file board.h.

◆ SDCARD_SPI_PARAM_MISO

#define SDCARD_SPI_PARAM_MISO   SPI0_MISO

HSPI MISO is used (fixed)

Definition at line 96 of file board.h.

◆ SDCARD_SPI_PARAM_MOSI

#define SDCARD_SPI_PARAM_MOSI   SPI0_MOSI

HSPI MOSI is used (fixed)

Definition at line 95 of file board.h.

◆ SDCARD_SPI_PARAM_POWER

#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF

power control is not used (fixed)

Definition at line 98 of file board.h.

◆ SDCARD_SPI_PARAM_SPI

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)

SPI_DEV(0) is used when camera is connected.

Definition at line 93 of file board.h.