This commit is contained in:
edisondeng
2026-05-09 19:53:47 +08:00
parent 6e2b13dbb3
commit ee67076ec7
29 changed files with 4793 additions and 101 deletions

View File

@ -4,6 +4,7 @@
#include "wizchip_conf.h"
#include "wiz_interface.h"
#include "loopback.h"
#include "main.h"
/*wizchip->STM32 Hardware Pin define*/
// wizchip_SCS ---> STM32_GPIOD7
@ -16,12 +17,16 @@
/* Define network information */
wiz_NetInfo default_net_info = {
.mac = {0x00, 0x08, 0xdc, 0x12, 0x22, 0x12},
.ip = {192, 168, 6, 212},
#if TEST_A701
.ip = {192, 168, 6, 7},
.gw = {192, 168, 6, 1},
#else
.ip = {192, 168, 0, 5},
.gw = {192, 168, 0, 1},
#endif
.sn = {255, 255, 255, 0},
.dns = {8, 8, 8, 8},
.dhcp = NETINFO_STATIC
//.dhcp = NETINFO_STATIC //static ip
};
uint16_t local_port = 8000;
uint8_t ethernet_buf[ETHERNET_BUF_MAX_SIZE] = {0};