Jun Furutani / libMiMic

Fork of libMiMic by Ryo Iizuka

core/driver/uip/EthDev.c

Committer:
nyatla
Date:
2013-04-20
Revision:
12:efe841863fc8
Parent:
core/driver/uip/EthDev.cpp@ 1:9f6a78395432

File content as of revision 12:efe841863fc8:

#include "EthDev.h"
#include "EtherDev_DP83848C_protected.h"
#include "EtherDev_LAN8720_protected.h"



const struct TiEthernetDevice* getEthernetDevicePnP(void)
{
    const struct TiEthernetDevice* ret;
    if(EthDev_LAN8720_getInterface(&ret)){
        return ret;
    }
    if(EthDev_DP83848C_getInterface(&ret)){
        return ret;
    }
    return NULL;
}