aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsamd/adc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atsamd/adc.c')
-rw-r--r--src/atsamd/adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atsamd/adc.c b/src/atsamd/adc.c
index 38836592..b340c1ff 100644
--- a/src/atsamd/adc.c
+++ b/src/atsamd/adc.c
@@ -28,7 +28,7 @@ adc_init(void)
have_run_init = 1;
// Enable adc clock
- enable_pclock(ADC_GCLK_ID, PM_APBCMASK_ADC);
+ enable_pclock(ADC_GCLK_ID, ID_ADC);
// Load calibraiton info
uint32_t v = *((uint32_t*)ADC_FUSES_BIASCAL_ADDR);