Minor: memcpy -> MEMCPY / SMEMCPY

This commit is contained in:
Dirk Ziegelmeier
2016-08-30 21:51:05 +02:00
parent a08ed9148d
commit 9078f31544
8 changed files with 26 additions and 26 deletions

View File

@@ -54,7 +54,7 @@ static err_t netif_init(struct netif *netif)
netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET | NETIF_FLAG_IGMP;
MIB2_INIT_NETIF(netif, snmp_ifType_ethernet_csmacd, 100000000);
memcpy(netif->hwaddr, your_mac_address_goes_here, sizeof(netif->hwaddr));
SMEMCPY(netif->hwaddr, your_mac_address_goes_here, sizeof(netif->hwaddr));
netif->hwaddr_len = sizeof(netif->hwaddr);
return ERR_OK;