diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-11-26 22:18:51 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-11-30 11:50:50 -0500 |
commit | 6d90ebe6f8c2aa9071ba524063e89ceb164037eb (patch) | |
tree | 35222216c94d61e7b7a8735285343b5deeb907f0 /src/samd21/usbserial.c | |
parent | 0af0bc946e174e2726218aa2ec81a75331aa2644 (diff) | |
download | kutter-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/usbserial.c')
-rw-r--r-- | src/samd21/usbserial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/samd21/usbserial.c b/src/samd21/usbserial.c index bac75853..2db22ae6 100644 --- a/src/samd21/usbserial.c +++ b/src/samd21/usbserial.c @@ -174,8 +174,8 @@ usbserial_init(void) // configure usb clock enable_pclock(USB_GCLK_ID, 0); // configure USBD+ and USBD- pins - gpio_peripheral('A', 24, 'G', 0); - gpio_peripheral('A', 25, 'G', 0); + gpio_peripheral(GPIO('A', 24), 'G', 0); + gpio_peripheral(GPIO('A', 25), 'G', 0); uint16_t trim = (readl((void*)USB_FUSES_TRIM_ADDR) & USB_FUSES_TRIM_Msk) >> USB_FUSES_TRIM_Pos; uint16_t transp = (readl((void*)USB_FUSES_TRANSP_ADDR) |