aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsamd/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atsamd/timer.c')
-rw-r--r--src/atsamd/timer.c4
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;