diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-01-15 10:12:32 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-01-28 20:02:16 -0500 |
commit | 40b5de168048e88e6ded1259a18fb2830e8c149e (patch) | |
tree | 5b729eac15b43476169d818e0d328fc6e24ef071 /src/atsamd/timer.c | |
parent | ed1334c24bc40f4baf370462496787b9ff2d703d (diff) | |
download | kutter-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/timer.c')
-rw-r--r-- | src/atsamd/timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |