#ifndef _W5500_PORT_HAL_ #define _W5500_PORT_HAL_ #include "wizchip_conf.h" #include "string.h" #include "stdio.h" #include "main.h" #define W5500_SPI_HANDLE hspi1 #define W5500_CS_PORT w5500cs_GPIO_Port #define W5500_CS_PIN w5500cs_Pin #define W5500_RST_PORT w5500rst_GPIO_Port #define W5500_RST_PIN w5500rst_Pin #define DEFAULT_MAC_ADDR {0x00,0xf1,0xbe,0xc4,0xa1,0x05} #define DEFAULT_IP_ADDR {192, 168, 1, 13} #define DEFAULT_GW_ADDR {192, 168, 1, 1} #define DEFAULT_SUB_MASK {255,255,255,0} #define DEFAULT_DNS_ADDR {8,8,8,8} #define USE_AUTONEGO //#define USE_DHCP extern SPI_HandleTypeDef W5500_SPI_HANDLE; void w5500_network_info_show(void); int w5500_init(uint8_t *local_ip); #endif