请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:66AK2E05 如何从适用于 K2E 系列处理器的 TI-RTOS SDK 运行 Nimu EMAC 客户端示例?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
如何从适用于 K2E 系列处理器的 TI-RTOS SDK 运行 Nimu EMAC 客户端示例?
要为 K2E 器件运行 NIMU EMAC 示例、请确保存在先决条件。
现在、将 CCS 项目导入 CCS 并继续

//---------------------------------------------------------------------------
// Local IP and gateway IP can be modified to our requirement
//
char *HostName = "tidsp";
char *LocalIPAddr = "192.168.1.4";
char *LocalIPMask = "255.255.255.0"; // Not used when using DHCP
char *GatewayIP = "192.168.1.1"; // Not used when using DHCP
char *DomainName = "demo.net"; // Not used when using DHCP
char *DNSServer = "0.0.0.0"; // Used when set to anything but zero
//
// Main Thread
//
int StackTest()
{
...
// If the IP address is specified, manually configure IP and Gateway
#if defined(_SCBP6618X_) || defined (DEVICE_C6678) || defined(_EVMTCI6614_) || defined(DEVICE_K2H) || defined(DEVICE_K2K) || defined(DEVICE_K2L) || defined(DEVICE_K2E)
/* SCBP6618x, EVMTCI6614, EVMK2H, EVMK2K always uses DHCP */
if (1) // set it as 1 for Manual IP configuration
{
//Manual IP configuration code
}
else
{
//DHCP IP configuration code
}
...
}



//
// Main Thread
//
int StackTest()
{
...
// If the IP address is specified, manually configure IP and Gateway
#if defined(_SCBP6618X_) || defined (DEVICE_C6678) || defined(_EVMTCI6614_) || defined(DEVICE_K2H) || defined(DEVICE_K2K) || defined(DEVICE_K2L) || defined(DEVICE_K2E)
/* SCBP6618x, EVMTCI6614, EVMK2H, EVMK2K always uses DHCP */
if (0) // set it as 0 for DHCP IP configuration
{
//Manual IP configuration code
}
else
{
//DHCP IP configuration code
}
...
}



谢谢、此致、
Rajarajan U