Compare commits
2 Commits
99c90d1740
...
3d9a527b07
Author | SHA1 | Date |
---|---|---|
|
3d9a527b07 | |
|
9a4b15f193 |
|
@ -2,7 +2,7 @@
|
||||||
/**
|
/**
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* File Name : ethernetif.c
|
* File Name : ethernetif.c
|
||||||
* Description : This file provides code for the configuration
|
* @file ethernetif.c
|
||||||
* of the ethernetif.c MiddleWare.
|
* of the ethernetif.c MiddleWare.
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @attention
|
* @attention
|
||||||
|
@ -202,7 +202,10 @@ static void low_level_init(struct netif *netif)
|
||||||
heth.Init.RxBuffLen = 1536;
|
heth.Init.RxBuffLen = 1536;
|
||||||
|
|
||||||
/* USER CODE BEGIN MACADDRESS */
|
/* USER CODE BEGIN MACADDRESS */
|
||||||
|
MACAddr[3] = (uint8_t)HAL_GetUIDw0();
|
||||||
|
MACAddr[4] = (uint8_t)HAL_GetUIDw1();
|
||||||
|
MACAddr[5] = (uint8_t)HAL_GetUIDw2();
|
||||||
|
heth.Init.MACAddr = &MACAddr[0];
|
||||||
/* USER CODE END MACADDRESS */
|
/* USER CODE END MACADDRESS */
|
||||||
|
|
||||||
hal_eth_init_status = HAL_ETH_Init(&heth);
|
hal_eth_init_status = HAL_ETH_Init(&heth);
|
||||||
|
@ -312,7 +315,6 @@ static void low_level_init(struct netif *netif)
|
||||||
|
|
||||||
/* USER CODE END PHY_POST_CONFIG */
|
/* USER CODE END PHY_POST_CONFIG */
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -458,7 +460,6 @@ static err_t low_level_output_arp_off(struct netif *netif, struct pbuf *q, const
|
||||||
/* USER CODE END 5 */
|
/* USER CODE END 5 */
|
||||||
|
|
||||||
return errval;
|
return errval;
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif /* LWIP_ARP */
|
#endif /* LWIP_ARP */
|
||||||
|
|
||||||
|
@ -871,4 +872,3 @@ void HAL_ETH_TxFreeCallback(uint32_t * buff)
|
||||||
/* USER CODE BEGIN 8 */
|
/* USER CODE BEGIN 8 */
|
||||||
|
|
||||||
/* USER CODE END 8 */
|
/* USER CODE END 8 */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue