From bd8e7b55eb9200bfc8660f066ddd8b9b0d455c29 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 2 Aug 2015 07:24:10 +0000 Subject: Fixed bug #623. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8141 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F0xx/stm32_registry.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'os/hal/ports') 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 -- cgit v1.2.3