aboutsummaryrefslogtreecommitdiffstats
path: root/boards/GENERIC_SPC560P/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'boards/GENERIC_SPC560P/board.c')
-rw-r--r--boards/GENERIC_SPC560P/board.c25
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