aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-03-15 00:31:36 +0100
committerDario Nieuwenhuis <[email protected]>2022-03-15 00:40:48 +0100
commit306110f56e4614cc51f6c3d3e9ff96b5fe2ced6f (patch)
treede62bae790e72db73d2268701c89baf21090273c /tests
parent8ef8ab170766051be22cc93ec0359f1f95dc6027 (diff)
stm32/spi: implement async trasnfer_in_place
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/src/bin/spi_dma.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/stm32/src/bin/spi_dma.rs b/tests/stm32/src/bin/spi_dma.rs
index 59a5bcd0c..ce80bde74 100644
--- a/tests/stm32/src/bin/spi_dma.rs
+++ b/tests/stm32/src/bin/spi_dma.rs
@@ -47,6 +47,9 @@ async fn main(_spawner: Spawner, p: Peripherals) {
47 spi.transfer(&mut buf, &data).await.unwrap(); 47 spi.transfer(&mut buf, &data).await.unwrap();
48 assert_eq!(buf, data); 48 assert_eq!(buf, data);
49 49
50 spi.transfer_in_place(&mut buf).await.unwrap();
51 assert_eq!(buf, data);
52
50 info!("Test OK"); 53 info!("Test OK");
51 cortex_m::asm::bkpt(); 54 cortex_m::asm::bkpt();
52} 55}