1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/stm32/eth: luid_get_eui48 match type information

changed type of hwaddr to eui48
moved hwaddr declaration  where it is needed
This commit is contained in:
Karl Fessel 2020-01-29 16:58:36 +01:00
parent 7483826356
commit b4b9ffe362

View File

@ -170,7 +170,6 @@ static void _init_buffer(void)
int stm32_eth_init(void)
{
char hwaddr[ETHERNET_ADDR_LEN];
/* enable APB2 clock */
RCC->APB2ENR |= RCC_APB2ENR_SYSCFGEN;
@ -226,8 +225,9 @@ int stm32_eth_init(void)
stm32_eth_set_mac(eth_config.mac);
}
else {
luid_get_eui48(hwaddr);
stm32_eth_set_mac(hwaddr);
eui48_t hwaddr;
luid_get_eui48(&hwaddr);
stm32_eth_set_mac((const char *)hwaddr.uint8);
}
_init_buffer();