diff options
| author | Jacob Rosenthal <[email protected]> | 2021-11-11 20:10:34 -0700 |
|---|---|---|
| committer | Jacob Rosenthal <[email protected]> | 2021-11-11 20:10:34 -0700 |
| commit | f15c3a04d4b8fa5ace9827177220c11935b96fd3 (patch) | |
| tree | 656aae3f1a19a3ba4a902bc01a1112ab8ecb0b24 | |
| parent | 639034cee402c27a50174641a79d92673d0ade30 (diff) | |
sequence must be live while DMA runs
| -rw-r--r-- | embassy-nrf/src/pwm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index a850aac2d..5fa57a77f 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs | |||
| @@ -62,7 +62,7 @@ impl<'d, T: Instance> SequencePwm<'d, T> { | |||
| 62 | ch2: impl Unborrow<Target = impl GpioOptionalPin> + 'd, | 62 | ch2: impl Unborrow<Target = impl GpioOptionalPin> + 'd, |
| 63 | ch3: impl Unborrow<Target = impl GpioOptionalPin> + 'd, | 63 | ch3: impl Unborrow<Target = impl GpioOptionalPin> + 'd, |
| 64 | config: SequenceConfig, | 64 | config: SequenceConfig, |
| 65 | sequence: &mut [u16], | 65 | sequence: &'d [u16], |
| 66 | ) -> Result<Self, Error> { | 66 | ) -> Result<Self, Error> { |
| 67 | slice_in_ram_or(sequence, Error::DMABufferNotInDataMemory)?; | 67 | slice_in_ram_or(sequence, Error::DMABufferNotInDataMemory)?; |
| 68 | 68 | ||
