From 40b5de168048e88e6ded1259a18fb2830e8c149e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 15 Jan 2019 10:12:32 -0500 Subject: 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 --- src/atsamd/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/atsamd/serial.c') diff --git a/src/atsamd/serial.c b/src/atsamd/serial.c index 895ffb27..e8536b50 100644 --- a/src/atsamd/serial.c +++ b/src/atsamd/serial.c @@ -14,7 +14,7 @@ void serial_init(void) { // Enable serial clock - enable_pclock(SERCOM0_GCLK_ID_CORE, PM_APBCMASK_SERCOM0); + enable_pclock(SERCOM0_GCLK_ID_CORE, ID_SERCOM0); // Enable pins gpio_peripheral(GPIO('A', 10), 'C', 0); gpio_peripheral(GPIO('A', 11), 'C', 0); -- cgit v1.2.3-70-g09d2