diff --git a/include/libopencm3/usb/dwc/otg_fs.h b/include/libopencm3/usb/dwc/otg_fs.h index 4510a849..b947774c 100644 --- a/include/libopencm3/usb/dwc/otg_fs.h +++ b/include/libopencm3/usb/dwc/otg_fs.h @@ -28,7 +28,7 @@ #include /* Memory map is required for USB_OTG_FS_BASE address */ -#if defined(STM32F1) || defined(STM32F2) || defined(STM32F4) || defined(STM32L4) +#if defined(STM32F1) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7) || defined(STM32L4) # include #elif defined(EFM32HG) # include diff --git a/include/libopencm3/usb/dwc/otg_hs.h b/include/libopencm3/usb/dwc/otg_hs.h index 7b5124cd..eee8a7e6 100644 --- a/include/libopencm3/usb/dwc/otg_hs.h +++ b/include/libopencm3/usb/dwc/otg_hs.h @@ -28,7 +28,7 @@ #include /* Memory map is required for USB_OTG_HS_BASE address */ -#if defined(STM32F2) || defined(STM32F4) +#if defined(STM32F2) || defined(STM32F4) || defined(STM32F7) # include #else # error "device family not supported by dwc/otg_hs." diff --git a/lib/stm32/f7/Makefile b/lib/stm32/f7/Makefile index 30c6c44b..30178f9b 100644 --- a/lib/stm32/f7/Makefile +++ b/lib/stm32/f7/Makefile @@ -66,6 +66,9 @@ OBJS += usart_common_all.o usart_common_v2.o # Ethernet OBJS += mac.o phy.o mac_stm32fxx7.o phy_ksz80x1.o +OBJS += usb.o usb_standard.o usb_control.o usb_dwc_common.o \ + usb_f107.o usb_f207.o usb_msc.o + VPATH += ../../usb:../:../../cm3:../common VPATH += ../../ethernet