aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/ST_EVB_SPC560P/board.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-26 10:55:58 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-26 10:55:58 +0000
commit9f12fc709ed9a73ebad92da8f4d01345a69b46eb (patch)
treee7390f8eea2e88a9ceb27d40422179cf3912dcb5 /os/hal/boards/ST_EVB_SPC560P/board.c
parentce46beee69f46e8fc26a67c6e8b993ff6f45d2cd (diff)
downloadChibiOS-9f12fc709ed9a73ebad92da8f4d01345a69b46eb.tar.gz
ChibiOS-9f12fc709ed9a73ebad92da8f4d01345a69b46eb.tar.bz2
ChibiOS-9f12fc709ed9a73ebad92da8f4d01345a69b46eb.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6729 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/boards/ST_EVB_SPC560P/board.c')
-rw-r--r--os/hal/boards/ST_EVB_SPC560P/board.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/os/hal/boards/ST_EVB_SPC560P/board.c b/os/hal/boards/ST_EVB_SPC560P/board.c
index 3f89b89ff..5ad702a70 100644
--- a/os/hal/boards/ST_EVB_SPC560P/board.c
+++ b/os/hal/boards/ST_EVB_SPC560P/board.c
@@ -19,31 +19,33 @@
#if HAL_USE_PAL || defined(__DOXYGEN__)
/* Initial setup of all defined pads, the list is terminated by a {-1, 0, 0}.*/
static const spc_siu_init_t spc_siu_init[] = {
- {PCR(PORT_B, PB_LIN0_TDX), PAL_HIGH, PAL_MODE_OUTPUT_ALTERNATE(1)},
- {PCR(PORT_B, PB_LIN0_RDX), PAL_HIGH, PAL_MODE_INPUT},
- {PCR(PORT_D, PD_BUTTON1), PAL_LOW, PAL_MODE_INPUT},
- {PCR(PORT_D, PD_BUTTON2), PAL_LOW, PAL_MODE_INPUT},
- {PCR(PORT_D, PD_BUTTON3), PAL_LOW, PAL_MODE_INPUT},
- {PCR(PORT_D, PD_BUTTON4), PAL_LOW, PAL_MODE_INPUT},
- {PCR(PORT_D, PD_LED1), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
- {PCR(PORT_D, PD_LED2), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
- {PCR(PORT_D, PD_LED3), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
- {PCR(PORT_D, PD_LED4), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
+ {PCR(PORT_B, PB_LIN0_TDX), PAL_HIGH, PAL_MODE_OUTPUT_ALTERNATE(1)},
+ {PCR(PORT_B, PB_LIN0_RDX), PAL_HIGH, PAL_MODE_INPUT},
+ {PCR(PORT_D, PD_BUTTON1), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PORT_D, PD_BUTTON2), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PORT_D, PD_BUTTON3), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PORT_D, PD_BUTTON4), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PORT_D, PD_LED1), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
+ {PCR(PORT_D, PD_LED2), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
+ {PCR(PORT_D, PD_LED3), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
+ {PCR(PORT_D, PD_LED4), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
{-1, 0, 0}
};
/* Initialization array for the PSMI registers.*/
static const uint8_t spc_padsels_init[SPC5_SIUL_NUM_PADSELS] = {
- 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
+ 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, /* Default mode for all undefined pads. */
+ PAL_MODE_UNCONNECTED,
spc_siu_init,
spc_padsels_init
};
@@ -63,5 +65,4 @@ void __early_init(void) {
* Board-specific initialization code.
*/
void boardInit(void) {
-
}