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

Board specific definitions for Olimex ESP32-EVB (ESP32-GATEWAY) More...

Detailed Description

Board specific definitions for Olimex ESP32-EVB (ESP32-GATEWAY)

This configuration is for the Olimex ESP32-EVB, but can also be used for the Olimex ESP32-GATEWAY. To use this board definition with Olimex ESP32-GATEWAY, add

USEMODULE += olimex_esp32_gateway

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.

Button pin definitions

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

SD-Card interface configuration

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

Note
On Olimex ESP32-EVB, the CD/CS pin is not connected and simply pulled-up. Therefore, SPI bus mode is not available and the card interface can be used only in 1-bit SD bus mode. That is, SPI SD-Card is not working. On Olimex ESP32-GATEWAY, the CD/CS pin is connected to GPIO13. The SPI SD-Card driver should work on this board.
#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)
 
#define SDCARD_SPI_PARAM_CS   GPIO13
 
#define SDCARD_SPI_PARAM_CLK   SPI0_SCK
 
#define SDCARD_SPI_PARAM_MOSI   SPI0_MOSI
 
#define SDCARD_SPI_PARAM_MISO   SPI0_MISO
 
#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF
 

ESP32 Ethernet (EMAC) configuration

#define EMAC_PHY_LAN8720   1
 LAN8710 used as PHY interface.
 
#define EMAC_PHY_ADDRESS   0
 PHY0 used as base address.
 
#define EMAC_PHY_SMI_MDC_PIN   23
 SMI MDC pin.
 
#define EMAC_PHY_SMI_MDIO_PIN   18
 SMI MDC pin.
 
#define EMAC_PHY_CLOCK_MODE   ETH_CLOCK_GPIO0_IN
 external 50 MHz clock
 
#define EMAC_PHY_POWER_PIN   GPIO_UNDEF
 power enable pin not used
 

Macro Definition Documentation

◆ BTN0_INT_FLANK

#define BTN0_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the button GPIO.

Definition at line 61 of file board.h.

◆ BTN0_MODE

#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 55 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO34

Default button GPIO pin definition.

Definition at line 47 of file board.h.

◆ BUTTON0_PIN

#define BUTTON0_PIN   BTN0_PIN

Definition for compatibility with previous versions.

Definition at line 67 of file board.h.

◆ EMAC_PHY_ADDRESS

#define EMAC_PHY_ADDRESS   0

PHY0 used as base address.

Definition at line 110 of file board.h.

◆ EMAC_PHY_CLOCK_MODE

#define EMAC_PHY_CLOCK_MODE   ETH_CLOCK_GPIO0_IN

external 50 MHz clock

Definition at line 113 of file board.h.

◆ EMAC_PHY_LAN8720

#define EMAC_PHY_LAN8720   1

LAN8710 used as PHY interface.

Definition at line 109 of file board.h.

◆ EMAC_PHY_POWER_PIN

#define EMAC_PHY_POWER_PIN   GPIO_UNDEF

power enable pin not used

Definition at line 114 of file board.h.

◆ EMAC_PHY_SMI_MDC_PIN

#define EMAC_PHY_SMI_MDC_PIN   23

SMI MDC pin.

Definition at line 111 of file board.h.

◆ EMAC_PHY_SMI_MDIO_PIN

#define EMAC_PHY_SMI_MDIO_PIN   18

SMI MDC pin.

Definition at line 112 of file board.h.

◆ SDCARD_SPI_PARAM_CLK

#define SDCARD_SPI_PARAM_CLK   SPI0_SCK

Definition at line 97 of file board.h.

◆ SDCARD_SPI_PARAM_CS

#define SDCARD_SPI_PARAM_CS   GPIO13

Definition at line 96 of file board.h.

◆ SDCARD_SPI_PARAM_MISO

#define SDCARD_SPI_PARAM_MISO   SPI0_MISO

Definition at line 99 of file board.h.

◆ SDCARD_SPI_PARAM_MOSI

#define SDCARD_SPI_PARAM_MOSI   SPI0_MOSI

Definition at line 98 of file board.h.

◆ SDCARD_SPI_PARAM_POWER

#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF

Definition at line 100 of file board.h.

◆ SDCARD_SPI_PARAM_SPI

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)

Definition at line 95 of file board.h.