Loading...
Searching...
No Matches
board.h File Reference
#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
 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.
 

ESP32 Ethernet (EMAC) configuration

#define EMAC_PHY_IP101G   1
 IP101G used as PHY interface.
 
#define EMAC_PHY_ADDRESS   1
 PHY1 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   GPIO5
 PHY RESET_N connected to pin 5.
 

Macro Definition Documentation

◆ BTN0_INT_FLANK

#define BTN0_INT_FLANK   GPIO_FALLING

Default interrupt flank definition for the button GPIO.

Definition at line 52 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 46 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO0

Default button GPIO pin definition.

The button is only available when Ethernet is not used, as is shares its pin with the Phy clock.

Definition at line 39 of file board.h.

◆ BUTTON0_PIN

#define BUTTON0_PIN   BTN0_PIN

Definition for compatibility with previous versions.

Definition at line 58 of file board.h.

◆ EMAC_PHY_ADDRESS

#define EMAC_PHY_ADDRESS   1

PHY1 used as base address.

Definition at line 67 of file board.h.

◆ EMAC_PHY_CLOCK_MODE

#define EMAC_PHY_CLOCK_MODE   ETH_CLOCK_GPIO0_IN

external 50 MHz clock

Definition at line 70 of file board.h.

◆ EMAC_PHY_IP101G

#define EMAC_PHY_IP101G   1

IP101G used as PHY interface.

Definition at line 66 of file board.h.

◆ EMAC_PHY_POWER_PIN

#define EMAC_PHY_POWER_PIN   GPIO5

PHY RESET_N connected to pin 5.

Definition at line 71 of file board.h.

◆ EMAC_PHY_SMI_MDC_PIN

#define EMAC_PHY_SMI_MDC_PIN   23

SMI MDC pin.

Definition at line 68 of file board.h.

◆ EMAC_PHY_SMI_MDIO_PIN

#define EMAC_PHY_SMI_MDIO_PIN   18

SMI MDC pin.

Definition at line 69 of file board.h.