Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Wolff <R.E.Wolff@BitWizard.nl>2014-05-25 23:28:05 +0400
committerKarl Palsson <karlp@tweak.net.au>2014-05-25 23:45:52 +0400
commitc07a1291f43fb1fb05d1b9f126fbc70e976e587f (patch)
treea8ae7e846ae4c35aa371b8e0ae7931e6e674bf19
parent5c5c77d4dce877cfd913ce77be44c541ed69a9fb (diff)
usb/stm32 added NOVBUSSENS bit definitions
-rw-r--r--include/libopencm3/stm32/otg_fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/otg_fs.h b/include/libopencm3/stm32/otg_fs.h
index 887dcb93..93b451c5 100644
--- a/include/libopencm3/stm32/otg_fs.h
+++ b/include/libopencm3/stm32/otg_fs.h
@@ -213,7 +213,10 @@
#define OTG_FS_GRXSTSP_EPNUM_MASK (0xf << 0)
/* OTG_FS general core configuration register (OTG_FS_GCCFG) */
+/* This register exists on F4 and F1, not on F3.
+ F1 lacks the NOVBUSSENS bit */
/* Bits 31:21 - Reserved */
+#define OTG_FS_GCCFG_NOVBUSSENS (1 << 21)
#define OTG_FS_GCCFG_SOFOUTEN (1 << 20)
#define OTG_FS_GCCFG_VBUSBSEN (1 << 19)
#define OTG_FS_GCCFG_VBUSASEN (1 << 18)