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/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/atsamd/timer.c') diff --git a/src/atsamd/timer.c b/src/atsamd/timer.c index 882b4c10..3a133d01 100644 --- a/src/atsamd/timer.c +++ b/src/atsamd/timer.c @@ -37,8 +37,8 @@ void timer_init(void) { // Supply power and clock to the timer - enable_pclock(TC3_GCLK_ID, PM_APBCMASK_TC3); - enable_pclock(TC4_GCLK_ID, PM_APBCMASK_TC4); + enable_pclock(TC3_GCLK_ID, ID_TC3); + enable_pclock(TC4_GCLK_ID, ID_TC4); // Configure the timer TcCount32 *tc = &TC4->COUNT32; -- cgit v1.2.3-70-g09d2