diff --git a/boards/avsextrem/board_init.c b/boards/avsextrem/board_init.c index bc0dfb86b3..1a68e32712 100644 --- a/boards/avsextrem/board_init.c +++ b/boards/avsextrem/board_init.c @@ -26,10 +26,6 @@ /*---------------------------------------------------------------------------*/ void board_init(void) { - /* UART0 */ - PINSEL0 |= BIT4 + BIT6; // RxD0 and TxD0 - PINSEL0 &= ~(BIT5 + BIT7); - //PTTU: /*Turn Board on*/ diff --git a/boards/avsextrem/include/periph_conf.h b/boards/avsextrem/include/periph_conf.h index cacae833d5..388ff6a3d2 100644 --- a/boards/avsextrem/include/periph_conf.h +++ b/boards/avsextrem/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" { @@ -53,8 +53,18 @@ extern "C" { * @name UART configuration * @{ */ -#define UART_NUMOF (1U) -#define UART_0_EN (1) +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) /** @} */ /**