File tree Expand file tree Collapse file tree 3 files changed +10
-985
lines changed Expand file tree Collapse file tree 3 files changed +10
-985
lines changed Original file line number Diff line number Diff line change @@ -460,19 +460,22 @@ LIBS += $(TOP)/drivers/cyw43/libcyw43.a
460460endif
461461
462462ifneq ($(MICROPY_PY_NETWORK_WIZNET5K ) ,0)
463- WIZNET5K_DIR =drivers/wiznet5k
464- INC += -I$(TOP ) /$(WIZNET5K_DIR )
463+ WIZNET5K_DIR =lib/wiznet5k
464+ GIT_SUBMODULES += lib/wiznet5k
465+ INC += -I$(TOP ) /$(WIZNET5K_DIR ) -I$(TOP ) /$(WIZNET5K_DIR ) /Ethernet
465466CFLAGS_MOD += -DMICROPY_PY_NETWORK_WIZNET5K=$(MICROPY_PY_NETWORK_WIZNET5K ) -D_WIZCHIP_=$(MICROPY_PY_NETWORK_WIZNET5K )
467+ CFLAGS_MOD += -DWIZCHIP_PREFIXED_EXPORTS=1
466468ifeq ($(MICROPY_PY_LWIP ) ,1)
467469# When using MACRAW mode (with lwIP), maximum buffer space must be used for the raw socket
468470CFLAGS_MOD += -DWIZCHIP_USE_MAX_BUFFER
469471endif
470- SRC_MOD += network_wiznet5k.c modnwwiznet5k .c
472+ SRC_MOD += extmod/ network_wiznet5k.c
471473SRC_MOD += $(addprefix $(WIZNET5K_DIR ) /,\
472- ethernet/w$(MICROPY_PY_NETWORK_WIZNET5K ) /w$(MICROPY_PY_NETWORK_WIZNET5K ) .c \
473- ethernet/wizchip_conf.c \
474- ethernet/socket.c \
475- internet/dns/dns.c \
474+ Ethernet/W$(MICROPY_PY_NETWORK_WIZNET5K ) /w$(MICROPY_PY_NETWORK_WIZNET5K ) .c \
475+ Ethernet/wizchip_conf.c \
476+ Ethernet/socket.c \
477+ Internet/DNS/dns.c \
478+ Internet/DHCP/dhcp.c \
476479 )
477480endif
478481
You can’t perform that action at this time.
0 commit comments