clarify infinite
This commit is contained in:
parent
72fa1c8482
commit
7b092f463e
1 changed files with 3 additions and 2 deletions
|
@ -258,11 +258,12 @@ impl<'d, T: Instance> Pwm<'d, T> {
|
|||
r.tasks_seqstart[1].write(|w| unsafe { w.bits(0x01) });
|
||||
}
|
||||
}
|
||||
// to play infinitely, repeat the sequence one time, then have loops done self trigger seq0 again
|
||||
LoopMode::Infinite => {
|
||||
r.loop_.write(|w| unsafe { w.cnt().bits(0x1) });
|
||||
r.shorts.write(|w| w.loopsdone_seqstart1().enabled());
|
||||
r.shorts.write(|w| w.loopsdone_seqstart0().enabled());
|
||||
// tasks_seqstart doesnt exist in all svds so write its bit instead
|
||||
r.tasks_seqstart[1].write(|w| unsafe { w.bits(0x01) });
|
||||
r.tasks_seqstart[0].write(|w| unsafe { w.bits(0x01) });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue