diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-22 14:58:08 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-22 14:58:08 +0000 |
commit | 17995cff3b841f5609311d7b43ab059757af3625 (patch) | |
tree | 1086e0a4d63456b8c70689e0e4684bf082f47c66 /os | |
parent | bd89c86c0654c22413144e174bd9e04327efdc81 (diff) | |
download | ChibiOS-17995cff3b841f5609311d7b43ab059757af3625.tar.gz ChibiOS-17995cff3b841f5609311d7b43ab059757af3625.tar.bz2 ChibiOS-17995cff3b841f5609311d7b43ab059757af3625.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7794 35acf78f-673a-0410-8e92-d51de3d6d3f4
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
|