From 12af66627696ae5f8191a7d07f4e9e991aeda4ac Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 21 Sep 2012 14:55:10 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4712 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/GENERIC_SPC560P/board.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'boards') 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 -- cgit v1.2.3