aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F0xx
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-08-02 07:24:10 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-08-02 07:24:10 +0000
commitbd8e7b55eb9200bfc8660f066ddd8b9b0d455c29 (patch)
tree668edaf01c4937c06d9af4aa9fc176e864de09ee /os/hal/ports/STM32/STM32F0xx
parente75d8355a2376055fee414ef1786cb7dad4edc33 (diff)
downloadChibiOS-bd8e7b55eb9200bfc8660f066ddd8b9b0d455c29.tar.gz
ChibiOS-bd8e7b55eb9200bfc8660f066ddd8b9b0d455c29.tar.bz2
ChibiOS-bd8e7b55eb9200bfc8660f066ddd8b9b0d455c29.zip
Fixed bug #623.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8141 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F0xx')
-rw-r--r--os/hal/ports/STM32/STM32F0xx/stm32_registry.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h
index 6cad2dff0..088d56d59 100644
--- a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h
@@ -1074,17 +1074,28 @@
#define STM32_HAS_GPIOA TRUE
#define STM32_HAS_GPIOB TRUE
#define STM32_HAS_GPIOC TRUE
+#if defined(STM32F030x8)
#define STM32_HAS_GPIOD TRUE
+#else
+#define STM32_HAS_GPIOD FALSE
+#endif
#define STM32_HAS_GPIOE FALSE
#define STM32_HAS_GPIOF TRUE
#define STM32_HAS_GPIOG FALSE
#define STM32_HAS_GPIOH FALSE
#define STM32_HAS_GPIOI FALSE
+#if defined(STM32F030x8)
#define STM32_GPIO_EN_MASK (RCC_AHBENR_GPIOAEN | \
RCC_AHBENR_GPIOBEN | \
RCC_AHBENR_GPIOCEN | \
RCC_AHBENR_GPIODEN | \
RCC_AHBENR_GPIOFEN)
+#else
+#define STM32_GPIO_EN_MASK (RCC_AHBENR_GPIOAEN | \
+ RCC_AHBENR_GPIOBEN | \
+ RCC_AHBENR_GPIOCEN | \
+ RCC_AHBENR_GPIOFEN)
+#endif
/* I2C attributes.*/
#define STM32_HAS_I2C1 TRUE