mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 21:18:23 +00:00
SAMV7: Add a sneak internal interface that will allow us to set the MAC address before NSH even starts
This commit is contained in:
parent
8e2c27f4d5
commit
547a2aea5a
1 changed files with 7 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue