diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-11-20 15:53:33 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-11-20 15:53:33 +0000 |
commit | 24c823f54822a2abc01a9d4e6f6dcf9c31a4e8e3 (patch) | |
tree | de566c634f2cd78d9372e8308ca64233bdaf5d76 /boards/GENERIC_SPC560B | |
parent | 4fa5db982c206a4ab3f512d4651f15dd4367e08b (diff) | |
download | ChibiOS-24c823f54822a2abc01a9d4e6f6dcf9c31a4e8e3.tar.gz ChibiOS-24c823f54822a2abc01a9d4e6f6dcf9c31a4e8e3.tar.bz2 ChibiOS-24c823f54822a2abc01a9d4e6f6dcf9c31a4e8e3.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4834 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/GENERIC_SPC560B')
-rw-r--r-- | boards/GENERIC_SPC560B/board.c | 22 | ||||
-rw-r--r-- | boards/GENERIC_SPC560B/board.h | 16 |
2 files changed, 18 insertions, 20 deletions
diff --git a/boards/GENERIC_SPC560B/board.c b/boards/GENERIC_SPC560B/board.c index 7b0af53aa..43d1ef549 100644 --- a/boards/GENERIC_SPC560B/board.c +++ b/boards/GENERIC_SPC560B/board.c @@ -26,29 +26,27 @@ static const spc_siu_init_t spc_siu_init[] = {
{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},
+ {PCR(PE, PE_BUTTON1), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PE, PE_BUTTON2), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PE, PE_BUTTON3), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PE, PE_BUTTON4), PAL_LOW, PAL_MODE_INPUT},
+ {PCR(PE, PE_LED1), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
+ {PCR(PE, PE_LED2), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
+ {PCR(PE, PE_LED3), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
+ {PCR(PE, PE_LED4), PAL_HIGH, PAL_MODE_OUTPUT_PUSHPULL},
{0, 0, 0}
};
/* Initialization array for the PSMI registers.*/
static const uint8_t spc_padsels_init[SPC5_SIU_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
};
/**
* @brief PAL setup.
*/
-const PALConfig pal_default_config =
-{
+const PALConfig pal_default_config = {
PAL_MODE_UNCONNECTED, /* Default mode for all undefined pads. */
spc_siu_init,
spc_padsels_init
diff --git a/boards/GENERIC_SPC560B/board.h b/boards/GENERIC_SPC560B/board.h index f0cf6b2a1..5b95b01c9 100644 --- a/boards/GENERIC_SPC560B/board.h +++ b/boards/GENERIC_SPC560B/board.h @@ -44,15 +44,15 @@ #define PB_LIN0_TDX 2
#define PB_LIN0_RDX 3
-#define PD_BUTTON1 0
-#define PD_BUTTON2 1
-#define PD_BUTTON3 2
-#define PD_BUTTON4 3
+#define PE_BUTTON1 0
+#define PE_BUTTON2 1
+#define PE_BUTTON3 2
+#define PE_BUTTON4 3
-#define PD_LED1 4
-#define PD_LED2 5
-#define PD_LED3 6
-#define PD_LED4 7
+#define PE_LED1 4
+#define PE_LED2 5
+#define PE_LED3 6
+#define PE_LED4 7
/*
* Support macros.
|