Jun Furutani / libMiMic

Fork of libMiMic by Ryo Iizuka

core/driver/uip/EthDev.cpp

Committer:
nyatla
Date:
2013-03-25
Revision:
1:9f6a78395432
Parent:
driver/uip/EthDev.cpp@ 0:142ee8b12fef

File content as of revision 1:9f6a78395432:

#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;
}