From 14dd40b4ff8ac3b3f77a776279c16168d6500ee1 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 12 Dec 2012 14:00:04 +0000 Subject: [PATCH] Updated SPC563M64 support. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4907 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/GENERIC_SPC563M/board.c | 4 ++-- boards/GENERIC_SPC563M/board.h | 4 ++-- os/hal/platforms/SPC5xx/SIU_v1/pal_lld.h | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/boards/GENERIC_SPC563M/board.c b/boards/GENERIC_SPC563M/board.c index 5914c19e8..b4298f26a 100644 --- a/boards/GENERIC_SPC563M/board.c +++ b/boards/GENERIC_SPC563M/board.c @@ -24,8 +24,8 @@ #if HAL_USE_PAL || defined(__DOXYGEN__) /* Initial setup of all defined pads, the list is terminated by a {0, 0, 0}.*/ static const spc_siu_init_t spc_siu_init[] = { - {PCR(PORT4, P4_ESCI_A_TX), PAL_HIGH, PAL_MODE_OUTPUT_ALTERNATE(1)}, - {PCR(PORT4, P4_ESCI_A_RX), PAL_HIGH, PAL_MODE_OUTPUT_ALTERNATE(1)}, + {PCR(PORT5, P5_ESCI_A_TX), PAL_HIGH, PAL_MODE_OUTPUT_ALTERNATE(1)}, + {PCR(PORT5, P5_ESCI_A_RX), PAL_HIGH, PAL_MODE_OUTPUT_ALTERNATE(1)}, {PCR(PORT11, P11_BUTTON1), PAL_LOW, PAL_MODE_INPUT}, {PCR(PORT11, P11_BUTTON2), PAL_LOW, PAL_MODE_INPUT}, {PCR(PORT11, P11_BUTTON3), PAL_LOW, PAL_MODE_INPUT}, diff --git a/boards/GENERIC_SPC563M/board.h b/boards/GENERIC_SPC563M/board.h index 6c85c76f7..a83eb8f20 100644 --- a/boards/GENERIC_SPC563M/board.h +++ b/boards/GENERIC_SPC563M/board.h @@ -41,8 +41,8 @@ /* * I/O definitions. */ -#define P4_ESCI_A_TX 9 -#define P4_ESCI_A_RX 10 +#define P5_ESCI_A_TX 9 +#define P5_ESCI_A_RX 10 #define P11_BUTTON1 3 #define P11_BUTTON2 5 diff --git a/os/hal/platforms/SPC5xx/SIU_v1/pal_lld.h b/os/hal/platforms/SPC5xx/SIU_v1/pal_lld.h index fac86c48f..4d4cd319a 100644 --- a/os/hal/platforms/SPC5xx/SIU_v1/pal_lld.h +++ b/os/hal/platforms/SPC5xx/SIU_v1/pal_lld.h @@ -100,8 +100,7 @@ /** * @brief Alternate "n" output pad. */ -#define PAL_MODE_OUTPUT_ALTERNATE(n) (PAL_SPC5_IBE | PAL_SPC5_OBE | \ - PAL_SPC5_PA(n)) +#define PAL_MODE_OUTPUT_ALTERNATE(n) (PAL_SPC5_IBE | PAL_SPC5_PA(n)) /** @} */ /*===========================================================================*/