From 4fb67d891f0ceadc8640fe1bff36372c26191634 Mon Sep 17 00:00:00 2001 From: Ross Schlaikjer Date: Thu, 11 Apr 2019 11:06:18 -0400 Subject: [PATCH] stm32f7: enable existing ethernet libraries --- include/libopencm3/ethernet/mac.h | 2 ++ lib/stm32/f7/Makefile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/include/libopencm3/ethernet/mac.h b/include/libopencm3/ethernet/mac.h index b047e4db..b7887068 100644 --- a/include/libopencm3/ethernet/mac.h +++ b/include/libopencm3/ethernet/mac.h @@ -37,6 +37,8 @@ # include #elif defined(STM32F4) # include +#elif defined(STM32F7) +# include #else # error "stm32 family not defined." #endif diff --git a/lib/stm32/f7/Makefile b/lib/stm32/f7/Makefile index b8bb8751..e877749c 100644 --- a/lib/stm32/f7/Makefile +++ b/lib/stm32/f7/Makefile @@ -57,6 +57,9 @@ OBJS += spi_common_all.o spi_common_v2.o OBJS += timer_common_all.o OBJS += usart_common_all.o usart_common_v2.o +# Ethernet +OBJS += mac.o phy.o mac_stm32fxx7.o phy_ksz80x1.o + VPATH += ../../usb:../:../../cm3:../common VPATH += ../../ethernet