summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernardXiong <[email protected]>2017-12-31 14:44:58 +0800
committerBernardXiong <[email protected]>2017-12-31 14:44:58 +0800
commitd219f5bfa904100332b7e30380ab83597fbe8b85 (patch)
treeec8289a7b40e4bb820a3d744655195f5de599eba
parent341f78fed7bc2ea53f454cfb0966e43b45cb1786 (diff)
[lwIP] code cleanup for Kconfig.
1. code cleanup for Kconfig. 2. fix the compiling warning for BYTE_ORDER.
-rwxr-xr-xcomponents/net/Kconfig2
-rw-r--r--components/net/lwip-1.4.1/src/lwipopts.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/components/net/Kconfig b/components/net/Kconfig
index 43473af409..750f419cc9 100755
--- a/components/net/Kconfig
+++ b/components/net/Kconfig
@@ -3,7 +3,7 @@ menu "Network stack"
menu "light weight TCP/IP stack"
config RT_USING_LWIP
bool "Enable lwIP stack"
- select RT_USING_DEVICE
+ select RT_USING_DEVICE
default n
if RT_USING_LWIP
diff --git a/components/net/lwip-1.4.1/src/lwipopts.h b/components/net/lwip-1.4.1/src/lwipopts.h
index 8b4d38961e..f07e9d51f5 100644
--- a/components/net/lwip-1.4.1/src/lwipopts.h
+++ b/components/net/lwip-1.4.1/src/lwipopts.h
@@ -36,7 +36,10 @@
#define LWIP_HAVE_LOOPIF 0
#define LWIP_PLATFORM_BYTESWAP 0
+
+#ifndef BYTE_ORDER
#define BYTE_ORDER LITTLE_ENDIAN
+#endif
/* #define RT_LWIP_DEBUG */