mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 14:53:03 +00:00
Clarify why we need the mut buffer
This commit is contained in:
parent
986295998a
commit
bc7266394d
@ -428,6 +428,8 @@ impl Default for SequenceConfig {
|
||||
#[non_exhaustive]
|
||||
pub struct Sequence<'d> {
|
||||
/// The words comprising the sequence. Must not exceed 32767 words.
|
||||
/// The reason for this buffer to be mutable is so that stopping
|
||||
/// the PWM can relinquish the sequence for subsequent modification.
|
||||
pub words: &'d mut [u16],
|
||||
/// Configuration associated with the sequence.
|
||||
pub config: SequenceConfig,
|
||||
|
Loading…
Reference in New Issue
Block a user