diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-09-21 14:55:10 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-09-21 14:55:10 +0000 |
commit | 12af66627696ae5f8191a7d07f4e9e991aeda4ac (patch) | |
tree | 909bb71f97afdcda21c2f6d5cd992b49b2f1af7d /boards | |
parent | cc73a2f3d97daeaf20b3817d3717d62e38dfeda0 (diff) | |
download | ChibiOS-12af66627696ae5f8191a7d07f4e9e991aeda4ac.tar.gz ChibiOS-12af66627696ae5f8191a7d07f4e9e991aeda4ac.tar.bz2 ChibiOS-12af66627696ae5f8191a7d07f4e9e991aeda4ac.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4712 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards')
-rw-r--r-- | boards/GENERIC_SPC560P/board.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/boards/GENERIC_SPC560P/board.c b/boards/GENERIC_SPC560P/board.c index b41c37a50..4b4af7f1d 100644 --- a/boards/GENERIC_SPC560P/board.c +++ b/boards/GENERIC_SPC560P/board.c @@ -21,6 +21,31 @@ #include "ch.h"
#include "hal.h"
+#if HAL_USE_PAL || defined(__DOXYGEN__)
+/* List of the PCR values to be setup initially, the list is terminated by a
+ {0, 0}.*/
+static const spc560p_pcr_init_t spc560p_pcrs_init[] = {
+ {0, 0}
+};
+
+/* Initialization array for the PSMI registers.*/
+static const uint8_t spc560p_padsels_init[36] = {
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0
+};
+
+/**
+ * @brief PAL setup.
+ */
+const PALConfig pal_default_config =
+{
+ PAL_MODE_UNCONNECTED,
+ spc560p_pcrs_init,
+ spc560p_padsels_init
+};
+#endif
+
/*
* Early initialization code.
* This initialization must be performed just after stack setup and before
|