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>
This commit is contained in:
Kevin O'Connor 2019-01-15 10:12:32 -05:00
parent ed1334c24b
commit 40b5de1680
9 changed files with 33 additions and 32 deletions

View file

@ -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);