aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F0xx
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/STM32F0xx')
-rw-r--r--os/hal/ports/STM32/STM32F0xx/stm32_registry.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h
index 1dbfefc62..19607550c 100644
--- a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h
@@ -192,7 +192,12 @@
#define STM32_HAS_USART6 FALSE
/* USB attributes.*/
+#if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F072xB) || \
+ defined(STM32F078xx)
+#define STM32_HAS_USB TRUE
+#else
#define STM32_HAS_USB FALSE
+#endif
#define STM32_HAS_OTG1 FALSE
#define STM32_HAS_OTG2 FALSE