Jun Furutani / libMiMic

Fork of libMiMic by Ryo Iizuka

driver/uip/EthDev.cpp

Committer:
nyatla
Date:
2013-01-30
Revision:
0:142ee8b12fef

File content as of revision 0:142ee8b12fef:

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