diff --git a/TrueStudio/W5x00_Multicast/Src/main.c b/TrueStudio/W5x00_Multicast/Src/main.c index 700a0d6..3d8ecd8 100644 --- a/TrueStudio/W5x00_Multicast/Src/main.c +++ b/TrueStudio/W5x00_Multicast/Src/main.c @@ -26,6 +26,7 @@ #include "stdio.h" #include "Application/Multicast/multicast.h" #include "wizchip_conf.h" +#include "wizchip_init.h" /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ @@ -49,13 +50,13 @@ SPI_HandleTypeDef hspi1; UART_HandleTypeDef huart2; /* USER CODE BEGIN PV */ -wiz_NetInfo defaultNetInfo = { .mac = {0x00,0x08,0xdc,0xff,0xee,0xdd}, - .ip = {192,168,0,130}, - .sn = {255,255,255,0}, - .gw = {192,168,0,254}, - //.dns = {168, 126, 63, 1}, - .dns = {8, 8, 8, 8}, - .dhcp = NETINFO_STATIC}; +wiz_NetInfo defaultNetInfo = {.mac = {0x00, 0x08, 0xdc, 0xff, 0xee, 0xdd}, + .ip = {192, 168, 0, 130}, + .sn = {255, 255, 255, 0}, + .gw = {192, 168, 0, 254}, + //.dns = {168, 126, 63, 1}, + .dns = {8, 8, 8, 8}, + .dhcp = NETINFO_STATIC}; uint8_t ethBuf0[2048]; /* USER CODE END PV */ @@ -69,11 +70,11 @@ void print_network_information(void); int _write(int fd, char *str, int len) { - for(int i=0; i