From 4becbef6de9e4b5d6b8f027f91de846b4702a1cb Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 1 Oct 2012 13:54:54 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4729 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/GENERIC_SPC560P/board.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'boards/GENERIC_SPC560P/board.c') 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} }; -- cgit v1.2.3