mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-26 08:42:32 +00:00
doccomments
This commit is contained in:
parent
c6736abf5e
commit
4c2d0ac211
@ -260,9 +260,9 @@ pub struct SequenceConfig {
|
|||||||
pub prescaler: Prescaler,
|
pub prescaler: Prescaler,
|
||||||
/// How a sequence is read from RAM and is spread to the compare register
|
/// How a sequence is read from RAM and is spread to the compare register
|
||||||
pub sequence_load: SequenceLoad,
|
pub sequence_load: SequenceLoad,
|
||||||
/// Number of Times PWM periods to delay between each sequence sample
|
/// Number of PWM periods to delay between each sequence sample
|
||||||
pub refresh: u32,
|
pub refresh: u32,
|
||||||
/// Number of Times PWM periods after the sequence ends before starting the next sequence
|
/// Number of PWM periods after the sequence ends before starting the next sequence
|
||||||
pub end_delay: u32,
|
pub end_delay: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ pub enum CounterMode {
|
|||||||
impl<'d, T: Instance> SimplePwm<'d, T> {
|
impl<'d, T: Instance> SimplePwm<'d, T> {
|
||||||
/// Creates the interface to a PWM instance.
|
/// Creates the interface to a PWM instance.
|
||||||
///
|
///
|
||||||
/// Defaults the freq to 1Mhz, max_duty 1000, duty 0, and pins low.
|
/// Defaults the freq to 1Mhz, max_duty 1000, duty 0, up mode, and pins low.
|
||||||
/// Must be started by calling `set_duty`
|
/// Must be started by calling `set_duty`
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
|
Loading…
Reference in New Issue
Block a user