diff options
| author | ArdaFu <[email protected]> | 2017-10-27 10:05:31 +0800 |
|---|---|---|
| committer | ArdaFu <[email protected]> | 2017-10-27 10:05:31 +0800 |
| commit | 064f182a0d75623ac8d208c932fc74b5168a3893 (patch) | |
| tree | 3c935196ba6e5dd968209c2de3025106ab34b71a /bsp/at91sam9260 | |
| parent | 384b6c738a6d13713f43046e485ef6c0b402c159 (diff) | |
[bsp]Fix RT_LWIP_IPADDR RT_LWIP_GWADDR RT_LWIP_MSKADDR define, replace multi-bytes MACRO with single string MACRO.
Diffstat (limited to 'bsp/at91sam9260')
| -rwxr-xr-x | bsp/at91sam9260/rtconfig.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/bsp/at91sam9260/rtconfig.h b/bsp/at91sam9260/rtconfig.h index 07f39ca13a..53ca53359d 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 |
