diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/STM32/STM32F0xx/stm32_registry.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h index 72d5a303d..9867a908b 100644 --- a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h @@ -192,8 +192,7 @@ #define STM32_HAS_USART6 FALSE
/* USB attributes.*/
-#if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F072xB) || \
- defined(STM32F078xx)
+#if defined(STM32F072xB) || defined(STM32F078xx)
#define STM32_HAS_USB TRUE
#define STM32_USB_ACCESS_SCHEME_2x16 TRUE
#define STM32_USB_PMA_SIZE 768
@@ -327,7 +326,15 @@ #define STM32_HAS_USART6 FALSE
/* USB attributes.*/
+/* USB attributes.*/
+#if defined(STM32F042x6) || defined(STM32F048xx)
+#define STM32_HAS_USB TRUE
+#define STM32_USB_ACCESS_SCHEME_2x16 TRUE
+#define STM32_USB_PMA_SIZE 768
+#define STM32_USB_HAS_BCDR TRUE
+#else
#define STM32_HAS_USB FALSE
+#endif
#define STM32_HAS_OTG1 FALSE
#define STM32_HAS_OTG2 FALSE
|