LilyGO T-ETH-Lite-ESP32S3

This commit is contained in:
iranl
2025-03-24 22:31:02 +01:00
parent b14a5d1659
commit 9cd236b4b9
5 changed files with 54 additions and 31 deletions

View File

@@ -2,40 +2,47 @@
#include <hal/spi_types.h>
#define ETH_PHY_TYPE_W5500 ETH_PHY_W5500
#define ETH_PHY_ADDR_W5500 1
#define ETH_PHY_IRQ_M5_W5500 -1
#define ETH_PHY_RST_M5_W5500 -1
#define ETH_PHY_CS_M5_W5500 19
#define ETH_PHY_SPI_SCK_M5_W5500 22
#define ETH_PHY_SPI_MISO_M5_W5500 23
#define ETH_PHY_SPI_MOSI_M5_W5500 33
#define ETH_PHY_TYPE_W5500 ETH_PHY_W5500
#define ETH_PHY_ADDR_W5500 1
#define ETH_PHY_IRQ_M5_W5500 -1
#define ETH_PHY_RST_M5_W5500 -1
#define ETH_PHY_CS_M5_W5500 19
#define ETH_PHY_SPI_SCK_M5_W5500 22
#define ETH_PHY_SPI_MISO_M5_W5500 23
#define ETH_PHY_SPI_MOSI_M5_W5500 33
#define ETH_PHY_CS_M5_W5500_S3 6
#define ETH_PHY_SPI_SCK_M5_W5500_S3 5
#define ETH_PHY_SPI_MISO_M5_W5500_S3 7
#define ETH_PHY_SPI_MOSI_M5_W5500_S3 8
#define ETH_PHY_CS_M5_W5500_S3 6
#define ETH_PHY_SPI_SCK_M5_W5500_S3 5
#define ETH_PHY_SPI_MISO_M5_W5500_S3 7
#define ETH_PHY_SPI_MOSI_M5_W5500_S3 8
#define ETH_PHY_IRQ_ELITE_W5500 14
#define ETH_PHY_RST_ELITE_W5500 -1
#define ETH_PHY_CS_ELITE_W5500 45
#define ETH_PHY_SPI_SCK_ELITE_W5500 48
#define ETH_PHY_SPI_MISO_ELITE_W5500 47
#define ETH_PHY_SPI_MOSI_ELITE_W5500 21
#define ETH_PHY_IRQ_ELITE_W5500 14
#define ETH_PHY_RST_ELITE_W5500 -1
#define ETH_PHY_CS_ELITE_W5500 45
#define ETH_PHY_SPI_SCK_ELITE_W5500 48
#define ETH_PHY_SPI_MISO_ELITE_W5500 47
#define ETH_PHY_SPI_MOSI_ELITE_W5500 21
#define ETH_PHY_IRQ_GENERIC_W5500 3
#define ETH_PHY_RST_GENERIC_W5500 4
#define ETH_PHY_CS_GENERIC_W5500 5
#define ETH_PHY_SPI_SCK_GENERIC_W5500 8
#define ETH_PHY_SPI_MISO_GENERIC_W5500 9
#define ETH_PHY_SPI_MOSI_GENERIC_W5500 10
#define ETH_PHY_IRQ_GENERIC_W5500 3
#define ETH_PHY_RST_GENERIC_W5500 4
#define ETH_PHY_CS_GENERIC_W5500 5
#define ETH_PHY_SPI_SCK_GENERIC_W5500 8
#define ETH_PHY_SPI_MISO_GENERIC_W5500 9
#define ETH_PHY_SPI_MOSI_GENERIC_W5500 10
#define ETH_ADDR_WAVESHARE_ESP32_S3_ETH 1
#define ETH_PHY_SPI_IRQ_WAVESHARE_ESP32_S3_ETH 10
#define ETH_PHY_SPI_RST_WAVESHARE_ESP32_S3_ETH 9
#define ETH_PHY_SPI_CS_WAVESHARE_ESP32_S3_ETH 14
#define ETH_PHY_SPI_SCK_WAVESHARE_ESP32_S3_ETH 13
#define ETH_PHY_SPI_MISO_WAVESHARE_ESP32_S3_ETH 12
#define ETH_PHY_SPI_MOSI_WAVESHARE_ESP32_S3_ETH 11
#define ETH_ADDR_WAVESHARE_ESP32_S3_ETH 1
#define ETH_PHY_SPI_IRQ_WAVESHARE_ESP32_S3_ETH 10
#define ETH_PHY_SPI_RST_WAVESHARE_ESP32_S3_ETH 9
#define ETH_PHY_SPI_CS_WAVESHARE_ESP32_S3_ETH 14
#define ETH_PHY_SPI_SCK_WAVESHARE_ESP32_S3_ETH 13
#define ETH_PHY_SPI_MISO_WAVESHARE_ESP32_S3_ETH 12
#define ETH_PHY_SPI_MOSI_WAVESHARE_ESP32_S3_ETH 11
#define ETH_PHY_CS_ETHLITES3_W5500 9
#define ETH_PHY_IRQ_ETHLITES3_W5500 13
#define ETH_PHY_RST_ETHLITES3_W5500 14
#define ETH_PHY_SPI_SCK_ETHLITES3_W5500 10
#define ETH_PHY_SPI_MISO_ETHLITES3_W5500 11
#define ETH_PHY_SPI_MOSI_ETHLITES3_W5500 12
#define ETH_ADDR 1