boards, remote-X: adapt and centralize uart pin config
This commit is contained in:
parent
ba324ef07c
commit
25ef1ea880
@ -73,6 +73,24 @@ static const timer_conf_t timer_config[] = {
|
|||||||
#define RADIO_IRQ_PRIO 1
|
#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
|
#ifdef __cplusplus
|
||||||
} /* end extern "C" */
|
} /* end extern "C" */
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -28,23 +28,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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
|
* @name I2C configuration
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@ -28,24 +28,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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
|
* @name I2C configuration
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@ -31,24 +31,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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
|
* @name I2C configuration
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user