Skip to content

Commit 33732c3

Browse files
bakatroublehallard
authored andcommitted
Allow STM32F7 targets without Ethernet
1 parent e5dcd7e commit 33732c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

connectivity/drivers/emac/TARGET_STM/TARGET_STM32F7/stm32f7_eth_conf.c

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
#include "stm32f7xx_hal.h"
1919

20+
#if defined ETH
21+
2022
void _eth_config_mac(ETH_HandleTypeDef *heth)
2123
{
2224
ETH_MACInitTypeDef macconf = {
@@ -59,3 +61,5 @@ void _eth_config_mac(ETH_HandleTypeDef *heth)
5961

6062
(void) HAL_ETH_ConfigMAC(heth, &macconf);
6163
}
64+
65+
#endif // defined ETH

0 commit comments

Comments
 (0)