aboutsummaryrefslogtreecommitdiffstats
path: root/src/lpc176x/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpc176x/serial.c')
-rw-r--r--src/lpc176x/serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lpc176x/serial.c b/src/lpc176x/serial.c
index 29a535a3..f53b1a81 100644
--- a/src/lpc176x/serial.c
+++ b/src/lpc176x/serial.c
@@ -27,8 +27,8 @@ serial_init(void)
LPC_UART0->FCR = 0x01;
// Setup pins
- gpio_peripheral(0, 2, 1, 0);
- gpio_peripheral(0, 3, 1, 0);
+ gpio_peripheral(GPIO(0, 2), 1, 0);
+ gpio_peripheral(GPIO(0, 3), 1, 0);
// Enable receive irq
NVIC_SetPriority(UART0_IRQn, 0);