From 3e71a57f67ce0dde62e942dfa33bf38d64262916 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 1 Apr 2019 00:11:23 -0400 Subject: lpc176x: Use enumerations for buses and reserve pins Signed-off-by: Kevin O'Connor --- src/lpc176x/serial.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lpc176x/serial.c') diff --git a/src/lpc176x/serial.c b/src/lpc176x/serial.c index f53b1a81..0e0c6aaf 100644 --- a/src/lpc176x/serial.c +++ b/src/lpc176x/serial.c @@ -8,9 +8,12 @@ #include "autoconf.h" // CONFIG_SERIAL_BAUD #include "board/irq.h" // irq_save #include "board/serial_irq.h" // serial_rx_data +#include "command.h" // DECL_CONSTANT_STR #include "internal.h" // gpio_peripheral #include "sched.h" // DECL_INIT +DECL_CONSTANT_STR("RESERVE_PINS_serial", "P0.3,P0.2"); + void serial_init(void) { @@ -27,8 +30,8 @@ serial_init(void) LPC_UART0->FCR = 0x01; // Setup pins - gpio_peripheral(GPIO(0, 2), 1, 0); gpio_peripheral(GPIO(0, 3), 1, 0); + gpio_peripheral(GPIO(0, 2), 1, 0); // Enable receive irq NVIC_SetPriority(UART0_IRQn, 0); -- cgit v1.2.3-70-g09d2