This commit is contained in:
root 2011-06-20 19:08:04 +02:00
parent c9ce3513dd
commit 420647bebd

View file

@ -814,7 +814,7 @@ err_t mmnif_init(struct netif* netif)
static int num = 0;
uint16_t speed = 4000;
DEBUGPRINTF("BBBBBBBB INIT BBBBBBB");
DEBUGPRINTF("MEIN CODE IST NICHT SCHULDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
/* Alloc and clear memory for the device struct
*/
@ -1187,9 +1187,6 @@ int mmnif_open()
#else
mmnif_dev = kmalloc(sizeof(struct netif));
#endif
DEBUGPRINTF("CDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDc");
/* register our Memory Mapped Virtual IP interface in the lwip stack
* and tell him how to use the interface:
* - mmnif_dev : the device data storage
@ -1207,6 +1204,8 @@ int mmnif_open()
return -1;
}
DEBUGPRINTF("HIER KOMM ICH NICHT AN!!!!");
/* set our network interface to the default interface for lwip*/
netif_set_default(mmnif_dev);
/* tell lwip all initialization is done and we want to set it ab*/