diff options
Diffstat (limited to 'embassy-stm32/src/sai')
| -rw-r--r-- | embassy-stm32/src/sai/mod.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/embassy-stm32/src/sai/mod.rs b/embassy-stm32/src/sai/mod.rs index ac1ab2505..410b2243c 100644 --- a/embassy-stm32/src/sai/mod.rs +++ b/embassy-stm32/src/sai/mod.rs | |||
| @@ -650,8 +650,8 @@ impl Config { | |||
| 650 | } | 650 | } |
| 651 | 651 | ||
| 652 | enum RingBuffer<'d, W: word::Word> { | 652 | enum RingBuffer<'d, W: word::Word> { |
| 653 | Writable(WritableRingBuffer<'d, W>), | 653 | Writable(WritableRingBuffer<'d, W, 2>), |
| 654 | Readable(ReadableRingBuffer<'d, W>), | 654 | Readable(ReadableRingBuffer<'d, W, 2>), |
| 655 | } | 655 | } |
| 656 | 656 | ||
| 657 | fn dr<W: word::Word>(w: crate::pac::sai::Sai, sub_block: WhichSubBlock) -> *mut W { | 657 | fn dr<W: word::Word>(w: crate::pac::sai::Sai, sub_block: WhichSubBlock) -> *mut W { |
| @@ -687,13 +687,12 @@ fn get_ring_buffer<'d, T: Instance, W: word::Word>( | |||
| 687 | //the new_write() and new_read() always use circular mode | 687 | //the new_write() and new_read() always use circular mode |
| 688 | ..Default::default() | 688 | ..Default::default() |
| 689 | }; | 689 | }; |
| 690 | let updaters = Default::default(); | ||
| 691 | match tx_rx { | 690 | match tx_rx { |
| 692 | TxRx::Transmitter => RingBuffer::Writable(unsafe { | 691 | TxRx::Transmitter => RingBuffer::Writable(unsafe { |
| 693 | WritableRingBuffer::new(dma, request, dr(T::REGS, sub_block), dma_buf, opts, updaters) | 692 | WritableRingBuffer::new(dma, request, dr(T::REGS, sub_block), dma_buf, opts) |
| 694 | }), | 693 | }), |
| 695 | TxRx::Receiver => RingBuffer::Readable(unsafe { | 694 | TxRx::Receiver => RingBuffer::Readable(unsafe { |
| 696 | ReadableRingBuffer::new(dma, request, dr(T::REGS, sub_block), dma_buf, opts, updaters) | 695 | ReadableRingBuffer::new(dma, request, dr(T::REGS, sub_block), dma_buf, opts) |
| 697 | }), | 696 | }), |
| 698 | } | 697 | } |
| 699 | } | 698 | } |
