aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F0xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-12-14 10:29:44 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-12-14 10:29:44 +0000
commited084725e90889534beb44573715c2c0b482a627 (patch)
treeaabc6c5e720ef38b9b865ff033d25a9abeb9f9a6 /os/hal/ports/STM32/STM32F0xx
parent51e52ffcf9cd4db7e629a112241ddd4960d22eb7 (diff)
downloadChibiOS-ed084725e90889534beb44573715c2c0b482a627.tar.gz
ChibiOS-ed084725e90889534beb44573715c2c0b482a627.tar.bz2
ChibiOS-ed084725e90889534beb44573715c2c0b482a627.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7586 35acf78f-673a-0410-8e92-d51de3d6d3f4
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