From 75d508246ee169679c7371bcb0a8d516441731a3 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 14 Oct 2015 22:42:49 +0000 Subject: [PATCH] usb: otg: drop confusing invalid definitions GUSBCFG TRDT fields have very particular meanings, and the field should be set depending on your bus speed. There's no 8/16bit meaning in any current reference manual for this field. Fixes github issue #530 --- include/libopencm3/stm32/otg_common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/libopencm3/stm32/otg_common.h b/include/libopencm3/stm32/otg_common.h index f3d13300..7a2e39d5 100644 --- a/include/libopencm3/stm32/otg_common.h +++ b/include/libopencm3/stm32/otg_common.h @@ -112,8 +112,6 @@ #define OTG_GUSBCFG_SRPCAP 0x00000100 #define OTG_GUSBCFG_HNPCAP 0x00000200 #define OTG_GUSBCFG_TRDT_MASK (0xf << 10) -#define OTG_GUSBCFG_TRDT_16BIT (0x5 << 10) -#define OTG_GUSBCFG_TRDT_8BIT (0x9 << 10) #define OTG_GUSBCFG_NPTXRWEN 0x00004000 #define OTG_GUSBCFG_FHMOD 0x20000000 #define OTG_GUSBCFG_FDMOD 0x40000000