mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-22 14:13:59 -06:00
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:
parent
ed1334c24b
commit
40b5de1680
9 changed files with 33 additions and 32 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue