aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsamd/usbserial.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-01-15 10:12:32 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-01-28 20:02:16 -0500
commit40b5de168048e88e6ded1259a18fb2830e8c149e (patch)
tree5b729eac15b43476169d818e0d328fc6e24ef071 /src/atsamd/usbserial.c
parented1334c24bc40f4baf370462496787b9ff2d703d (diff)
downloadkutter-40b5de168048e88e6ded1259a18fb2830e8c149e.tar.gz
kutter-40b5de168048e88e6ded1259a18fb2830e8c149e.tar.xz
kutter-40b5de168048e88e6ded1259a18fb2830e8c149e.zip
atsamd: Pass the power management id to enable_pclock()
Pass the power management id instead of the APBCMASK bit to the enable_pclock() function. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/atsamd/usbserial.c')
-rw-r--r--src/atsamd/usbserial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atsamd/usbserial.c b/src/atsamd/usbserial.c
index 0864a4c5..ff9ec519 100644
--- a/src/atsamd/usbserial.c
+++ b/src/atsamd/usbserial.c
@@ -185,7 +185,7 @@ void
usbserial_init(void)
{
// configure usb clock
- enable_pclock(USB_GCLK_ID, 0);
+ enable_pclock(USB_GCLK_ID, ID_USB);
// configure USBD+ and USBD- pins
gpio_peripheral(GPIO('A', 24), 'G', 0);
gpio_peripheral(GPIO('A', 25), 'G', 0);