ZHCAB54 March 2021 TM4C1292NCPDT , TM4C1292NCZAD , TM4C1294KCPDT , TM4C1294NCPDT , TM4C1294NCZAD , TM4C1299KCZAD , TM4C1299NCZAD , TM4C129DNCPDT , TM4C129DNCZAD , TM4C129EKCPDT , TM4C129ENCPDT , TM4C129ENCZAD , TM4C129LNCZAD , TM4C129XKCZAD , TM4C129XNCZAD
lwipopts.h 文件允许启用或禁用不同的功能。若要使用静态 IP 地址,应遵循以下三个步骤:
#define LWIP_DHCP 0
#define LWIP_AUTOIP 0
#define IPADDR "82.254.168.192"
#define NETMASK "0.0.255.255"
#define GWMASK "0.0.255.255"
#define PORT 23
lwIPInit(g_ui32SysClock, pui8MACArray,
inet_addr(IPADDR),
inet_addr(NETMASK),
inet_addr(GWMASK),
IPADDR_USE_STATIC);