aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F0xx
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-10-16 07:31:15 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-10-16 07:31:15 +0000
commit0a6a80bb36e414fdd53aa5851ad71fe6fc968454 (patch)
tree0cce5a53cc6f42ffa90d25875fafdfe8e10b7946 /os/hal/ports/STM32/STM32F0xx
parent939489f06c92e2461e0d64c6b11dde4c1a601c7e (diff)
downloadChibiOS-0a6a80bb36e414fdd53aa5851ad71fe6fc968454.tar.gz
ChibiOS-0a6a80bb36e414fdd53aa5851ad71fe6fc968454.tar.bz2
ChibiOS-0a6a80bb36e414fdd53aa5851ad71fe6fc968454.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8366 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F0xx')
-rw-r--r--os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c4
-rw-r--r--os/hal/ports/STM32/STM32F0xx/stm32_registry.h9
2 files changed, 10 insertions, 3 deletions
diff --git a/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c b/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c
index 99fd15cf5..9a0e88f22 100644
--- a/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c
+++ b/os/hal/ports/STM32/STM32F0xx/ext_lld_isr.c
@@ -224,7 +224,7 @@ void ext_lld_exti_irq_enable(void) {
nvicEnableVector(EXTI0_1_IRQn, STM32_EXT_EXTI0_1_IRQ_PRIORITY);
nvicEnableVector(EXTI2_3_IRQn, STM32_EXT_EXTI2_3_IRQ_PRIORITY);
nvicEnableVector(EXTI4_15_IRQn, STM32_EXT_EXTI4_15_IRQ_PRIORITY);
-#if !defined(STM32F030)
+#if !defined(STM32F030) !defined(STM32F070)
nvicEnableVector(PVD_IRQn, STM32_EXT_EXTI16_IRQ_PRIORITY);
nvicEnableVector(ADC1_COMP_IRQn, STM32_EXT_EXTI21_22_IRQ_PRIORITY);
#endif
@@ -241,7 +241,7 @@ void ext_lld_exti_irq_disable(void) {
nvicDisableVector(EXTI0_1_IRQn);
nvicDisableVector(EXTI2_3_IRQn);
nvicDisableVector(EXTI4_15_IRQn);
-#if !defined(STM32F030)
+#if !defined(STM32F030) !defined(STM32F070)
nvicDisableVector(PVD_IRQn);
nvicDisableVector(ADC1_COMP_IRQn);
#endif
diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h
index b7bf099b1..9c76d2781 100644
--- a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h
@@ -1312,6 +1312,9 @@
/*===========================================================================*/
#elif defined(STM32F070x6) || defined(STM32F070xB)
+/* Common identifier of all STM32F070 devices.*/
+#define STM32F070
+
/* ADC attributes.*/
#define STM32_HAS_ADC1 TRUE
#define STM32_ADC_SUPPORTS_PRESCALER FALSE
@@ -1508,7 +1511,11 @@
#define STM32_HAS_UART8 FALSE
/* USB attributes.*/
-#define STM32_HAS_USB FALSE
+#define STM32_HAS_USB TRUE
+#define STM32_USB_ACCESS_SCHEME_2x16 TRUE
+#define STM32_USB_PMA_SIZE 768
+#define STM32_USB_HAS_BCDR TRUE
+
#define STM32_HAS_OTG1 FALSE
#define STM32_HAS_OTG2 FALSE