update apollo bsp

This commit is contained in:
SummerGift 2017-10-20 18:33:05 +08:00
parent 23ee66c63c
commit a98fc2909a
4 changed files with 9 additions and 95 deletions

View File

@ -129,8 +129,8 @@ CONFIG_RT_USING_LIBC=y
# light weight TCP/IP stack
#
CONFIG_RT_USING_LWIP=y
CONFIG_RT_USING_LWIP141=y
# CONFIG_RT_USING_LWIP202 is not set
# CONFIG_RT_USING_LWIP141 is not set
CONFIG_RT_USING_LWIP202=y
# CONFIG_RT_LWIP_IGMP is not set
CONFIG_RT_LWIP_ICMP=y
# CONFIG_RT_LWIP_SNMP is not set
@ -189,11 +189,12 @@ CONFIG_LWIP_SO_RCVBUF=1
#
# IoT - internet of things
#
# CONFIG_PKG_USING_CJSON is not set
# CONFIG_PKG_USING_PAHOMQTT is not set
# CONFIG_PKG_USING_WEBCLIENT is not set
# CONFIG_PKG_USING_MONGOOSE is not set
# CONFIG_PKG_USING_WEBTERMINAL is not set
# CONFIG_PKG_USING_CJSON is not set
# CONFIG_PKG_USING_EZXML is not set
#
# security packages
@ -233,18 +234,3 @@ CONFIG_RT_USING_SPI5=y
#
# BSP_LWIP CONFIG
#
CONFIG_RT_LWIP_IPADDR0=192
CONFIG_RT_LWIP_IPADDR1=168
CONFIG_RT_LWIP_IPADDR2=1
CONFIG_RT_LWIP_IPADDR3=201
CONFIG_RT_LWIP_GWADDR0=192
CONFIG_RT_LWIP_GWADDR1=168
CONFIG_RT_LWIP_GWADDR2=1
CONFIG_RT_LWIP_GWADDR3=1
CONFIG_RT_LWIP_MSKADDR0=255
CONFIG_RT_LWIP_MSKADDR1=255
CONFIG_RT_LWIP_MSKADDR2=255
CONFIG_RT_LWIP_MSKADDR3=0
CONFIG_CHECKSUM_CHECK_TCP=0
CONFIG_CHECKSUM_CHECK_IP=0
CONFIG_CHECKSUM_CHECK_UDP=0

View File

@ -48,65 +48,7 @@ endmenu
menu "BSP_LWIP CONFIG"
config RT_LWIP_IPADDR0
int "RT_LWIP_IPADDR0"
default 192
config RT_LWIP_IPADDR1
int "RT_LWIP_IPADDR1"
default 168
config RT_LWIP_IPADDR2
int "RT_LWIP_IPADDR2"
default 1
config RT_LWIP_IPADDR3
int "RT_LWIP_IPADDR3"
default 201
config RT_LWIP_GWADDR0
int "RT_LWIP_GWADDR0"
default 192
config RT_LWIP_GWADDR1
int "RT_LWIP_GWADDR1"
default 168
config RT_LWIP_GWADDR2
int "RT_LWIP_GWADDR2"
default 1
config RT_LWIP_GWADDR3
int "RT_LWIP_GWADDR3"
default 1
config RT_LWIP_MSKADDR0
int "RT_LWIP_MSKADDR0"
default 255
config RT_LWIP_MSKADDR1
int "RT_LWIP_MSKADDR1"
default 255
config RT_LWIP_MSKADDR2
int "RT_LWIP_MSKADDR2"
default 255
config RT_LWIP_MSKADDR3
int "RT_LWIP_MSKADDR3"
default 0
config CHECKSUM_CHECK_TCP
int "CHECKSUM_CHECK_TCP"
default 0
config CHECKSUM_CHECK_IP
int "The CHECKSUM_CHECK_IP"
default 0
config CHECKSUM_CHECK_UDP
int "The CHECKSUM_CHECK_UDP"
default 0
endmenu

View File

@ -125,7 +125,7 @@ static void delay_ms(rt_uint32_t ms)
}
else
{
rt_thread_delay(ms/(1000 / RT_TICK_PER_SECOND));
rt_thread_delay(rt_tick_from_millisecond(ms));
}
}

View File

@ -117,8 +117,8 @@
/* light weight TCP/IP stack */
#define RT_USING_LWIP
#define RT_USING_LWIP141
/* RT_USING_LWIP202 is not set */
/* RT_USING_LWIP141 is not set */
#define RT_USING_LWIP202
/* RT_LWIP_IGMP is not set */
#define RT_LWIP_ICMP
/* RT_LWIP_SNMP is not set */
@ -171,11 +171,12 @@
/* IoT - internet of things */
/* PKG_USING_CJSON is not set */
/* PKG_USING_PAHOMQTT is not set */
/* PKG_USING_WEBCLIENT is not set */
/* PKG_USING_MONGOOSE is not set */
/* PKG_USING_WEBTERMINAL is not set */
/* PKG_USING_CJSON is not set */
/* PKG_USING_EZXML is not set */
/* security packages */
@ -207,20 +208,5 @@
/* BSP_LWIP CONFIG */
#define RT_LWIP_IPADDR0 192
#define RT_LWIP_IPADDR1 168
#define RT_LWIP_IPADDR2 1
#define RT_LWIP_IPADDR3 201
#define RT_LWIP_GWADDR0 192
#define RT_LWIP_GWADDR1 168
#define RT_LWIP_GWADDR2 1
#define RT_LWIP_GWADDR3 1
#define RT_LWIP_MSKADDR0 255
#define RT_LWIP_MSKADDR1 255
#define RT_LWIP_MSKADDR2 255
#define RT_LWIP_MSKADDR3 0
#define CHECKSUM_CHECK_TCP 0
#define CHECKSUM_CHECK_IP 0
#define CHECKSUM_CHECK_UDP 0
#endif