diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-15 19:44:09 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-15 19:44:09 +0000 |
commit | 5962467685985de2d79a85a1fcf8b1961d3d72de (patch) | |
tree | 5c788196a537443c252e27c06e07faf711d7e44a /boards/ST_STM8S_DISCOVERY | |
parent | b28de36fe95f0755d01a32c33e6f5faffb0af753 (diff) | |
download | ChibiOS-5962467685985de2d79a85a1fcf8b1961d3d72de.tar.gz ChibiOS-5962467685985de2d79a85a1fcf8b1961d3d72de.tar.bz2 ChibiOS-5962467685985de2d79a85a1fcf8b1961d3d72de.zip |
Added STM32VL-Discovery demo. Changes to all the board files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2370 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/ST_STM8S_DISCOVERY')
-rw-r--r-- | boards/ST_STM8S_DISCOVERY/board.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/boards/ST_STM8S_DISCOVERY/board.c b/boards/ST_STM8S_DISCOVERY/board.c index 201a2b239..0d41f79ff 100644 --- a/boards/ST_STM8S_DISCOVERY/board.c +++ b/boards/ST_STM8S_DISCOVERY/board.c @@ -20,6 +20,22 @@ #include "ch.h"
#include "hal.h"
+/**
+ * @brief PAL setup.
+ * @details Digital I/O ports static configuration as defined in @p board.h.
+ */
+ROMCONST PALConfig pal_default_config =
+{
+ {
+ {VAL_GPIOAODR, 0, VAL_GPIOADDR, VAL_GPIOACR1, VAL_GPIOACR2},
+ {VAL_GPIOBODR, 0, VAL_GPIOBDDR, VAL_GPIOBCR1, VAL_GPIOBCR2},
+ {VAL_GPIOCODR, 0, VAL_GPIOCDDR, VAL_GPIOCCR1, VAL_GPIOCCR2},
+ {VAL_GPIODODR, 0, VAL_GPIODDDR, VAL_GPIODCR1, VAL_GPIODCR2},
+ {VAL_GPIOEODR, 0, VAL_GPIOEDDR, VAL_GPIOECR1, VAL_GPIOECR2},
+ {VAL_GPIOFODR, 0, VAL_GPIOFDDR, VAL_GPIOFCR1, VAL_GPIOFCR2},
+ {VAL_GPIOGODR, 0, VAL_GPIOGDDR, VAL_GPIOGCR1, VAL_GPIOGCR2},
+};
+
/*
* TIM 2 clock after the prescaler.
*/
|