1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

boards/avsextrem: adapt to updated UART driver

This commit is contained in:
Benjamin Valentin 2019-11-04 01:08:30 +01:00
parent 3e053d1db9
commit 90aef98ca0
2 changed files with 13 additions and 7 deletions

View File

@ -26,10 +26,6 @@
/*---------------------------------------------------------------------------*/
void board_init(void)
{
/* UART0 */
PINSEL0 |= BIT4 + BIT6; // RxD0 and TxD0
PINSEL0 &= ~(BIT5 + BIT7);
//PTTU:
/*Turn Board on*/

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