File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,6 +183,32 @@ SRC_C += \
183183 lib/tinyusb/src/portable/nordic/nrf5x/dcd_nrf5x.c
184184endif
185185
186+ ifeq ($(CIRCUITPY_NETWORK ) ,1)
187+ CFLAGS += -DMICROPY_PY_NETWORK=1
188+
189+ SRC_MOD += lib/netutils/netutils.c
190+
191+ ifneq ($(MICROPY_PY_WIZNET5K ) ,0)
192+ WIZNET5K_DIR =drivers/wiznet5k
193+ INC += -I$(TOP ) /$(WIZNET5K_DIR )
194+ CFLAGS_MOD += -DMICROPY_PY_WIZNET5K=$(MICROPY_PY_WIZNET5K ) -D_WIZCHIP_=$(MICROPY_PY_WIZNET5K )
195+ SRC_MOD += $(addprefix $(WIZNET5K_DIR ) /,\
196+ ethernet/w$(MICROPY_PY_WIZNET5K ) /w$(MICROPY_PY_WIZNET5K ) .c \
197+ ethernet/wizchip_conf.c \
198+ ethernet/socket.c \
199+ internet/dns/dns.c \
200+ internet/dhcp/dhcp.c \
201+ )
202+
203+ endif # MICROPY_PY_WIZNET5K
204+ endif # CIRCUITPY_NETWORK
205+
206+ ifeq ($(CIRCUITPY_NETWORK ) ,1)
207+ ifneq ($(MICROPY_PY_WIZNET5K ) ,0)
208+ SRC_SHARED_MODULE += wiznet/__init__.c wiznet/wiznet5k.c
209+ endif
210+ endif
211+
186212SRC_COMMON_HAL_EXPANDED = $(addprefix shared-bindings/, $(SRC_COMMON_HAL ) ) \
187213 $(addprefix shared-bindings/, $(SRC_BINDINGS_ENUMS ) ) \
188214 $(addprefix common-hal/, $(SRC_COMMON_HAL ) )
Original file line number Diff line number Diff line change @@ -8,3 +8,7 @@ MCU_CHIP = nrf52840
88QSPI_FLASH_FILESYSTEM = 1
99EXTERNAL_FLASH_DEVICE_COUNT = 1
1010EXTERNAL_FLASH_DEVICES = "MX25L3233F"
11+
12+ # Support for the Ethernet FeatherWing
13+ CIRCUITPY_NETWORK = 1
14+ MICROPY_PY_WIZNET5K = 5500
Original file line number Diff line number Diff line change @@ -8,3 +8,7 @@ MCU_CHIP = nrf52840
88QSPI_FLASH_FILESYSTEM = 1
99EXTERNAL_FLASH_DEVICE_COUNT = 1
1010EXTERNAL_FLASH_DEVICES = "MX25L3233F"
11+
12+ # Support for the Ethernet FeatherWing
13+ CIRCUITPY_NETWORK = 1
14+ MICROPY_PY_WIZNET5K = 5500
Original file line number Diff line number Diff line change @@ -8,3 +8,7 @@ MCU_CHIP = nrf52840
88QSPI_FLASH_FILESYSTEM = 1
99EXTERNAL_FLASH_DEVICE_COUNT = 1
1010EXTERNAL_FLASH_DEVICES = "MX25L3233F"
11+
12+ # Support for the Ethernet FeatherWing
13+ CIRCUITPY_NETWORK = 1
14+ MICROPY_PY_WIZNET5K = 5500
You can’t perform that action at this time.
0 commit comments