diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-04-01 00:11:23 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-04-04 18:29:31 -0400 |
commit | 3e71a57f67ce0dde62e942dfa33bf38d64262916 (patch) | |
tree | f4b128d810d8678d41b71c6a02aa23875c2c9ea7 /src/lpc176x/serial.c | |
parent | bc9fd03dabc38ae55fae3151e94cffe7157b95bd (diff) | |
download | kutter-3e71a57f67ce0dde62e942dfa33bf38d64262916.tar.gz kutter-3e71a57f67ce0dde62e942dfa33bf38d64262916.tar.xz kutter-3e71a57f67ce0dde62e942dfa33bf38d64262916.zip |
lpc176x: Use enumerations for buses and reserve pins
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/lpc176x/serial.c')
-rw-r--r-- | src/lpc176x/serial.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |