From c07a1291f43fb1fb05d1b9f126fbc70e976e587f Mon Sep 17 00:00:00 2001 From: Roger Wolff Date: Sun, 25 May 2014 21:28:05 +0200 Subject: [PATCH] usb/stm32 added NOVBUSSENS bit definitions --- include/libopencm3/stm32/otg_fs.h | 3 +++ 1 file changed, 3 insertions(+) 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)