aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--boards/GENERIC_SPC563M/board.c4
-rw-r--r--boards/GENERIC_SPC563M/board.h4
-rw-r--r--os/hal/platforms/SPC5xx/SIU_v1/pal_lld.h3
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))
/** @} */
/*===========================================================================*/