SAMV7: Add a sneak internal interface that will allow us to set the MAC address before NSH even starts

This commit is contained in:
Gregory Nutt 2015-03-18 17:23:40 -06:00
parent 8e2c27f4d5
commit 547a2aea5a

View File

@ -225,9 +225,14 @@ int sam_emac0_setmac(void)
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
/* Now configure the EMAC driver to use this MAC address */
#warning Missing logic
return OK;
ret = sam_emac_setmacaddr(EMAC0_INTF, mac);
if (ret < 0)
{
ndbg("ERROR: Failed to set MAC address: %d\n", ret);
}
return ret;
}
#else
# define sam_emac0_setmac()