From c68e75a7f38db64ff19cc5a296b1f4ac3bd80a74 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Mon, 1 Feb 2010 12:58:50 +0000 Subject: [PATCH] change mac address. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@356 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/stm3210/enc28j60.c | 8 ++++---- bsp/stm3210/stm32_eth.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bsp/stm3210/enc28j60.c b/bsp/stm3210/enc28j60.c index 245cd21dc..51b18a6b4 100644 --- a/bsp/stm3210/enc28j60.c +++ b/bsp/stm3210/enc28j60.c @@ -751,12 +751,12 @@ void rt_hw_enc28j60_init() enc28j60_dev_entry.parent.eth_tx = enc28j60_tx; /* 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[2] = 0x6c; - enc28j60_dev_entry.dev_addr[3] = 0xa2; - enc28j60_dev_entry.dev_addr[4] = 0x45; - enc28j60_dev_entry.dev_addr[5] = 0x5e; + enc28j60_dev_entry.dev_addr[3] = 0x11; + enc28j60_dev_entry.dev_addr[4] = 0x22; + enc28j60_dev_entry.dev_addr[5] = 0x33; rt_sem_init(&lock_sem, "lock", 1, RT_IPC_FLAG_FIFO); diff --git a/bsp/stm3210/stm32_eth.c b/bsp/stm3210/stm32_eth.c index aee5ba9c4..de04b998c 100644 --- a/bsp/stm3210/stm32_eth.c +++ b/bsp/stm3210/stm32_eth.c @@ -3558,12 +3558,12 @@ void rt_hw_stm32_eth_init() GPIO_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[2] = 0x6E; stm32_eth_device.dev_addr[3] = 0x11; - stm32_eth_device.dev_addr[4] = 0x02; - stm32_eth_device.dev_addr[5] = 0x0F; + stm32_eth_device.dev_addr[4] = 0x22; + stm32_eth_device.dev_addr[5] = 0x33; stm32_eth_device.parent.parent.init = rt_stm32_eth_init; stm32_eth_device.parent.parent.open = rt_stm32_eth_open;