* Added new Olimex boards Added variants for ESP32-H2-DevKit-LiPo and ESP32-SBC-FabGL boards * Changes on the ESP32-POE and POE-ISO Added menu for selection of the: 1) PSRAM enabled/disabled 2) Flash size 4/16 MB 3) Flash mode QIO/DIO 4) Partition Scheme additional options * Updated pins_arduino.h for ESP32 POE, POE-ISO and Gateway Due to the latest changes in the ethernet library/examples (https://github.com/espressif/arduino-esp32/pull/9242) full package of definitions of the ethernet macros is for each board that has non-default values. For POE and POE-ISO is added a preprocessor condition #if defined BOARD_HAS_PSRAM due to our specific hardware because GPIO 16 and 17 are in use when PSRAM is enabled. * Update boards.txt Removed the -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw fix flags as suggested by Jason2866 and me-no-dev * Update boards.txt Reverted changes for ESP32-POE and ESP32-POE-ISO * Update boards.txt Rearrange of the enable/disable entries of the PSRAM option for ESP32-SBC-FabGL to be enabled by default. --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
#ifndef Pins_Arduino_h
|
|
#define Pins_Arduino_h
|
|
|
|
#include <stdint.h>
|
|
|
|
#define ETH_PHY_TYPE ETH_PHY_LAN8720
|
|
#define ETH_PHY_ADDR 0
|
|
#define ETH_PHY_MDC 23
|
|
#define ETH_PHY_MDIO 18
|
|
#define ETH_PHY_POWER 12
|
|
#if defined BOARD_HAS_PSRAM // when PSRAM is enabled pins 16 and 17 are used for the PSRAM and alternative pins are used for respectively I2C SCL and Ethernet Clock GPIO
|
|
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_OUT
|
|
#else
|
|
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
|
|
#endif
|
|
|
|
|
|
static const uint8_t KEY_BUILTIN = 34;
|
|
|
|
static const uint8_t TX = 1;
|
|
static const uint8_t RX = 3;
|
|
|
|
#define TX1 4
|
|
#define RX1 36
|
|
|
|
#define TX2 33 // ext2 pin 5
|
|
#define RX2 35 // ext2 pin 3
|
|
|
|
static const uint8_t SDA = 13;
|
|
#if defined BOARD_HAS_PSRAM // when PSRAM is enabled pins 16 and 17 are used for the PSRAM and alternative pins are used for respectively I2C SCL and Ethernet Clock GPIO
|
|
static const uint8_t SCL = 33;
|
|
#else
|
|
static const uint8_t SCL = 16;
|
|
#endif
|
|
|
|
static const uint8_t SS = 5;
|
|
static const uint8_t MOSI = 2;
|
|
static const uint8_t MISO = 15;
|
|
static const uint8_t SCK = 14;
|
|
|
|
#define BOARD_HAS_1BIT_SDMMC
|
|
|
|
#endif /* Pins_Arduino_h */
|