diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-07-18 16:30:39 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-07-18 16:30:39 +0000 |
commit | 4e24af72219edef168d5f1ce1fc95ae18c66b3cf (patch) | |
tree | 10cde0c988f9cc492549cf3384db8f2a8cd4a442 /demos | |
parent | 4849f800cf3ad6ba07ed785c5198d21917e63996 (diff) | |
download | ChibiOS-4e24af72219edef168d5f1ce1fc95ae18c66b3cf.tar.gz ChibiOS-4e24af72219edef168d5f1ce1fc95ae18c66b3cf.tar.bz2 ChibiOS-4e24af72219edef168d5f1ce1fc95ae18c66b3cf.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1068 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r-- | demos/ARMCM3-STM32F103-GCC/board.c | 9 | ||||
-rw-r--r-- | demos/ARMCM3-STM32F103-GCC/board.h | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/board.c b/demos/ARMCM3-STM32F103-GCC/board.c index 6cdedea2e..01831c7fd 100644 --- a/demos/ARMCM3-STM32F103-GCC/board.c +++ b/demos/ARMCM3-STM32F103-GCC/board.c @@ -34,7 +34,14 @@ static const STM32GPIOConfig config = {VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH},
{VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH},
{VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH},
- {VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH}
+ {VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH},
+#if !defined(STM32F10X_LD)
+ {VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH},
+#endif
+#if defined(STM32F10X_HD)
+ {VAL_GPIOFODR, VAL_GPIOFCRL, VAL_GPIOFCRH},
+ {VAL_GPIOGODR, VAL_GPIOGCRL, VAL_GPIOGCRH},
+#endif
};
/*
diff --git a/demos/ARMCM3-STM32F103-GCC/board.h b/demos/ARMCM3-STM32F103-GCC/board.h index c32b3d9da..f9364b02b 100644 --- a/demos/ARMCM3-STM32F103-GCC/board.h +++ b/demos/ARMCM3-STM32F103-GCC/board.h @@ -111,4 +111,8 @@ #define VAL_GPIODCRH 0x88888888
#define VAL_GPIODODR 0xFFFFFFFF
+#define VAL_GPIOECRL 0x88888888
+#define VAL_GPIOECRH 0x88888888
+#define VAL_GPIOEODR 0xFFFFFFFF
+
#endif /* _BOARD_H_ */
|