浏览代码

Modify the IP & GW & MSK ADDR configure mode as string mode, insted separation mode

MurphyZhao 7 年之前
父节点
当前提交
6c28a6e879
共有 1 个文件被更改,包括 3 次插入12 次删除
  1. 3 12
      bsp/fh8620/rtconfig.h

+ 3 - 12
bsp/fh8620/rtconfig.h

@@ -182,20 +182,11 @@
 // <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" />
 #define RT_LWIP_ETHTHREAD_STACKSIZE	512
 // <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" />
-#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"  
 // <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" />
-#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"
 // <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" />
-#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"
 // </section>
 
 // </RDTConfigurator>