change mac address.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@356 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
97d4abe294
commit
c68e75a7f3
|
@ -751,12 +751,12 @@ void rt_hw_enc28j60_init()
|
||||||
enc28j60_dev_entry.parent.eth_tx = enc28j60_tx;
|
enc28j60_dev_entry.parent.eth_tx = enc28j60_tx;
|
||||||
|
|
||||||
/* Update MAC address */
|
/* Update MAC address */
|
||||||
enc28j60_dev_entry.dev_addr[0] = 0x1e;
|
enc28j60_dev_entry.dev_addr[0] = 0x00;
|
||||||
enc28j60_dev_entry.dev_addr[1] = 0x30;
|
enc28j60_dev_entry.dev_addr[1] = 0x30;
|
||||||
enc28j60_dev_entry.dev_addr[2] = 0x6c;
|
enc28j60_dev_entry.dev_addr[2] = 0x6c;
|
||||||
enc28j60_dev_entry.dev_addr[3] = 0xa2;
|
enc28j60_dev_entry.dev_addr[3] = 0x11;
|
||||||
enc28j60_dev_entry.dev_addr[4] = 0x45;
|
enc28j60_dev_entry.dev_addr[4] = 0x22;
|
||||||
enc28j60_dev_entry.dev_addr[5] = 0x5e;
|
enc28j60_dev_entry.dev_addr[5] = 0x33;
|
||||||
|
|
||||||
rt_sem_init(&lock_sem, "lock", 1, RT_IPC_FLAG_FIFO);
|
rt_sem_init(&lock_sem, "lock", 1, RT_IPC_FLAG_FIFO);
|
||||||
|
|
||||||
|
|
|
@ -3558,12 +3558,12 @@ void rt_hw_stm32_eth_init()
|
||||||
GPIO_Configuration();
|
GPIO_Configuration();
|
||||||
NVIC_Configuration();
|
NVIC_Configuration();
|
||||||
|
|
||||||
stm32_eth_device.dev_addr[0] = 0x01;
|
stm32_eth_device.dev_addr[0] = 0x00;
|
||||||
stm32_eth_device.dev_addr[1] = 0x60;
|
stm32_eth_device.dev_addr[1] = 0x60;
|
||||||
stm32_eth_device.dev_addr[2] = 0x6E;
|
stm32_eth_device.dev_addr[2] = 0x6E;
|
||||||
stm32_eth_device.dev_addr[3] = 0x11;
|
stm32_eth_device.dev_addr[3] = 0x11;
|
||||||
stm32_eth_device.dev_addr[4] = 0x02;
|
stm32_eth_device.dev_addr[4] = 0x22;
|
||||||
stm32_eth_device.dev_addr[5] = 0x0F;
|
stm32_eth_device.dev_addr[5] = 0x33;
|
||||||
|
|
||||||
stm32_eth_device.parent.parent.init = rt_stm32_eth_init;
|
stm32_eth_device.parent.parent.init = rt_stm32_eth_init;
|
||||||
stm32_eth_device.parent.parent.open = rt_stm32_eth_open;
|
stm32_eth_device.parent.parent.open = rt_stm32_eth_open;
|
||||||
|
|
Loading…
Reference in New Issue