stm32l4: enable USB OTG driver
This commit is contained in:
@@ -106,6 +106,7 @@
|
||||
#define GPIO_PORT_H_BASE (PERIPH_BASE_AHB2 + 0x1c00)
|
||||
/* Still AHB2, good job ST */
|
||||
#define OTG_FS_BASE (0x50000000U + 0x00000)
|
||||
#define USB_OTG_FS_BASE OTG_FS_BASE
|
||||
#define ADC1_BASE (0x50000000U + 0x40000)
|
||||
#define AES_BASE (0x50000000U + 0x60000)
|
||||
#define RNG_BASE (0x50000000U + 0x60800)
|
||||
|
||||
@@ -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)
|
||||
#if defined(STM32F1) || defined(STM32F2) || defined(STM32F4) || defined(STM32L4)
|
||||
# include <libopencm3/stm32/memorymap.h>
|
||||
#elif defined(EFM32HG)
|
||||
# include <libopencm3/efm32/memorymap.h>
|
||||
|
||||
Reference in New Issue
Block a user