diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2022-12-23 09:32:18 +0100 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2022-12-23 09:32:18 +0100 |
| commit | da9ee837561694a7749e17d727e56da7ddb3e9b2 (patch) | |
| tree | 70d93a7f115a9191c21089c0864abb2e3baf26dc /embassy-stm32/src/dma/mod.rs | |
| parent | 1bd6c954c23b16041b382243a844a53727f6cc9c (diff) | |
fix(stm32): Fix write buffer lifetime for repeated writes
Diffstat (limited to 'embassy-stm32/src/dma/mod.rs')
| -rw-r--r-- | embassy-stm32/src/dma/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/dma/mod.rs b/embassy-stm32/src/dma/mod.rs index 74bce6aa9..31f55b868 100644 --- a/embassy-stm32/src/dma/mod.rs +++ b/embassy-stm32/src/dma/mod.rs | |||
| @@ -59,7 +59,7 @@ pub(crate) mod sealed { | |||
| 59 | unsafe fn start_write_repeated<W: super::Word>( | 59 | unsafe fn start_write_repeated<W: super::Word>( |
| 60 | &mut self, | 60 | &mut self, |
| 61 | request: Request, | 61 | request: Request, |
| 62 | repeated: W, | 62 | repeated: &[W; 1], |
| 63 | count: usize, | 63 | count: usize, |
| 64 | reg_addr: *mut W, | 64 | reg_addr: *mut W, |
| 65 | options: TransferOptions, | 65 | options: TransferOptions, |
| @@ -246,7 +246,7 @@ mod transfers { | |||
| 246 | pub fn write_repeated<'a, W: Word>( | 246 | pub fn write_repeated<'a, W: Word>( |
| 247 | channel: impl Peripheral<P = impl Channel> + 'a, | 247 | channel: impl Peripheral<P = impl Channel> + 'a, |
| 248 | request: Request, | 248 | request: Request, |
| 249 | repeated: W, | 249 | repeated: &[W; 1], |
| 250 | count: usize, | 250 | count: usize, |
| 251 | reg_addr: *mut W, | 251 | reg_addr: *mut W, |
| 252 | ) -> impl Future<Output = ()> + 'a { | 252 | ) -> impl Future<Output = ()> + 'a { |
