stm32f7: added USB OTG FS/HS
Originally tracked at https://github.com/libopencm3/libopencm3/pull/958 While it doesn't work for everyone, this is clearly the basic first steps required for any progress to be made. Reviewed-by: Karl Palsson <karlp@tweak.net.au>
This commit is contained in:
committed by
Karl Palsson
parent
5d393b17a3
commit
c49b4d35c2
@@ -28,7 +28,7 @@
|
||||
#include <libopencm3/usb/dwc/otg_common.h>
|
||||
|
||||
/* 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 <libopencm3/stm32/memorymap.h>
|
||||
#elif defined(EFM32HG)
|
||||
# include <libopencm3/efm32/memorymap.h>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <libopencm3/usb/dwc/otg_common.h>
|
||||
|
||||
/* Memory map is required for USB_OTG_HS_BASE address */
|
||||
#if defined(STM32F2) || defined(STM32F4)
|
||||
#if defined(STM32F2) || defined(STM32F4) || defined(STM32F7)
|
||||
# include <libopencm3/stm32/memorymap.h>
|
||||
#else
|
||||
# error "device family not supported by dwc/otg_hs."
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user