diff --git a/bsp/CME_M7/rtconfig.h b/bsp/CME_M7/rtconfig.h index 97fa5136600f46337d43db9aa4fec9ebd878e21b..d0e44c8d283d3ffb2ddb5b2f08626859a12a09b4 100644 --- a/bsp/CME_M7/rtconfig.h +++ b/bsp/CME_M7/rtconfig.h @@ -103,23 +103,14 @@ /* the number of simulatenously active TCP connections*/ #define RT_LWIP_TCP_PCB_NUM 3 -/* ip address of target*/ -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 30 - -/* gateway address of target*/ -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 - -/* mask address of target*/ -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +/* ip address of target */ +#define RT_LWIP_IPADDR "192.168.1.30" + +/* gateway address of target */ +#define RT_LWIP_GWADDR "192.168.1.1" + +/* mask address of target */ +#define RT_LWIP_MSKADDR "255.255.255.0" /* tcp thread options */ #define RT_LWIP_TCPTHREAD_PRIORITY 12 diff --git a/bsp/at91sam9260/rtconfig.h b/bsp/at91sam9260/rtconfig.h index 07f39ca13a2925d86f371a32d713125b920109d8..53ca53359dc0e33ea227976c6b8d197bf2049d31 100755 --- a/bsp/at91sam9260/rtconfig.h +++ b/bsp/at91sam9260/rtconfig.h @@ -177,22 +177,13 @@ /* #define RT_LWIP_DHCP */ /* ip address of target */ -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 30 +#define RT_LWIP_IPADDR "192.168.1.30" /* gateway address of target */ -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 +#define RT_LWIP_GWADDR "192.168.1.1" /* mask address of target */ -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +#define RT_LWIP_MSKADDR "255.255.255.0" /* the number of blocks for pbuf */ #define RT_LWIP_PBUF_NUM 16 diff --git a/bsp/frdm-k64f/rtconfig.h b/bsp/frdm-k64f/rtconfig.h index 1cb5eca2592b0a7b6a7b3f9247873e05d78ab724..d8e6f6dbc5af7947f4927b4aff7aa9881d265cac 100644 --- a/bsp/frdm-k64f/rtconfig.h +++ b/bsp/frdm-k64f/rtconfig.h @@ -115,23 +115,14 @@ /* the number of simulatenously active TCP connections*/ #define RT_LWIP_TCP_PCB_NUM 5 -/* ip address of target*/ -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 201 - -/* gateway address of target*/ -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 - -/* mask address of target*/ -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +/* ip address of target */ +#define RT_LWIP_IPADDR "192.168.1.201" + +/* gateway address of target */ +#define RT_LWIP_GWADDR "192.168.1.1" + +/* mask address of target */ +#define RT_LWIP_MSKADDR "255.255.255.0" /* tcp thread options */ #define RT_LWIP_TCPTHREAD_PRIORITY 12 diff --git a/bsp/lm3s8962/rtconfig.h b/bsp/lm3s8962/rtconfig.h index 22a24106abceb2ffe066f70163aa78efbac6a0c0..b154688a6deaadf2750cb788792ee01bc63ee670 100644 --- a/bsp/lm3s8962/rtconfig.h +++ b/bsp/lm3s8962/rtconfig.h @@ -122,23 +122,14 @@ #define RT_LWIP_DNS -/* ip address of target*/ -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 30 - -/* gateway address of target*/ -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 - -/* mask address of target*/ -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +/* ip address of target */ +#define RT_LWIP_IPADDR "192.168.1.30" + +/* gateway address of target */ +#define RT_LWIP_GWADDR "192.168.1.1" + +/* mask address of target */ +#define RT_LWIP_MSKADDR "255.255.255.0" /* tcp thread options */ #define RT_LWIP_TCPTHREAD_PRIORITY 22 diff --git a/bsp/lm3s9b9x/rtconfig.h b/bsp/lm3s9b9x/rtconfig.h index b6afc3072360d0c52ae831fa86ac07f0aa421d33..b961c26d6f75cc6d0c3b8298ed9a8f2e6db2ba88 100644 --- a/bsp/lm3s9b9x/rtconfig.h +++ b/bsp/lm3s9b9x/rtconfig.h @@ -119,23 +119,14 @@ #define RT_LWIP_DNS -/* ip address of target*/ -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 30 - -/* gateway address of target*/ -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 - -/* mask address of target*/ -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +/* ip address of target */ +#define RT_LWIP_IPADDR "192.168.1.30" + +/* gateway address of target */ +#define RT_LWIP_GWADDR "192.168.1.1" + +/* mask address of target */ +#define RT_LWIP_MSKADDR "255.255.255.0" /* tcp thread options */ #define RT_LWIP_TCPTHREAD_PRIORITY 12 diff --git a/bsp/lpc176x/rtconfig.h b/bsp/lpc176x/rtconfig.h index eb7e3e6401dd153a93ec73b0efee5dc5fdf4e90b..726b887047c9849005f4e895fc0cb9b653dad274 100644 --- a/bsp/lpc176x/rtconfig.h +++ b/bsp/lpc176x/rtconfig.h @@ -191,20 +191,11 @@ // #define RT_LWIP_ETHTHREAD_STACKSIZE 512 // -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 30 +#define RT_LWIP_IPADDR "192.168.1.30" // -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 +#define RT_LWIP_GWADDR "192.168.1.1" // -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +#define RT_LWIP_MSKADDR "255.255.255.0" // // diff --git a/bsp/mini2440/rtconfig.h b/bsp/mini2440/rtconfig.h index 32ee42c9088c1d65882c331caa1839747eb8f77b..475ba91062fc69f592afc28cdd219430c2a5a701 100644 --- a/bsp/mini2440/rtconfig.h +++ b/bsp/mini2440/rtconfig.h @@ -164,20 +164,11 @@ // #define RT_LWIP_ETHTHREAD_STACKSIZE 512 // -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 30 +#define RT_LWIP_IPADDR "192.168.1.30" // -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 +#define RT_LWIP_GWADDR "192.168.1.1" // -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +#define RT_LWIP_MSKADDR "255.255.255.0" // //
diff --git a/bsp/sam7x/rtconfig.h b/bsp/sam7x/rtconfig.h index a1c31bc3ce3aee9c307f8065579dbda0189e3f86..bb3e3546d02a9fe4ade256ac68523235f7457eb0 100644 --- a/bsp/sam7x/rtconfig.h +++ b/bsp/sam7x/rtconfig.h @@ -118,23 +118,14 @@ /* Using DHCP*/ /* #define RT_LWIP_DHCP */ -/* ip address of target*/ -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 30 - -/* gateway address of target*/ -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 - -/* mask address of target*/ -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +/* ip address of target */ +#define RT_LWIP_IPADDR "192.168.1.30" + +/* gateway address of target */ +#define RT_LWIP_GWADDR "192.168.1.1" + +/* mask address of target */ +#define RT_LWIP_MSKADDR "255.255.255.0" /* SECTION: DFS options */ //#define RT_USING_DFS diff --git a/bsp/stm32f107/rtconfig.h b/bsp/stm32f107/rtconfig.h index c4cd0c836890f48f6833c1c157f265ed57808c6e..210b165a4db7d3349c9e10b9951bf883bce55f1f 100644 --- a/bsp/stm32f107/rtconfig.h +++ b/bsp/stm32f107/rtconfig.h @@ -115,23 +115,14 @@ /* the number of simulatenously active TCP connections*/ #define RT_LWIP_TCP_PCB_NUM 5 -/* ip address of target*/ -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 30 - -/* gateway address of target*/ -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 - -/* mask address of target*/ -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +/* ip address of target */ +#define RT_LWIP_IPADDR "192.168.1.30" + +/* gateway address of target */ +#define RT_LWIP_GWADDR "192.168.1.1" + +/* mask address of target */ +#define RT_LWIP_MSKADDR "255.255.255.0" /* tcp thread options */ #define RT_LWIP_TCPTHREAD_PRIORITY 12 diff --git a/bsp/tm4c129x/rtconfig.h b/bsp/tm4c129x/rtconfig.h index 6da197d331aa1701ebb48e5ec8eea7d328264893..c0c7ffced13af0326187db90b365ac14e9257b44 100644 --- a/bsp/tm4c129x/rtconfig.h +++ b/bsp/tm4c129x/rtconfig.h @@ -206,20 +206,11 @@ // #define RT_LWIP_ETHTHREAD_STACKSIZE 512 // -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP_IPADDR2 1 -#define RT_LWIP_IPADDR3 30 +#define RT_LWIP_IPADDR "192.168.1.30" // -#define RT_LWIP_GWADDR0 192 -#define RT_LWIP_GWADDR1 168 -#define RT_LWIP_GWADDR2 1 -#define RT_LWIP_GWADDR3 1 +#define RT_LWIP_GWADDR "192.168.1.1" // -#define RT_LWIP_MSKADDR0 255 -#define RT_LWIP_MSKADDR1 255 -#define RT_LWIP_MSKADDR2 255 -#define RT_LWIP_MSKADDR3 0 +#define RT_LWIP_MSKADDR "255.255.255.0" //