aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-10-01 12:26:11 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-10-01 12:26:11 +0000
commit2acabf55f6ca9d992803b629157b971358fb76f6 (patch)
tree7a92ab866fa399f1d0da0d7c863f5edb6eb6a1e1 /os/hal
parent422c00db0343feee328b00bfe0b5cf971ed752df (diff)
downloadChibiOS-2acabf55f6ca9d992803b629157b971358fb76f6.tar.gz
ChibiOS-2acabf55f6ca9d992803b629157b971358fb76f6.tar.bz2
ChibiOS-2acabf55f6ca9d992803b629157b971358fb76f6.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6340 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/STM32/GPIOv2/pal_lld.c2
-rw-r--r--os/hal/ports/STM32/stm32.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/ports/STM32/GPIOv2/pal_lld.c b/os/hal/ports/STM32/GPIOv2/pal_lld.c
index 017b340a0..48290ae9c 100644
--- a/os/hal/ports/STM32/GPIOv2/pal_lld.c
+++ b/os/hal/ports/STM32/GPIOv2/pal_lld.c
@@ -35,7 +35,7 @@
RCC_AHBENR_GPIOCEN | RCC_AHBENR_GPIODEN | \
RCC_AHBENR_GPIOEEN | RCC_AHBENR_GPIOHEN)
#define AHB_LPEN_MASK AHB_EN_MASK
-#elif defined(STM32F0XX)
+#elif defined(STM32F0XX_LD) || defined(STM32F0XX_MD)
#define AHB_EN_MASK (RCC_AHBENR_GPIOAEN | RCC_AHBENR_GPIOBEN | \
RCC_AHBENR_GPIOCEN | RCC_AHBENR_GPIODEN | \
RCC_AHBENR_GPIOFEN)
diff --git a/os/hal/ports/STM32/stm32.h b/os/hal/ports/STM32/stm32.h
index eb8ea8140..1b8b8392a 100644
--- a/os/hal/ports/STM32/stm32.h
+++ b/os/hal/ports/STM32/stm32.h
@@ -52,7 +52,7 @@
#else /* !STM32F1XX_XX */
-#if defined(STM32F0XX)
+#if defined(STM32F0XX_LD) || defined(STM32F0XX_MD)
#include "stm32f0xx.h"
#elif defined(STM32F2XX)
@@ -64,7 +64,7 @@
#elif defined(STM32F37X)
#include "stm32f37x.h"
-#elif defined(STM32F4XX)
+#elif defined(STM32F40XX) || defined(STM32F42XX)
#include "stm32f4xx.h"
#elif defined(STM32L1XX_MD)