usb: stm32fx07 -> usb_dwc_common

The stm32fx07 is common DesignWare IP, used in both STM32 and EFM32 chips.
Rename the files to make this more clear, and easier to use in other
targets.
This commit is contained in:
Sebastian Holzapfel
2018-02-13 08:33:03 +11:00
committed by Karl Palsson
parent 3c855e75d1
commit a2ee90fbfe
10 changed files with 86 additions and 71 deletions

View File

@@ -19,12 +19,12 @@
/*
* This file is intended to be included by either otg_hs.h or otg_fs.h
* Contains common definitions of Command and Status Registers (CSR) and their
* bit definitions.
* It contains register definitions common to chips using DesignWare
* USB OTG controllers, including STM32 and EFM32
*/
#ifndef LIBOPENCM3_OTG_COMMON_H
#define LIBOPENCM3_OTG_COMMON_H
#ifndef LIBOPENCM3_USB_DWC_OTG_COMMON_H
#define LIBOPENCM3_USB_DWC_OTG_COMMON_H
/* Core Global Control and Status Registers */
#define OTG_GOTGCTL 0x000

View File

@@ -18,16 +18,23 @@
*/
/*
* This file covers definitions for the USB OTG FS peripheral.
* This is the USB core included in the F105, F107, F2, F4 devices
* This file covers definitions for DesignWare USB OTG HS peripherals.
*/
#ifndef LIBOPENCM3_OTG_FS_H
#define LIBOPENCM3_OTG_FS_H
#ifndef LIBOPENCM3_USB_DWC_OTG_FS_H
#define LIBOPENCM3_USB_DWC_OTG_FS_H
#include <libopencm3/cm3/common.h>
#include <libopencm3/stm32/memorymap.h>
#include <libopencm3/stm32/otg_common.h>
#include <libopencm3/usb/dwc/otg_common.h>
/* Memory map is required for USB_OTG_FS_BASE address */
#if defined(STM32F1) || defined(STM32F2) || defined(STM32F4)
# include <libopencm3/stm32/memorymap.h>
#elif defined(EFM32HG)
# include <libopencm3/efm32/memorymap.h>
#else
# error "device family not supported by dwc/otg_fs."
#endif
/***********************************************************************/

View File

@@ -17,12 +17,22 @@
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBOPENCM3_OTG_HS_H
#define LIBOPENCM3_OTG_HS_H
/*
* This file covers definitions for DesignWare USB OTG HS peripherals.
*/
#ifndef LIBOPENCM3_USB_DWC_OTG_HS_H
#define LIBOPENCM3_USB_DWC_OTG_HS_H
#include <libopencm3/cm3/common.h>
#include <libopencm3/stm32/memorymap.h>
#include <libopencm3/stm32/otg_common.h>
#include <libopencm3/usb/dwc/otg_common.h>
/* Memory map is required for USB_OTG_HS_BASE address */
#if defined(STM32F2) || defined(STM32F4)
# include <libopencm3/stm32/memorymap.h>
#else
# error "device family not supported by dwc/otg_hs."
#endif
/* OTG_HS specific registers */