#ifndef _W5500_PORT_HAL_
|
#define _W5500_PORT_HAL_
|
|
#include "../src/ethernet/wizchip_conf.h"
|
#include <string.h>
|
#include <stdio.h>
|
|
#define W5500_SPI_HANDLE SPI1
|
#define W5500_CS_PORT GPIOA
|
#define W5500_CS_PIN GPIO_PIN_15
|
#define W5500_RST_PORT GPIOB
|
#define W5500_RST_PIN GPIO_PIN_6
|
|
#define DEFAULT_MAC_ADDR {0x00,0xf1,0xbe,0xc4,0xa1,0x05}
|
#define DEFAULT_IP_ADDR {192,168,1,135}
|
#define DEFAULT_SUB_MASK {255,255,255,0}
|
#define DEFAULT_GW_ADDR {192,168,1,2}
|
#define DEFAULT_DNS_ADDR {8,8,8,8}
|
|
/* 100M*/
|
#define USE_AUTONEGO
|
|
//#define SOFT_SPI
|
|
/* DHCP */
|
//#define USE_DHCP
|
|
void w5500_network_info_show(void);
|
int w5500_init(void);
|
|
void EnterCS(void);
|
void ExitCS(void);
|
void SPI1_CS_Select(void);
|
void SPI1_CS_Deselect(void);
|
void SPI_Write_Byte(uint8_t byte);
|
uint8_t SPI_Read_Byte(void);
|
|
#endif
|