aboutsummaryrefslogtreecommitdiffstats
path: root/src/samd21/serial.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-11-26 22:18:51 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-11-30 11:50:50 -0500
commit6d90ebe6f8c2aa9071ba524063e89ceb164037eb (patch)
tree35222216c94d61e7b7a8735285343b5deeb907f0 /src/samd21/serial.c
parent0af0bc946e174e2726218aa2ec81a75331aa2644 (diff)
downloadkutter-6d90ebe6f8c2aa9071ba524063e89ceb164037eb.tar.gz
kutter-6d90ebe6f8c2aa9071ba524063e89ceb164037eb.tar.xz
kutter-6d90ebe6f8c2aa9071ba524063e89ceb164037eb.zip
samd21: Use GPIO() macro when calling gpio_peripheral()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/samd21/serial.c')
-rw-r--r--src/samd21/serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/samd21/serial.c b/src/samd21/serial.c
index 3c321e47..895ffb27 100644
--- a/src/samd21/serial.c
+++ b/src/samd21/serial.c
@@ -16,8 +16,8 @@ serial_init(void)
// Enable serial clock
enable_pclock(SERCOM0_GCLK_ID_CORE, PM_APBCMASK_SERCOM0);
// Enable pins
- gpio_peripheral('A', 10, 'C', 0);
- gpio_peripheral('A', 11, 'C', 0);
+ gpio_peripheral(GPIO('A', 10), 'C', 0);
+ gpio_peripheral(GPIO('A', 11), 'C', 0);
// Configure serial
SercomUsart *su = &SERCOM0->USART;
su->CTRLA.reg = 0;