mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-25 15:44:13 -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
|
@ -20,7 +20,7 @@ spi_init(uint32_t ctrla, uint32_t baud)
|
|||
have_run_init = 1;
|
||||
|
||||
// Setup clock
|
||||
enable_pclock(SERCOM4_GCLK_ID_CORE, PM_APBCMASK_SERCOM4);
|
||||
enable_pclock(SERCOM4_GCLK_ID_CORE, ID_SERCOM4);
|
||||
|
||||
// Configure MISO, MOSI, SCK pins
|
||||
gpio_peripheral(GPIO('A', 12), 'D', 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue