diff --git a/examples/zephyr/device-dashboard/prj.conf b/examples/zephyr/device-dashboard/prj.conf index eb00db9e..252ae39b 100644 --- a/examples/zephyr/device-dashboard/prj.conf +++ b/examples/zephyr/device-dashboard/prj.conf @@ -6,6 +6,7 @@ CONFIG_NET_UDP=y CONFIG_NET_DHCPV4=y CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS_POLL_MAX=32 +CONFIG_POSIX_API=y CONFIG_POSIX_MAX_FDS=32 CONFIG_NET_MAX_CONN=10 CONFIG_NET_MAX_CONTEXTS=10 diff --git a/examples/zephyr/http-client/prj.conf b/examples/zephyr/http-client/prj.conf index aa8f4b45..8dca400f 100644 --- a/examples/zephyr/http-client/prj.conf +++ b/examples/zephyr/http-client/prj.conf @@ -6,6 +6,7 @@ CONFIG_NET_UDP=y CONFIG_NET_DHCPV4=y CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS_POLL_MAX=32 +CONFIG_POSIX_API=y CONFIG_POSIX_MAX_FDS=32 CONFIG_NET_CONFIG_SETTINGS=y CONFIG_NET_CONNECTION_MANAGER=y diff --git a/examples/zephyr/http-server/prj.conf b/examples/zephyr/http-server/prj.conf index d4ab7caa..0dcdaf5a 100644 --- a/examples/zephyr/http-server/prj.conf +++ b/examples/zephyr/http-server/prj.conf @@ -6,6 +6,7 @@ CONFIG_NET_UDP=y CONFIG_NET_DHCPV4=y CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS_POLL_MAX=32 +CONFIG_POSIX_API=y CONFIG_POSIX_MAX_FDS=32 CONFIG_NET_CONFIG_SETTINGS=y CONFIG_NET_CONNECTION_MANAGER=y diff --git a/examples/zephyr/mqtt-aws-client/prj.conf b/examples/zephyr/mqtt-aws-client/prj.conf index d75a5aca..b5b364e8 100644 --- a/examples/zephyr/mqtt-aws-client/prj.conf +++ b/examples/zephyr/mqtt-aws-client/prj.conf @@ -6,6 +6,7 @@ CONFIG_NET_UDP=y CONFIG_NET_DHCPV4=y CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS_POLL_MAX=32 +CONFIG_POSIX_API=y CONFIG_POSIX_MAX_FDS=32 CONFIG_NET_CONFIG_SETTINGS=y CONFIG_NET_CONNECTION_MANAGER=y diff --git a/examples/zephyr/websocket-server/prj.conf b/examples/zephyr/websocket-server/prj.conf index d4ab7caa..0dcdaf5a 100644 --- a/examples/zephyr/websocket-server/prj.conf +++ b/examples/zephyr/websocket-server/prj.conf @@ -6,6 +6,7 @@ CONFIG_NET_UDP=y CONFIG_NET_DHCPV4=y CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS_POLL_MAX=32 +CONFIG_POSIX_API=y CONFIG_POSIX_MAX_FDS=32 CONFIG_NET_CONFIG_SETTINGS=y CONFIG_NET_CONNECTION_MANAGER=y diff --git a/mongoose.h b/mongoose.h index 302d7cbc..318180ca 100644 --- a/mongoose.h +++ b/mongoose.h @@ -522,8 +522,9 @@ typedef int socklen_t; #include #include -#include #include +#include +#include #include #include #include @@ -2919,6 +2920,14 @@ struct mg_tcpip_driver_tm4c_data { #endif + +#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_W5500) && MG_ENABLE_DRIVER_W5500 + +#undef MG_ENABLE_TCPIP_DRIVER_INIT +#define MG_ENABLE_TCPIP_DRIVER_INIT 0 + +#endif + #ifdef __cplusplus } #endif diff --git a/src/arch_zephyr.h b/src/arch_zephyr.h index dc020319..3473062b 100644 --- a/src/arch_zephyr.h +++ b/src/arch_zephyr.h @@ -6,8 +6,9 @@ #include #include -#include #include +#include +#include #include #include #include