mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-21 13:48:00 -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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue