请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320C6678 Thread 中讨论的其他器件:CCStudio
如何使用 C667x 和 C665x 系列处理器中的 PDK 设置静态和 DHCP IP 配置?
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.
如何使用 C667x 和 C665x 系列处理器中的 PDK 设置静态和 DHCP IP 配置?
要为 C667x 器件运行 NIMU EMAC 示例、请确保满足必要条件。
现在、将 CCS 项目导入 CCS 并继续

// IP Configuration
//
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(1) // set '1' for manual IP configuration
{
// Manual IP configuration
CI_IPNET NA;
CI_ROUTE RT;
...
}
else
{
//DHCP configuration
}
}int StackTest()
{
if(0) // set '0' for DHCP IP configuration
{
// Manual IP configuration
CI_IPNET NA;
CI_ROUTE RT;
...
}
else
{
//DHCP configuration
}
}
谢谢和 Rgards、
Rajarajan U