Skip to content

Commit

Permalink
boards/opentitan: tests: spi_host: Add some debug prints
Browse files Browse the repository at this point in the history
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
  • Loading branch information
alistair23 committed Oct 31, 2023
1 parent bb5fdab commit 841184e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/opentitan/src/tests/spi_host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ impl<'a> SpiMasterClient for SpiHostCallback {
tx_len: usize,
rc: Result<(), ErrorCode>,
) {
debug!("Transfer Complete");

//Transfer Complete
assert_eq!(rc, Ok(()));
assert_eq!(tx_len, self.tx_len.get());
Expand All @@ -59,6 +61,8 @@ impl<'a> SpiMasterClient for SpiHostCallback {
}
}

debug!("{} == {}", self.tx_len.get(), tx_len);

if self.tx_len.get() == tx_len {
self.transfer_done.set(true);
}
Expand Down

0 comments on commit 841184e

Please sign in to comment.