Allow STM32F7 targets without Ethernet

pull/15153/head
bakatrouble 2021-10-28 19:14:17 +03:00
parent 84e0d5d785
commit e33088583e
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#include "stm32f7xx_hal.h"
#if defined ETH
void _eth_config_mac(ETH_HandleTypeDef *heth)
{
ETH_MACInitTypeDef macconf = {
@ -59,3 +61,5 @@ void _eth_config_mac(ETH_HandleTypeDef *heth)
(void) HAL_ETH_ConfigMAC(heth, &macconf);
}
#endif // defined ETH