picow: enable dhcpserver for apmode.

This commit is contained in:
paul-1 2022-10-29 10:22:58 -04:00 committed by Bill Sideris
parent 25c0a0aca9
commit 8fdb2df0bf
No known key found for this signature in database
GPG Key ID: 1BEF1BCEBA58EA33
3 changed files with 6 additions and 2 deletions

View File

@ -65,7 +65,7 @@ INC_CYW43 := \
-isystem sdk/src/rp2_common/pico_cyw43_arch/include/ \ -isystem sdk/src/rp2_common/pico_cyw43_arch/include/ \
-isystem sdk/src/rp2_common/pico_lwip/include/ \ -isystem sdk/src/rp2_common/pico_lwip/include/ \
CFLAGS_CYW43 := -DCYW43_LWIP=1 -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_USE_SPI -DIGNORE_GPIO25 -DIGNORE_GPIO23 -DIGNORE_GPIO24 -DCYW43_LOGIC_DEBUG=0 CFLAGS_CYW43 := -DCYW43_LWIP=1 -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_USE_SPI -DIGNORE_GPIO25 -DIGNORE_GPIO23 -DIGNORE_GPIO24 -DCYW43_LOGIC_DEBUG=0 -DCYW43_NETUTILS=1
SRC_SDK_CYW43 := \ SRC_SDK_CYW43 := \
src/common/pico_sync/sem.c \ src/common/pico_sync/sem.c \
src/rp2_common/cyw43_driver/cyw43_bus_pio_spi.c \ src/rp2_common/cyw43_driver/cyw43_bus_pio_spi.c \
@ -76,6 +76,8 @@ SRC_SDK_CYW43 := \
SRC_LWIP := \ SRC_LWIP := \
shared/netutils/netutils.c \ shared/netutils/netutils.c \
shared/netutils/trace.c \
shared/netutils/dhcpserver.c \
$(wildcard lib/lwip/src/core/*.c) \ $(wildcard lib/lwip/src/core/*.c) \
$(wildcard lib/lwip/src/core/ipv4/*.c) \ $(wildcard lib/lwip/src/core/ipv4/*.c) \
lib/lwip/src/netif/ethernet.c \ lib/lwip/src/netif/ethernet.c \

View File

@ -33,7 +33,7 @@
#include "py/mperrno.h" #include "py/mperrno.h"
#include "py/mphal.h" #include "py/mphal.h"
#if MICROPY_PY_LWIP #if LWIP_UDP
#include "shared/netutils/dhcpserver.h" #include "shared/netutils/dhcpserver.h"
#include "lwip/udp.h" #include "lwip/udp.h"

View File

@ -33,6 +33,8 @@
#define NETUTILS_TRACE_PAYLOAD (0x0002) #define NETUTILS_TRACE_PAYLOAD (0x0002)
#define NETUTILS_TRACE_NEWLINE (0x0004) #define NETUTILS_TRACE_NEWLINE (0x0004)
#include "py/runtime.h"
typedef enum _netutils_endian_t { typedef enum _netutils_endian_t {
NETUTILS_LITTLE, NETUTILS_LITTLE,
NETUTILS_BIG, NETUTILS_BIG,