diff --git a/boards/msba2/board_init.c b/boards/msba2/board_init.c index b41411bffd..ee03815863 100644 --- a/boards/msba2/board_init.c +++ b/boards/msba2/board_init.c @@ -31,10 +31,6 @@ void board_init(void) { - /* UART0 */ - PINSEL0 |= BIT4 + BIT6; /* RxD0 and TxD0 */ - PINSEL0 &= ~(BIT5 + BIT7); - /* LEDS */ FIO3DIR |= LED0_MASK; FIO3DIR |= LED1_MASK; diff --git a/boards/msba2/include/periph_conf.h b/boards/msba2/include/periph_conf.h index ed9d084488..c77a5001c3 100644 --- a/boards/msba2/include/periph_conf.h +++ b/boards/msba2/include/periph_conf.h @@ -19,7 +19,7 @@ #ifndef PERIPH_CONF_H #define PERIPH_CONF_H -#include "lpc2387.h" +#include "periph_cpu.h" #ifdef __cplusplus extern "C" { @@ -79,8 +79,18 @@ extern "C" { * @name UART configuration * @{ */ +static const uart_conf_t uart_config[] = { + { + .dev = UART0, + .irq_prio_rx = 6, + .pinsel_rx = 0, + .pinsel_tx = 0, + .pinsel_msk_rx = BIT4, + .pinsel_msk_tx = BIT6, + } +}; + #define UART_NUMOF (1) -#define UART_0_EN (1) /** @} */ /**