aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/ARMCM3-STM32F107-LWIP/Makefile12
-rw-r--r--os/various/lwip_bindings/arch/cc.h (renamed from demos/ARMCM3-STM32F107-LWIP/lwip/arch/cc.h)0
-rw-r--r--os/various/lwip_bindings/arch/perf.h (renamed from demos/ARMCM3-STM32F107-LWIP/lwip/arch/perf.h)0
-rw-r--r--os/various/lwip_bindings/arch/sys_arch.c (renamed from demos/ARMCM3-STM32F107-LWIP/lwip/arch/sys_arch.c)0
-rw-r--r--os/various/lwip_bindings/arch/sys_arch.h (renamed from demos/ARMCM3-STM32F107-LWIP/lwip/arch/sys_arch.h)0
-rw-r--r--os/various/lwip_bindings/lwip.mk (renamed from demos/ARMCM3-STM32F107-LWIP/lwip/lwip.mk)7
-rw-r--r--os/various/lwip_bindings/lwipthread.c (renamed from os/various/lwipthread.c)0
-rw-r--r--os/various/lwip_bindings/lwipthread.h (renamed from os/various/lwipthread.h)0
-rw-r--r--readme.txt3
9 files changed, 12 insertions, 10 deletions
diff --git a/demos/ARMCM3-STM32F107-LWIP/Makefile b/demos/ARMCM3-STM32F107-LWIP/Makefile
index 8ca3fcf88..28772cfa8 100644
--- a/demos/ARMCM3-STM32F107-LWIP/Makefile
+++ b/demos/ARMCM3-STM32F107-LWIP/Makefile
@@ -64,8 +64,8 @@ include $(CHIBIOS)/os/hal/platforms/STM32F1xx/platform.mk
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F1xx/port.mk
include $(CHIBIOS)/os/kernel/kernel.mk
+include $(CHIBIOS)/os/various/lwip_bindings/lwip.mk
include $(CHIBIOS)/test/test.mk
-include ./lwip/lwip.mk
# Define linker script file here
LDSCRIPT= $(PORTLD)/STM32F107xC.ld
@@ -78,13 +78,8 @@ CSRC = $(PORTSRC) \
$(HALSRC) \
$(PLATFORMSRC) \
$(BOARDSRC) \
- $(LWNETIFSRC) \
- $(LWCORESRC) \
- $(LWIPV4SRC) \
- $(LWAPISRC) \
+ $(LWSRC) \
$(CHIBIOS)/os/various/evtimer.c \
- $(CHIBIOS)/os/various/lwipthread.c \
- ./lwip/arch/sys_arch.c \
web/web.c main.c
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
@@ -116,8 +111,7 @@ ASMSRC = $(PORTASM)
INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \
$(HALINC) $(PLATFORMINC) $(BOARDINC) $(LWINC) \
- $(CHIBIOS)/os/various \
- ./lwip
+ $(CHIBIOS)/os/various
#
# Project, sources and paths
diff --git a/demos/ARMCM3-STM32F107-LWIP/lwip/arch/cc.h b/os/various/lwip_bindings/arch/cc.h
index b94e6f4d8..b94e6f4d8 100644
--- a/demos/ARMCM3-STM32F107-LWIP/lwip/arch/cc.h
+++ b/os/various/lwip_bindings/arch/cc.h
diff --git a/demos/ARMCM3-STM32F107-LWIP/lwip/arch/perf.h b/os/various/lwip_bindings/arch/perf.h
index 6960cd8ab..6960cd8ab 100644
--- a/demos/ARMCM3-STM32F107-LWIP/lwip/arch/perf.h
+++ b/os/various/lwip_bindings/arch/perf.h
diff --git a/demos/ARMCM3-STM32F107-LWIP/lwip/arch/sys_arch.c b/os/various/lwip_bindings/arch/sys_arch.c
index 3042f5e8b..3042f5e8b 100644
--- a/demos/ARMCM3-STM32F107-LWIP/lwip/arch/sys_arch.c
+++ b/os/various/lwip_bindings/arch/sys_arch.c
diff --git a/demos/ARMCM3-STM32F107-LWIP/lwip/arch/sys_arch.h b/os/various/lwip_bindings/arch/sys_arch.h
index cf12ebc05..cf12ebc05 100644
--- a/demos/ARMCM3-STM32F107-LWIP/lwip/arch/sys_arch.h
+++ b/os/various/lwip_bindings/arch/sys_arch.h
diff --git a/demos/ARMCM3-STM32F107-LWIP/lwip/lwip.mk b/os/various/lwip_bindings/lwip.mk
index 55a9bf7f4..1f56b698d 100644
--- a/demos/ARMCM3-STM32F107-LWIP/lwip/lwip.mk
+++ b/os/various/lwip_bindings/lwip.mk
@@ -1,6 +1,10 @@
# List of the required lwIP files.
LWIP = ${CHIBIOS}/ext/lwip-1.4.0
+LWBINDSRC = \
+ $(CHIBIOS)/os/various/lwip_bindings/lwipthread.c \
+ $(CHIBIOS)/os/various/lwip_bindings/arch/sys_arch.c
+
LWNETIFSRC = \
${LWIP}/src/netif/etharp.c
@@ -42,6 +46,9 @@ LWAPISRC = \
${LWIP}/src/api/sockets.c \
${LWIP}/src/api/tcpip.c
+LWSRC = $(LWBINDSRC) $(LWNETIFSRC) $(LWCORESRC) $(LWIPV4SRC) $(LWAPISRC)
+
LWINC = \
+ $(CHIBIOS)/os/various/lwip_bindings \
${LWIP}/src/include \
${LWIP}/src/include/ipv4
diff --git a/os/various/lwipthread.c b/os/various/lwip_bindings/lwipthread.c
index 061a4a52e..061a4a52e 100644
--- a/os/various/lwipthread.c
+++ b/os/various/lwip_bindings/lwipthread.c
diff --git a/os/various/lwipthread.h b/os/various/lwip_bindings/lwipthread.h
index fc608642e..fc608642e 100644
--- a/os/various/lwipthread.h
+++ b/os/various/lwip_bindings/lwipthread.h
diff --git a/readme.txt b/readme.txt
index c22d95b76..4da234769 100644
--- a/readme.txt
+++ b/readme.txt
@@ -108,7 +108,8 @@
Fabio).
- NEW: STM32 Ethernet driver completed, only partially tested on STM32F107.
Added an STM32 lwIP demo.
- TODO: Extensive testing.
+- NEW: lwIP related code is not centralized into a single place, no need to
+ duplicate the code in each application or demo.
- CHANGE: Macros icuGetWidthI() and icuGetPeriodI() renemed to icuGetWidth()
and icuGetPeriod().
- CHANGE: Renamed Ethernet driver in AT91 HAL ETHD1.