Browse Source

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>
pull/1274/head
Matthew Lai 6 years ago
committed by Karl Palsson
parent
commit
c49b4d35c2
  1. 2
      include/libopencm3/usb/dwc/otg_fs.h
  2. 2
      include/libopencm3/usb/dwc/otg_hs.h
  3. 3
      lib/stm32/f7/Makefile

2
include/libopencm3/usb/dwc/otg_fs.h

@ -28,7 +28,7 @@
#include <libopencm3/usb/dwc/otg_common.h> #include <libopencm3/usb/dwc/otg_common.h>
/* Memory map is required for USB_OTG_FS_BASE address */ /* 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> # include <libopencm3/stm32/memorymap.h>
#elif defined(EFM32HG) #elif defined(EFM32HG)
# include <libopencm3/efm32/memorymap.h> # include <libopencm3/efm32/memorymap.h>

2
include/libopencm3/usb/dwc/otg_hs.h

@ -28,7 +28,7 @@
#include <libopencm3/usb/dwc/otg_common.h> #include <libopencm3/usb/dwc/otg_common.h>
/* Memory map is required for USB_OTG_HS_BASE address */ /* 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> # include <libopencm3/stm32/memorymap.h>
#else #else
# error "device family not supported by dwc/otg_hs." # error "device family not supported by dwc/otg_hs."

3
lib/stm32/f7/Makefile

@ -66,6 +66,9 @@ OBJS += usart_common_all.o usart_common_v2.o
# Ethernet # Ethernet
OBJS += mac.o phy.o mac_stm32fxx7.o phy_ksz80x1.o 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 += ../../usb:../:../../cm3:../common
VPATH += ../../ethernet VPATH += ../../ethernet

Loading…
Cancel
Save