Skip to content

Commit 79b1ee2

Browse files
kalkyljamesmunns
authored andcommitted
Cleanup, add demo description
1 parent b098de8 commit 79b1ee2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

examples/spis-demo/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#![no_std]
22
#![no_main]
33

4+
// Demo for the SPIS module, transmitting the current buffer contents while receiving new data.
5+
// Press button to zero the buffer.
6+
47
use {
58
core::{
69
panic::PanicInfo,

nrf-hal-common/src/spis.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ where
407407

408408
self.release();
409409
Ok(TransferSplit {
410-
inner: Some(InnerFullDuplex {
410+
inner: Some(InnerSplit {
411411
tx_buffer,
412412
rx_buffer,
413413
spis: self,
@@ -496,10 +496,10 @@ impl<T: Instance, B> Drop for Transfer<T, B> {
496496
}
497497
/// A full duplex DMA transfer
498498
pub struct TransferSplit<T: Instance, TxB, RxB> {
499-
inner: Option<InnerFullDuplex<T, TxB, RxB>>,
499+
inner: Option<InnerSplit<T, TxB, RxB>>,
500500
}
501501

502-
struct InnerFullDuplex<T: Instance, TxB, RxB> {
502+
struct InnerSplit<T: Instance, TxB, RxB> {
503503
tx_buffer: TxB,
504504
rx_buffer: RxB,
505505
spis: Spis<T>,

0 commit comments

Comments
 (0)