mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
Fix arduino-xiao build and add GA test
This commit is contained in:
1 parent
f498d69b7d
commit
8e46e05e1b
4 files changed
+27
-7
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user