nrf: pwm clarify stop and disable pin state
This commit is contained in:
parent
4d61f4aa0d
commit
4010a829ae
@ -308,7 +308,8 @@ impl<'d, T: Instance> SequencePwm<'d, T> {
|
|||||||
Task::from_reg(&r.tasks_stop)
|
Task::from_reg(&r.tasks_stop)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Stop playback. Does NOT clear the last duty cycle from the pin.
|
/// Stop playback. Disables the peripheral. Does NOT clear the last duty
|
||||||
|
/// cycle from the pin.
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn stop(&self) {
|
pub fn stop(&self) {
|
||||||
let r = T::regs();
|
let r = T::regs();
|
||||||
@ -433,8 +434,8 @@ pub enum CounterMode {
|
|||||||
impl<'d, T: Instance> SimplePwm<'d, T> {
|
impl<'d, T: Instance> SimplePwm<'d, T> {
|
||||||
/// Creates the interface to a `SimplePwm`
|
/// Creates the interface to a `SimplePwm`
|
||||||
///
|
///
|
||||||
/// Defaults the freq to 1Mhz, max_duty 1000, duty 0, up mode, and pins low.
|
/// Enables the peripheral, defaults the freq to 1Mhz, max_duty 1000, duty
|
||||||
/// Must be started by calling `set_duty`
|
/// 0, up mode, and pins low. Must be started by calling `set_duty`
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user