Fix arduino-xiao build and add GA test

This commit is contained in:
cpq committed 2022-11-11 10:04:47 +00:00
1 parent f498d69b7d
commit 8e46e05e1b
4 files changed
+27 -7

No files matched your search

+2
View File
@@ -4,9 +4,11 @@
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <time.h>
#define MG_ARCH MG_ARCH_CUSTOM
#define MG_ENABLE_SOCKET 0
#define MG_ENABLE_MIP 1
#define mkdir(a, b) (-1)
//#define MG_ENABLE_LOG 0
+4 -6
View File
@@ -22,12 +22,10 @@ void setup() {
delay(3000);
MG_INFO(("Starting TCP/IP stack..."));
struct mip_if mif = {
.mac = {0, 0, 1, 2, 3, 5},
.use_dhcp = true,
.driver = &mip_driver_w5500,
.driver_data = &spi,
};
struct mip_if mif = {.mac = {0, 0, 1, 2, 3, 5}};
mif.use_dhcp = true;
mif.driver = &mip_driver_w5500;
mif.driver_data = &spi;
mip_init(&mgr, &mif);
// Start a 5 sec timer, print status message periodically