From 67b538a5407bc517fa788249fe1a1c0cfd186cbf Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Sun, 25 May 2014 19:53:19 +0000 Subject: [PATCH] usb/stm32: Add top level commentary for scope Remove some unncessary commentary and fixed bit fields introduced earlier via insufficient review. --- include/libopencm3/stm32/otg_fs.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/libopencm3/stm32/otg_fs.h b/include/libopencm3/stm32/otg_fs.h index 93b451c5..29a5a3fa 100644 --- a/include/libopencm3/stm32/otg_fs.h +++ b/include/libopencm3/stm32/otg_fs.h @@ -17,6 +17,11 @@ * along with this library. If not, see . */ +/* + * This file covers definitions for the USB OTG FS peripheral. + * This is the USB core included in the F105, F107, F2, F4 devices + */ + #ifndef LIBOPENCM3_OTG_FS_H #define LIBOPENCM3_OTG_FS_H @@ -213,9 +218,7 @@ #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 */ +/* Bits 31:22 - Reserved */ #define OTG_FS_GCCFG_NOVBUSSENS (1 << 21) #define OTG_FS_GCCFG_SOFOUTEN (1 << 20) #define OTG_FS_GCCFG_VBUSBSEN (1 << 19)