[bsp]Fix RT_LWIP_IPADDR RT_LWIP_GWADDR RT_LWIP_MSKADDR define, replace multi-bytes MACRO with single string MACRO.

This commit is contained in:
ArdaFu 2017-10-27 10:05:31 +08:00
parent 384b6c738a
commit 064f182a0d
10 changed files with 48 additions and 138 deletions

View File

@ -104,22 +104,13 @@
#define RT_LWIP_TCP_PCB_NUM 3 #define RT_LWIP_TCP_PCB_NUM 3
/* ip address of target */ /* ip address of target */
#define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_IPADDR1 168
#define RT_LWIP_IPADDR2 1
#define RT_LWIP_IPADDR3 30
/* gateway address of target */ /* gateway address of target */
#define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_GWADDR1 168
#define RT_LWIP_GWADDR2 1
#define RT_LWIP_GWADDR3 1
/* mask address of target */ /* mask address of target */
#define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_MSKADDR1 255
#define RT_LWIP_MSKADDR2 255
#define RT_LWIP_MSKADDR3 0
/* tcp thread options */ /* tcp thread options */
#define RT_LWIP_TCPTHREAD_PRIORITY 12 #define RT_LWIP_TCPTHREAD_PRIORITY 12

View File

@ -177,22 +177,13 @@
/* #define RT_LWIP_DHCP */ /* #define RT_LWIP_DHCP */
/* ip address of target */ /* ip address of target */
#define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_IPADDR1 168
#define RT_LWIP_IPADDR2 1
#define RT_LWIP_IPADDR3 30
/* gateway address of target */ /* gateway address of target */
#define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_GWADDR1 168
#define RT_LWIP_GWADDR2 1
#define RT_LWIP_GWADDR3 1
/* mask address of target */ /* mask address of target */
#define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_MSKADDR1 255
#define RT_LWIP_MSKADDR2 255
#define RT_LWIP_MSKADDR3 0
/* the number of blocks for pbuf */ /* the number of blocks for pbuf */
#define RT_LWIP_PBUF_NUM 16 #define RT_LWIP_PBUF_NUM 16

View File

@ -116,22 +116,13 @@
#define RT_LWIP_TCP_PCB_NUM 5 #define RT_LWIP_TCP_PCB_NUM 5
/* ip address of target */ /* ip address of target */
#define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR "192.168.1.201"
#define RT_LWIP_IPADDR1 168
#define RT_LWIP_IPADDR2 1
#define RT_LWIP_IPADDR3 201
/* gateway address of target */ /* gateway address of target */
#define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_GWADDR1 168
#define RT_LWIP_GWADDR2 1
#define RT_LWIP_GWADDR3 1
/* mask address of target */ /* mask address of target */
#define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_MSKADDR1 255
#define RT_LWIP_MSKADDR2 255
#define RT_LWIP_MSKADDR3 0
/* tcp thread options */ /* tcp thread options */
#define RT_LWIP_TCPTHREAD_PRIORITY 12 #define RT_LWIP_TCPTHREAD_PRIORITY 12

View File

@ -123,22 +123,13 @@
#define RT_LWIP_DNS #define RT_LWIP_DNS
/* ip address of target */ /* ip address of target */
#define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_IPADDR1 168
#define RT_LWIP_IPADDR2 1
#define RT_LWIP_IPADDR3 30
/* gateway address of target */ /* gateway address of target */
#define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_GWADDR1 168
#define RT_LWIP_GWADDR2 1
#define RT_LWIP_GWADDR3 1
/* mask address of target */ /* mask address of target */
#define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_MSKADDR1 255
#define RT_LWIP_MSKADDR2 255
#define RT_LWIP_MSKADDR3 0
/* tcp thread options */ /* tcp thread options */
#define RT_LWIP_TCPTHREAD_PRIORITY 22 #define RT_LWIP_TCPTHREAD_PRIORITY 22

View File

@ -120,22 +120,13 @@
#define RT_LWIP_DNS #define RT_LWIP_DNS
/* ip address of target */ /* ip address of target */
#define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_IPADDR1 168
#define RT_LWIP_IPADDR2 1
#define RT_LWIP_IPADDR3 30
/* gateway address of target */ /* gateway address of target */
#define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_GWADDR1 168
#define RT_LWIP_GWADDR2 1
#define RT_LWIP_GWADDR3 1
/* mask address of target */ /* mask address of target */
#define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_MSKADDR1 255
#define RT_LWIP_MSKADDR2 255
#define RT_LWIP_MSKADDR3 0
/* tcp thread options */ /* tcp thread options */
#define RT_LWIP_TCPTHREAD_PRIORITY 12 #define RT_LWIP_TCPTHREAD_PRIORITY 12

