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.
如何在 TI-RTOS SDK 中运行 NIMU EMAC 示例?
要为 C665x 器件运行 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 } }
谢谢、此致、
Rajarajan U