#pragma once

#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_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_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