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/OLIMEX_SAM7_EX256 | |
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/OLIMEX_SAM7_EX256')
-rw-r--r-- | boards/OLIMEX_SAM7_EX256/board.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/boards/OLIMEX_SAM7_EX256/board.c b/boards/OLIMEX_SAM7_EX256/board.c index c918bda35..38c84fc1d 100644 --- a/boards/OLIMEX_SAM7_EX256/board.c +++ b/boards/OLIMEX_SAM7_EX256/board.c @@ -20,6 +20,20 @@ #include "ch.h"
#include "hal.h"
+/**
+ * @brief PAL setup.
+ * @details Digital I/O ports static configuration as defined in @p board.h.
+ * This variable is used by the HAL when initializing the PAL driver.
+ */
+const PALConfig pal_default_config =
+{
+ {VAL_PIOA_ODSR, VAL_PIOA_OSR, VAL_PIOA_PUSR},
+#if (SAM7_PLATFORM == SAM7X128) || (SAM7_PLATFORM == SAM7X256) || \
+ (SAM7_PLATFORM == SAM7X512)
+ {VAL_PIOB_ODSR, VAL_PIOB_OSR, VAL_PIOB_PUSR}
+#endif
+};
+
/*
* SYS IRQ handling here.
*/
|