大家好的,我的开发板是利尔达的串口转以太网,芯片上LM3S6432,的使用TI里面的例程,设置为静态IP。如下:
MAC地址我在初始化的时候已经设置了的,
unsigned long ulUser0 = 0x00452301, ulUser1 = 0x00ab8967;
unsigned char pucMACAddr[8];
pucMACAddr[0] = ulUser0 & 0xff;
pucMACAddr[1] = (ulUser0 >> 8) & 0xff;
pucMACAddr[2] = (ulUser0 >> 16) & 0xff;
pucMACAddr[3] = ulUser1 & 0xff;
pucMACAddr[4] = (ulUser1 >> 8) & 0xff;
pucMACAddr[5] = (ulUser1 >> 16) & 0xff;