From 92845bc50898974b87de9a8362f9d49116efd166 Mon Sep 17 00:00:00 2001 From: Oliver Meier Date: Mon, 21 Dec 2015 10:59:32 +0100 Subject: [PATCH] stm32: usb-otg: added missing GOTGINT definitions. --- include/libopencm3/stm32/otg_common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/libopencm3/stm32/otg_common.h b/include/libopencm3/stm32/otg_common.h index 87e286df..eeabbe9e 100644 --- a/include/libopencm3/stm32/otg_common.h +++ b/include/libopencm3/stm32/otg_common.h @@ -102,6 +102,14 @@ #define OTG_GOTGCTL_SRQ (1 << 1) #define OTG_GOTGCTL_SRQSCS (1 << 0) +/* OTG USB control registers (OTG_GOTGINT) */ +#define OTG_GOTGINT_DBCDNE (1 << 19) +#define OTG_GOTGINT_ADTOCHG (1 << 18) +#define OTG_GOTGINT_HNGDET (1 << 17) +#define OTG_GOTGINT_HNSSCHG (1 << 9) +#define OTG_GOTGINT_SRSSCHG (1 << 8) +#define OTG_GOTGINT_SEDET (1 << 2) + /* OTG AHB configuration register (OTG_GAHBCFG) */ #define OTG_GAHBCFG_GINT 0x0001 #define OTG_GAHBCFG_TXFELVL 0x0080