* 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>
|
|
|
|
#if defined (ARDUINO_ESP32_GATEWAY_E) || defined (ARDUINO_ESP32_GATEWAY_F)
|
|
#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 5
|
|
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
|
|
#endif
|
|
|
|
static const uint8_t LED_BUILTIN = 33;
|
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
|
|
|
|
static const uint8_t KEY_BUILTIN = 34;
|
|
|
|
static const uint8_t SCL = 16; // This is extention pin 11
|
|
static const uint8_t SDA = 32; // This is extention pin 13
|
|
|
|
static const uint8_t SS = 5;
|
|
static const uint8_t MOSI = 23;
|
|
static const uint8_t MISO = 19;
|
|
static const uint8_t SCK = 18;
|
|
|
|
static const uint8_t TX = 1;
|
|
static const uint8_t RX = 3;
|
|
|
|
static const uint8_t A0 = 36;
|
|
static const uint8_t A3 = 39;
|
|
static const uint8_t A4 = 32;
|
|
static const uint8_t A7 = 35;
|
|
|
|
static const uint8_t T9 = 32;
|
|
|
|
#if defined (ARDUINO_ESP32_GATEWAY_F)
|
|
#define BOARD_HAS_1BIT_SDMMC
|
|
#endif
|
|
|
|
#endif /* Pins_Arduino_h */
|