Skip to content

Commit 29a1ec1

Browse files
committed
stmhal: Overhaul network drivers; has generic network protocol in C.
This patch overhauls the network driver interface. A generic NIC must provide a set of C-level functions to implement low-level socket control (eg socket, bind, connect, send, recv). Doing this, the network and usocket modules can then use such a NIC to implement proper socket control at the Python level. This patch also updates the CC3K and WIZNET5K drivers to conform to the new interface, and fixes some bugs in the drivers. They now work reasonably well.
1 parent d8f2392 commit 29a1ec1

8 files changed

Lines changed: 1269 additions & 959 deletions

File tree

stmhal/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ ifeq ($(MICROPY_PY_WIZNET5K),1)
196196
WIZNET5K_DIR=drivers/wiznet5k
197197
INC += -I$(TOP)/$(WIZNET5K_DIR)
198198
CFLAGS_MOD += -DMICROPY_PY_WIZNET5K=1
199-
SRC_MOD += modwiznet5k.c
199+
SRC_MOD += modnwwiznet5k.c
200200
SRC_MOD += $(addprefix $(WIZNET5K_DIR)/,\
201201
ethernet/w5200/w5200.c \
202202
ethernet/wizchip_conf.c \
@@ -210,7 +210,7 @@ ifeq ($(MICROPY_PY_CC3K),1)
210210
CC3000_DIR=drivers/cc3000
211211
INC += -I$(TOP)/$(CC3000_DIR)/inc
212212
CFLAGS_MOD += -DMICROPY_PY_CC3K=1
213-
SRC_MOD += modcc3k.c
213+
SRC_MOD += modnwcc3k.c
214214
SRC_MOD += $(addprefix $(CC3000_DIR)/src/,\
215215
cc3000_common.c \
216216
evnt_handler.c \

0 commit comments

Comments
 (0)