diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-12 15:42:54 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-12 15:42:54 +0000 |
commit | 67e80419b7acb17801c0cff68632a99450dc393a (patch) | |
tree | 213594a1c8b1f8ebfc4eb5967652218d4e92090d /os/hal/platforms/STM32/stm32.h | |
parent | 3fb6b81233fb90c2b6330b872f34fc67eadd78d7 (diff) | |
download | ChibiOS-67e80419b7acb17801c0cff68632a99450dc393a.tar.gz ChibiOS-67e80419b7acb17801c0cff68632a99450dc393a.tar.bz2 ChibiOS-67e80419b7acb17801c0cff68632a99450dc393a.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6140 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/stm32.h')
-rw-r--r-- | os/hal/platforms/STM32/stm32.h | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index 67dcd6eb2..eb8ea8140 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -42,16 +42,19 @@ #ifndef _STM32_H_
#define _STM32_H_
-#if defined(STM32F0XX)
-#include "stm32f0xx.h"
-#elif defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \
- defined(STM32F10X_HD_VL) || defined(STM32F10X_LD) || \
- defined(STM32F10X_MD) || defined(STM32F10X_HD) || \
- defined(STM32F10X_XL) || defined(STM32F10X_CL) || \
- defined(__DOXYGEN__)
+#if defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \
+ defined(STM32F10X_HD_VL) || defined(STM32F10X_LD) || \
+ defined(STM32F10X_MD) || defined(STM32F10X_HD) || \
+ defined(STM32F10X_XL) || defined(STM32F10X_CL) || \
+ defined(__DOXYGEN__)
#include "stm32f10x.h"
+#else /* !STM32F1XX_XX */
+
+#if defined(STM32F0XX)
+#include "stm32f0xx.h"
+
#elif defined(STM32F2XX)
#include "stm32f2xx.h"
@@ -71,6 +74,23 @@ #error "STM32 device not specified"
#endif
+/* Discarded definitions from the ST headers, the PAL driver uses its own
+ definitions in order to have an unified handling for all devices.
+ Unfortunately the ST headers have no uniform definitions for the same
+ objects across the various sub-families.*/
+#undef GPIOA
+#undef GPIOB
+#undef GPIOC
+#undef GPIOD
+#undef GPIOE
+#undef GPIOF
+#undef GPIOG
+#undef GPIOH
+#undef GPIOI
+
+#endif /* !STM32F1XX_XX */
+
+
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
|