aboutsummaryrefslogtreecommitdiffstats
path: root/boards
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-01 13:54:54 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-01 13:54:54 +0000
commit4becbef6de9e4b5d6b8f027f91de846b4702a1cb (patch)
tree0f871f04226d211f43345dfce61efb11cc7e7537 /boards
parent2a74bb8d6c4e707e58b198ed5a1b69199dcb9103 (diff)
downloadChibiOS-4becbef6de9e4b5d6b8f027f91de846b4702a1cb.tar.gz
ChibiOS-4becbef6de9e4b5d6b8f027f91de846b4702a1cb.tar.bz2
ChibiOS-4becbef6de9e4b5d6b8f027f91de846b4702a1cb.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4729 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards')
-rw-r--r--boards/GENERIC_SPC560P/board.c18
-rw-r--r--boards/GENERIC_SPC560P/board.h3
2 files changed, 13 insertions, 8 deletions
diff --git a/boards/GENERIC_SPC560P/board.c b/boards/GENERIC_SPC560P/board.c
index 84eec2035..23154bf8d 100644
--- a/boards/GENERIC_SPC560P/board.c
+++ b/boards/GENERIC_SPC560P/board.c
@@ -24,14 +24,16 @@
#if HAL_USE_PAL || defined(__DOXYGEN__)
/* Initial setup of all defined pads, the list is terminated by a {0, 0}.*/
static const spc560p_siu_init_t spc560p_siu_init[] = {
- {PCR(PD, PD_BUTTON1), PAL_LOW, PAL_MODE_INPUT},
- {PCR(PD, PD_BUTTON2), PAL_LOW, PAL_MODE_INPUT},
- {PCR(PD, PD_BUTTON3), PAL_LOW, PAL_MODE_INPUT},
- {PCR(PD, PD_BUTTON4), PAL_LOW, PAL_MODE_INPUT},
- {PCR(PD, PD_LED1), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
- {PCR(PD, PD_LED2), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
- {PCR(PD, PD_LED3), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
- {PCR(PD, PD_LED4), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
+ {PCR(PB, PB_LIN0_TDX), PAL_HIGH, PAL_MODE_OUTPUT_ALTERNATE(1)},
+ {PCR(PB, PB_LIN0_RDX), PAL_HIGH, PAL_MODE_INPUT},
+ {PCR(PD, PD_BUTTON1), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PD, PD_BUTTON2), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PD, PD_BUTTON3), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PD, PD_BUTTON4), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PD, PD_LED1), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
+ {PCR(PD, PD_LED2), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
+ {PCR(PD, PD_LED3), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
+ {PCR(PD, PD_LED4), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
{0, 0, 0}
};
diff --git a/boards/GENERIC_SPC560P/board.h b/boards/GENERIC_SPC560P/board.h
index 5d33620d8..60edcddec 100644
--- a/boards/GENERIC_SPC560P/board.h
+++ b/boards/GENERIC_SPC560P/board.h
@@ -41,6 +41,9 @@
/*
* I/O definitions.
*/
+#define PB_LIN0_TDX 2
+#define PB_LIN0_RDX 3
+
#define PD_BUTTON1 0
#define PD_BUTTON2 1
#define PD_BUTTON3 2