diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2022-12-23 09:33:34 +0100 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2022-12-23 09:33:34 +0100 |
| commit | 2457fcaa35f7ceafcaee44f5e4b2a63c83674c89 (patch) | |
| tree | 0ee2fbb6ea4d2ee3c1a8a8f72a63d8ed2d34eefc | |
| parent | da9ee837561694a7749e17d727e56da7ddb3e9b2 (diff) | |
fix(stm32): Align with updated dma::write_repeated signature
| -rw-r--r-- | embassy-stm32/src/spi/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/spi/mod.rs b/embassy-stm32/src/spi/mod.rs index ab4352a5c..1d4baf46d 100644 --- a/embassy-stm32/src/spi/mod.rs +++ b/embassy-stm32/src/spi/mod.rs | |||
| @@ -473,8 +473,8 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> { | |||
| 473 | 473 | ||
| 474 | let tx_request = self.txdma.request(); | 474 | let tx_request = self.txdma.request(); |
| 475 | let tx_dst = T::REGS.tx_ptr(); | 475 | let tx_dst = T::REGS.tx_ptr(); |
| 476 | let clock_byte = 0x00u8; | 476 | let clock_byte = [0x00u8]; |
| 477 | let tx_f = crate::dma::write_repeated(&mut self.txdma, tx_request, clock_byte, clock_byte_count, tx_dst); | 477 | let tx_f = crate::dma::write_repeated(&mut self.txdma, tx_request, &clock_byte, clock_byte_count, tx_dst); |
| 478 | 478 | ||
| 479 | unsafe { | 479 | unsafe { |
| 480 | set_txdmaen(T::REGS, true); | 480 | set_txdmaen(T::REGS, true); |
