File tree 3 files changed +10
-985
lines changed
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
460
460
endif
461
461
462
462
ifneq ($(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
465
466
CFLAGS_MOD += -DMICROPY_PY_NETWORK_WIZNET5K=$(MICROPY_PY_NETWORK_WIZNET5K ) -D_WIZCHIP_=$(MICROPY_PY_NETWORK_WIZNET5K )
467
+ CFLAGS_MOD += -DWIZCHIP_PREFIXED_EXPORTS=1
466
468
ifeq ($(MICROPY_PY_LWIP ) ,1)
467
469
# When using MACRAW mode (with lwIP), maximum buffer space must be used for the raw socket
468
470
CFLAGS_MOD += -DWIZCHIP_USE_MAX_BUFFER
469
471
endif
470
- SRC_MOD += network_wiznet5k.c modnwwiznet5k .c
472
+ SRC_MOD += extmod/ network_wiznet5k.c
471
473
SRC_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 \
476
479
)
477
480
endif
478
481
You can’t perform that action at this time.
0 commit comments