sequence must be live while DMA runs

This commit is contained in:
Jacob Rosenthal 2021-11-11 20:10:34 -07:00
parent 639034cee4
commit f15c3a04d4

View file

@ -62,7 +62,7 @@ impl<'d, T: Instance> SequencePwm<'d, T> {
ch2: impl Unborrow<Target = impl GpioOptionalPin> + 'd,
ch3: impl Unborrow<Target = impl GpioOptionalPin> + 'd,
config: SequenceConfig,
sequence: &mut [u16],
sequence: &'d [u16],
) -> Result<Self, Error> {
slice_in_ram_or(sequence, Error::DMABufferNotInDataMemory)?;