aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/USBHv1/hal_stm32_otg.h
diff options
context:
space:
mode:
authorNicolas Reinecke <nr@das-labor.org>2016-11-14 01:33:46 +0100
committerNicolas Reinecke <nr@das-labor.org>2016-12-05 11:37:44 +0100
commit580af16b82c465835801102fe1879f7fffa3296a (patch)
treee543353b6d887ef713c6dd17a2858a8acfe5f8ae /os/hal/ports/STM32/LLD/USBHv1/hal_stm32_otg.h
parentde0c3e70c689cb8861497c245904ab10001e0721 (diff)
downloadChibiOS-Contrib-580af16b82c465835801102fe1879f7fffa3296a.tar.gz
ChibiOS-Contrib-580af16b82c465835801102fe1879f7fffa3296a.tar.bz2
ChibiOS-Contrib-580af16b82c465835801102fe1879f7fffa3296a.zip
usbh: add otg stepping 2 code
Diffstat (limited to 'os/hal/ports/STM32/LLD/USBHv1/hal_stm32_otg.h')
-rw-r--r--os/hal/ports/STM32/LLD/USBHv1/hal_stm32_otg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/USBHv1/hal_stm32_otg.h b/os/hal/ports/STM32/LLD/USBHv1/hal_stm32_otg.h
index a0594a3..3322e51 100644
--- a/os/hal/ports/STM32/LLD/USBHv1/hal_stm32_otg.h
+++ b/os/hal/ports/STM32/LLD/USBHv1/hal_stm32_otg.h
@@ -430,12 +430,16 @@ typedef struct {
* @name GCCFG register bit definitions
* @{
*/
+/* Definitions for stepping 1.*/
#define GCCFG_NOVBUSSENS (1U<<21) /**< VBUS sensing disable. */
#define GCCFG_SOFOUTEN (1U<<20) /**< SOF output enable. */
#define GCCFG_VBUSBSEN (1U<<19) /**< Enable the VBUS sensing "B"
device. */
#define GCCFG_VBUSASEN (1U<<18) /**< Enable the VBUS sensing "A"
device. */
+
+/* Definitions for stepping 2.*/
+#define GCCFG_VBDEN (1U<<21) /**< VBUS sensing enable. */
#define GCCFG_PWRDWN (1U<<16) /**< Power down. */
/** @} */