Merge pull request #1847 from cesanta/xiao

Fix arduino-xiao build and add GA test
This commit is contained in:
Sergey Lyubka authored and GitHub committed 2022-11-11 14:53:40 +00:00
commit 4056bd3c2d
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