Add C5471 ethernet driver debug instrumentation

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@425 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2007-12-04 23:24:26 +00:00
parent c3b6c26c1b
commit 13505c52fc
10 changed files with 93 additions and 24 deletions
+16
View File
@@ -41,6 +41,7 @@
#include <stdio.h>
#include <debug.h>
#include <net/if.h>
#include <net/uip/uip.h>
#include <net/uip/uip-lib.h>
@@ -78,6 +79,21 @@ void user_initialize(void)
int user_start(int argc, char *argv[])
{
struct in_addr addr;
#if defined(CONFIG_EXAMPLE_NETTEST_NOMAC)
uint8 mac[IFHWADDRLEN];
#endif
/* Many embedded network interfaces must have a software assigned MAC */
#ifdef CONFIG_EXAMPLE_NETTEST_NOMAC
mac[0] = 0x00;
mac[1] = 0xe0;
mac[2] = 0xb0;
mac[3] = 0x0b;
mac[4] = 0xba;
mac[5] = 0xbe;
uip_setmacaddr("eth0", mac);
#endif
/* Set up our host address */