diff --git a/boards/mbed_lpc1768/Makefile.features b/boards/mbed_lpc1768/Makefile.features index 990fa817be..4e85a0c0fa 100644 --- a/boards/mbed_lpc1768/Makefile.features +++ b/boards/mbed_lpc1768/Makefile.features @@ -1 +1,2 @@ FEATURES_PROVIDED += cpp +FEATURES_PROVIDED += periph_uart diff --git a/boards/mbed_lpc1768/include/periph_conf.h b/boards/mbed_lpc1768/include/periph_conf.h index d84f57852f..87d4afe083 100644 --- a/boards/mbed_lpc1768/include/periph_conf.h +++ b/boards/mbed_lpc1768/include/periph_conf.h @@ -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