From 25ef1ea8806c59eafffbb9fc522cf9d61d16b85b Mon Sep 17 00:00:00 2001 From: smlng Date: Tue, 4 Jul 2017 11:42:35 +0200 Subject: [PATCH] boards, remote-X: adapt and centralize uart pin config --- boards/common/remote/include/periph_common.h | 18 ++++++++++++++++++ boards/remote-pa/include/periph_conf.h | 17 ----------------- boards/remote-reva/include/periph_conf.h | 18 ------------------ boards/remote-revb/include/periph_conf.h | 18 ------------------ 4 files changed, 18 insertions(+), 53 deletions(-) diff --git a/boards/common/remote/include/periph_common.h b/boards/common/remote/include/periph_common.h index a1f88645d5..98ace56fc6 100644 --- a/boards/common/remote/include/periph_common.h +++ b/boards/common/remote/include/periph_common.h @@ -73,6 +73,24 @@ static const timer_conf_t timer_config[] = { #define RADIO_IRQ_PRIO 1 /** @} */ + +/** + * @name UART configuration + * @{ + */ +#define UART_NUMOF (1U) +#define UART_0_EN 1 +#define UART_IRQ_PRIO 1 + +/* UART 0 device configuration */ +#define UART_0_DEV UART0 +#define UART_0_IRQ UART0_IRQn +#define UART_0_ISR isr_uart0 +/* UART 0 pin configuration */ +#define UART_0_TX_PIN GPIO_PIN(0, 1) /**< GPIO_PA1 */ +#define UART_0_RX_PIN GPIO_PIN(0, 0) /**< GPIO_PA0 */ +/** @} */ + #ifdef __cplusplus } /* end extern "C" */ #endif diff --git a/boards/remote-pa/include/periph_conf.h b/boards/remote-pa/include/periph_conf.h index 4fd66fb62d..e3a15a19ec 100644 --- a/boards/remote-pa/include/periph_conf.h +++ b/boards/remote-pa/include/periph_conf.h @@ -28,23 +28,6 @@ extern "C" { #endif -/** - * @name UART configuration - * @{ - */ -#define UART_NUMOF (1U) -#define UART_0_EN 1 -#define UART_IRQ_PRIO 1 - -/* UART 0 device configuration */ -#define UART_0_DEV UART0 -#define UART_0_IRQ UART0_IRQn -#define UART_0_ISR isr_uart0 -/* UART 0 pin configuration */ -#define UART_0_TX_PIN GPIO_PA1 -#define UART_0_RX_PIN GPIO_PA0 -/** @} */ - /** * @name I2C configuration * @{ diff --git a/boards/remote-reva/include/periph_conf.h b/boards/remote-reva/include/periph_conf.h index 2d236f3fc4..0aa30cc068 100644 --- a/boards/remote-reva/include/periph_conf.h +++ b/boards/remote-reva/include/periph_conf.h @@ -28,24 +28,6 @@ extern "C" { #endif -/** - * @name UART configuration - * @{ - */ -#define UART_NUMOF (1U) -#define UART_0_EN 1 -#define UART_IRQ_PRIO 1 - -/* UART 0 device configuration */ -#define UART_0_DEV UART0 -#define UART_0_IRQ UART0_IRQn -#define UART_0_ISR isr_uart0 -/* UART 0 pin configuration */ -#define UART_0_TX_PIN GPIO_PA1 -#define UART_0_RX_PIN GPIO_PA0 - -/** @} */ - /** * @name I2C configuration * @{ diff --git a/boards/remote-revb/include/periph_conf.h b/boards/remote-revb/include/periph_conf.h index 0bca28c411..c7d0e30036 100644 --- a/boards/remote-revb/include/periph_conf.h +++ b/boards/remote-revb/include/periph_conf.h @@ -31,24 +31,6 @@ extern "C" { #endif -/** - * @name UART configuration - * @{ - */ -#define UART_NUMOF (1U) -#define UART_0_EN 1 -#define UART_IRQ_PRIO 1 - -/* UART 0 device configuration */ -#define UART_0_DEV UART0 -#define UART_0_IRQ UART0_IRQn -#define UART_0_ISR isr_uart0 -/* UART 0 pin configuration */ -#define UART_0_TX_PIN GPIO_PA1 -#define UART_0_RX_PIN GPIO_PA0 - -/** @} */ - /** * @name I2C configuration * @{