aboutsummaryrefslogtreecommitdiffstats
path: root/src/lpc176x/serial.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-01-04 11:07:22 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-01-04 11:07:22 -0500
commit277a8185e1550b55f634c40923db155771736063 (patch)
tree686ae298cb37118bcf0e72e611bf262943b8e9d6 /src/lpc176x/serial.c
parenta40df4b6f7913271be3dcfac79ba05e5bb13ec27 (diff)
downloadkutter-277a8185e1550b55f634c40923db155771736063.tar.gz
kutter-277a8185e1550b55f634c40923db155771736063.tar.xz
kutter-277a8185e1550b55f634c40923db155771736063.zip
lpc176x: Pass gpio id to gpio_peripheral()
Pass the gpio id instead of the bank/pin to gpio_peripheral(). This is in keeping with other ARM ports. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
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);