aboutsummaryrefslogtreecommitdiffstats
path: root/src/sam3x8e/serial.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-12-25 10:33:24 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-01-07 19:30:17 -0500
commit5b91c7a68d958b08227538ac99cb74e5ae7283e4 (patch)
tree90f319ba03c1322526ceb25a0ee2419968c81455 /src/sam3x8e/serial.c
parentecba3e9a19236c04e93ff102bc5cde55fdc906ad (diff)
downloadkutter-5b91c7a68d958b08227538ac99cb74e5ae7283e4.tar.gz
kutter-5b91c7a68d958b08227538ac99cb74e5ae7283e4.tar.xz
kutter-5b91c7a68d958b08227538ac99cb74e5ae7283e4.zip
sam3x8e: Pass the gpio id directly to gpio_peripheral()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/sam3x8e/serial.c')
-rw-r--r--src/sam3x8e/serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sam3x8e/serial.c b/src/sam3x8e/serial.c
index a118122d..1fe55751 100644
--- a/src/sam3x8e/serial.c
+++ b/src/sam3x8e/serial.c
@@ -13,8 +13,8 @@
void
serial_init(void)
{
- gpio_peripheral('A', PIO_PA8A_URXD, 'A', 1);
- gpio_peripheral('A', PIO_PA9A_UTXD, 'A', 0);
+ gpio_peripheral(GPIO('A', 8), 'A', 1);
+ gpio_peripheral(GPIO('A', 9), 'A', 0);
// Reset uart
PMC->PMC_PCER0 = 1 << ID_UART;