Minor cleanup of usb. Template driver for STM32F107 added.

This commit is contained in:
Gareth McMullin
2011-02-10 19:58:51 +13:00
parent dfa9145a34
commit e64a9d2bf9
7 changed files with 177 additions and 13 deletions

View File

@@ -21,7 +21,7 @@
#define LIBOPENCM3_OTG_FS_H
#include <libopencm3/stm32/memorymap.h>
#include <libopencm3/common.h>
#include <libopencm3/cm3/common.h>
/* Core Global Control and Status Registers */
#define OTG_FS_OTGCTL MMIO32(USB_OTG_FS_BASE + 0x000)

View File

@@ -24,6 +24,7 @@
typedef struct _usbd_driver usbd_driver;
extern const usbd_driver stm32f103_usb_driver;
extern const usbd_driver stm32f107_usb_driver;
/* Static buffer for control transactions:
* This is defined as weak in the library, applicaiton