View File

@ -191,20 +191,11 @@
// <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" /> // <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" />
#define RT_LWIP_ETHTHREAD_STACKSIZE 512 #define RT_LWIP_ETHTHREAD_STACKSIZE 512
// <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" /> // <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" />
#define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_IPADDR1 168
#define RT_LWIP_IPADDR2 1
#define RT_LWIP_IPADDR3 30
// <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" /> // <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" />
#define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_GWADDR1 168
#define RT_LWIP_GWADDR2 1
#define RT_LWIP_GWADDR3 1
// <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" /> // <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" />
#define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_MSKADDR1 255
#define RT_LWIP_MSKADDR2 255
#define RT_LWIP_MSKADDR3 0
// </section> // </section>
// <bool name="RT_USING_CMSIS_OS" description="Using CMSIS OS API" default="true" /> // <bool name="RT_USING_CMSIS_OS" description="Using CMSIS OS API" default="true" />

View File

@ -164,20 +164,11 @@
// <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" /> // <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" />
#define RT_LWIP_ETHTHREAD_STACKSIZE 512 #define RT_LWIP_ETHTHREAD_STACKSIZE 512
// <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" /> // <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" />
#define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_IPADDR1 168
#define RT_LWIP_IPADDR2 1
#define RT_LWIP_IPADDR3 30
// <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" /> // <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" />
#define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_GWADDR1 168
#define RT_LWIP_GWADDR2 1
#define RT_LWIP_GWADDR3 1
// <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" /> // <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" />
#define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_MSKADDR1 255
#define RT_LWIP_MSKADDR2 255
#define RT_LWIP_MSKADDR3 0
// </section> // </section>
// <section name="RT_USING_MODULE" description="Application module" default="true" > // <section name="RT_USING_MODULE" description="Application module" default="true" >

View File

@ -119,22 +119,13 @@
/* #define RT_LWIP_DHCP */ /* #define RT_LWIP_DHCP */
/* ip address of target */ /* ip address of target */
#define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_IPADDR1 168
#define RT_LWIP_IPADDR2 1
#define RT_LWIP_IPADDR3 30
/* gateway address of target */ /* gateway address of target */
#define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_GWADDR1 168
#define RT_LWIP_GWADDR2 1
#define RT_LWIP_GWADDR3 1
/* mask address of target */ /* mask address of target */
#define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_MSKADDR1 255
#define RT_LWIP_MSKADDR2 255
#define RT_LWIP_MSKADDR3 0
/* SECTION: DFS options */ /* SECTION: DFS options */
//#define RT_USING_DFS //#define RT_USING_DFS

View File

@ -116,22 +116,13 @@
#define RT_LWIP_TCP_PCB_NUM 5 #define RT_LWIP_TCP_PCB_NUM 5
/* ip address of target */ /* ip address of target */
#define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_IPADDR1 168
#define RT_LWIP_IPADDR2 1
#define RT_LWIP_IPADDR3 30
/* gateway address of target */ /* gateway address of target */
#define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_GWADDR1 168
#define RT_LWIP_GWADDR2 1
#define RT_LWIP_GWADDR3 1
/* mask address of target */ /* mask address of target */
#define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_MSKADDR1 255
#define RT_LWIP_MSKADDR2 255
#define RT_LWIP_MSKADDR3 0
/* tcp thread options */ /* tcp thread options */
#define RT_LWIP_TCPTHREAD_PRIORITY 12 #define RT_LWIP_TCPTHREAD_PRIORITY 12

View File

@ -206,20 +206,11 @@
// <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" /> // <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" />
#define RT_LWIP_ETHTHREAD_STACKSIZE 512 #define RT_LWIP_ETHTHREAD_STACKSIZE 512
// <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" /> // <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" />
#define RT_LWIP_IPADDR0 192 #define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_IPADDR1 168
#define RT_LWIP_IPADDR2 1
#define RT_LWIP_IPADDR3 30
// <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" /> // <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" />
#define RT_LWIP_GWADDR0 192 #define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_GWADDR1 168
#define RT_LWIP_GWADDR2 1
#define RT_LWIP_GWADDR3 1
// <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" /> // <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" />
#define RT_LWIP_MSKADDR0 255 #define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_MSKADDR1 255
#define RT_LWIP_MSKADDR2 255
#define RT_LWIP_MSKADDR3 0
// </section> // </section>