boards/msba2: adapt to updated UART driver
This commit is contained in:
parent
c544c41804
commit
3e053d1db9
@ -31,10 +31,6 @@
|
|||||||
|
|
||||||
void board_init(void)
|
void board_init(void)
|
||||||
{
|
{
|
||||||
/* UART0 */
|
|
||||||
PINSEL0 |= BIT4 + BIT6; /* RxD0 and TxD0 */
|
|
||||||
PINSEL0 &= ~(BIT5 + BIT7);
|
|
||||||
|
|
||||||
/* LEDS */
|
/* LEDS */
|
||||||
FIO3DIR |= LED0_MASK;
|
FIO3DIR |= LED0_MASK;
|
||||||
FIO3DIR |= LED1_MASK;
|
FIO3DIR |= LED1_MASK;
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
#ifndef PERIPH_CONF_H
|
#ifndef PERIPH_CONF_H
|
||||||
#define PERIPH_CONF_H
|
#define PERIPH_CONF_H
|
||||||
|
|
||||||
#include "lpc2387.h"
|
#include "periph_cpu.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -79,8 +79,18 @@ extern "C" {
|
|||||||
* @name UART configuration
|
* @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_NUMOF (1)
|
||||||
#define UART_0_EN (1)
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user