board/mbed_lpc1768: added UART configuration

This commit is contained in:
Hauke Petersen 2014-12-08 19:46:03 +01:00
parent 934f7b6b33
commit e4fa4a61b7
2 changed files with 11 additions and 9 deletions

View File

@ -1 +1,2 @@
FEATURES_PROVIDED += cpp
FEATURES_PROVIDED += periph_uart

View File

@ -52,16 +52,17 @@ extern "C" {
#define UART_IRQ_PRIO 1
/* UART 0 device configuration */
#define UART_0_DEV LPC_UART2
#define UART_0_CLKEN()
#define UART_0_IRQ UART0_IRQn
#define UART_0_ISR isr_uart0
#define UART_0_DEV LPC_UART3
#define UART_0_CLKEN() (LPC_SC->PCONP |= (1 << 25))
#define UART_0_CLKDIS() (LPC_SC->PCONP &= ~(1 << 25))
#define UART_0_IRQ UART3_IRQn
#define UART_0_ISR isr_uart3
/* UART 0 pin configuration */
#define UART_0_PORT
#define UART_0_PORT_CLKEN()
#define UART_0_RX_PIN
#define UART_0_TX_PIN
#define UART_0_AF
#define UART_0_PINSEL (LPC_PINCON->PINSEL0)
#define UART_0_PINMODE (LPC_PINCON->PINMODE0)
#define UART_0_RX_PIN (0)
#define UART_0_TX_PIN (1)
#define UART_0_AF (2)
/** @} */
#ifdef __cplusplus