aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/hal_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-14 13:29:09 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-14 13:29:09 +0000
commit7ab0cff418bf49fcf1671dd72667b81a85c1ac37 (patch)
tree9527dc092b8fc59f733b2a0353d579ceec8a72ff /os/hal/platforms/STM32/hal_lld.c
parentbf8592688860a61181b3f5a4c9b6d4d8856b8abb (diff)
downloadChibiOS-7ab0cff418bf49fcf1671dd72667b81a85c1ac37.tar.gz
ChibiOS-7ab0cff418bf49fcf1671dd72667b81a85c1ac37.tar.bz2
ChibiOS-7ab0cff418bf49fcf1671dd72667b81a85c1ac37.zip
Improved STM32 HAL support.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2363 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/hal_lld.c')
-rw-r--r--os/hal/platforms/STM32/hal_lld.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32/hal_lld.c b/os/hal/platforms/STM32/hal_lld.c
index a46a5c65f..8cd9c289f 100644
--- a/os/hal/platforms/STM32/hal_lld.c
+++ b/os/hal/platforms/STM32/hal_lld.c
@@ -48,13 +48,15 @@ const PALConfig pal_default_config =
{VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH},
{VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH},
{VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH},
-#if !defined(STM32F10X_LD)
+#if STM32_HAS_GPIOE || defined(__DOXYGEN__)
{VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH},
-#endif
-#if defined(STM32F10X_HD)
+#if STM32_HAS_GPIOF || defined(__DOXYGEN__)
{VAL_GPIOFODR, VAL_GPIOFCRL, VAL_GPIOFCRH},
+#if STM32_HAS_GPIOG || defined(__DOXYGEN__)
{VAL_GPIOGODR, VAL_GPIOGCRL, VAL_GPIOGCRH},
#endif
+#endif
+#endif
};
/*===========================================================================*/