Skip to content

Commit

Permalink
Unlucky
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Fischer committed Jul 30, 2024
1 parent 5abcd3e commit d526934
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions esp-hal/src/spi/master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ pub mod dma {
}
}

fn read(&mut self, words: &mut [u8]) -> Result<(), Error> {
pub fn read(&mut self, words: &mut [u8]) -> Result<(), Error> {
let mut spi_dma = self.spi_dma.take().unwrap();
let (tx_buf, mut rx_buf) = self.buffers.take().unwrap();

Expand All @@ -1459,7 +1459,7 @@ pub mod dma {
Ok(())
}

fn write(&mut self, words: &[u8]) -> Result<(), Error> {
pub fn write(&mut self, words: &[u8]) -> Result<(), Error> {
let mut spi_dma = self.spi_dma.take().unwrap();
let (mut tx_buf, rx_buf) = self.buffers.take().unwrap();

Expand All @@ -1483,7 +1483,7 @@ pub mod dma {
Ok(())
}

fn transfer(&mut self, read: &mut [u8], write: &[u8]) -> Result<(), Error> {
pub fn transfer(&mut self, read: &mut [u8], write: &[u8]) -> Result<(), Error> {
let mut spi_dma = self.spi_dma.take().unwrap();
let (mut tx_buf, mut rx_buf) = self.buffers.take().unwrap();

Expand Down Expand Up @@ -1526,7 +1526,7 @@ pub mod dma {
}
}

fn transfer_in_place(&mut self, words: &mut [u8]) -> Result<(), Error> {
pub fn transfer_in_place(&mut self, words: &mut [u8]) -> Result<(), Error> {
let mut spi_dma = self.spi_dma.take().unwrap();
let (mut tx_buf, mut rx_buf) = self.buffers.take().unwrap();

Expand Down

0 comments on commit d526934

Please sign in to comment.