File tree Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,32 @@ SRC_C += \
183
183
lib/tinyusb/src/portable/nordic/nrf5x/dcd_nrf5x.c
184
184
endif
185
185
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
+
186
212
SRC_COMMON_HAL_EXPANDED = $(addprefix shared-bindings/, $(SRC_COMMON_HAL ) ) \
187
213
$(addprefix shared-bindings/, $(SRC_BINDINGS_ENUMS ) ) \
188
214
$(addprefix common-hal/, $(SRC_COMMON_HAL ) )
Original file line number Diff line number Diff line change @@ -8,3 +8,7 @@ MCU_CHIP = nrf52840
8
8
QSPI_FLASH_FILESYSTEM = 1
9
9
EXTERNAL_FLASH_DEVICE_COUNT = 1
10
10
EXTERNAL_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
8
8
QSPI_FLASH_FILESYSTEM = 1
9
9
EXTERNAL_FLASH_DEVICE_COUNT = 1
10
10
EXTERNAL_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
8
8
QSPI_FLASH_FILESYSTEM = 1
9
9
EXTERNAL_FLASH_DEVICE_COUNT = 1
10
10
EXTERNAL_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