Skip to content

Commit 7027327

Browse files
committed
fix: ci again
1 parent 19d17b6 commit 7027327

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

esp-hal/src/i2s/master.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@
4242
//! # {before_snippet}
4343
//! # use esp_hal::i2s::master::{I2s, Standard, DataFormat};
4444
//! # use esp_hal::dma_buffers_chunk_size;
45+
//! # use esp_hal::dma::DmaRxStreamBuf;
4546
//! # {dma_channel}
46-
//! let (mut rx_buffer, rx_descriptors, _, _) = dma_buffers_chunk_sizse!(4 * 4092, 0, 4092);
47+
//! let (mut rx_buffer, rx_descriptors, _, _) = dma_buffers_chunk_size!(4 * 4092, 0, 4092);
4748
//!
4849
//! let i2s = I2s::new(
4950
//! peripherals.I2S0,
@@ -485,7 +486,7 @@ where
485486
{
486487
/// Start reading from the I2S RX unit. Notice because of the DMA transfer,
487488
/// the buffer must be aligned to 32-bit.
488-
pub fn read<'t, RXBUF>(
489+
pub fn read<RXBUF>(
489490
mut self,
490491
mut buf: RXBUF,
491492
chunk_size: usize,
@@ -1008,9 +1009,7 @@ mod private {
10081009
}
10091010

10101011
fn rx_stop(&self) {
1011-
self.regs()
1012-
.rx_conf()
1013-
.modify(|_, w| w.rx_start().clear_bit());
1012+
self.regs().conf().modify(|_, w| w.rx_start().clear_bit());
10141013
}
10151014

10161015
fn wait_for_tx_done(&self) {

0 commit comments

Comments
 (0)