sequence must be live while DMA runs
This commit is contained in:
parent
639034cee4
commit
f15c3a04d4
@ -62,7 +62,7 @@ impl<'d, T: Instance> SequencePwm<'d, T> {
|
|||||||
ch2: impl Unborrow<Target = impl GpioOptionalPin> + 'd,
|
ch2: impl Unborrow<Target = impl GpioOptionalPin> + 'd,
|
||||||
ch3: impl Unborrow<Target = impl GpioOptionalPin> + 'd,
|
ch3: impl Unborrow<Target = impl GpioOptionalPin> + 'd,
|
||||||
config: SequenceConfig,
|
config: SequenceConfig,
|
||||||
sequence: &mut [u16],
|
sequence: &'d [u16],
|
||||||
) -> Result<Self, Error> {
|
) -> Result<Self, Error> {
|
||||||
slice_in_ram_or(sequence, Error::DMABufferNotInDataMemory)?;
|
slice_in_ram_or(sequence, Error::DMABufferNotInDataMemory)?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user