1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/msba2: adapt to updated UART driver

This commit is contained in:
Benjamin Valentin 2019-11-04 01:07:54 +01:00
parent c544c41804
commit 3e053d1db9
2 changed files with 12 additions and 6 deletions

View File

@ -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;

View File

@ -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)
/** @} */
/**