Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use cortex_m_rt::entry;
mod utilities;
use embedded_hal::delay::DelayNs;
use embedded_hal::spi::SpiBus;
use stm32h5xx_hal::{delay::Delay, pac, prelude::*, spi, time::Seconds};
use stm32h5xx_hal::{delay::Delay, pac, prelude::*, spi, time::MilliSeconds};

use log::info;

Expand Down Expand Up @@ -58,7 +58,7 @@ fn main() -> ! {

info!("Transfer starting");
let mut delay = Delay::new(cp.SYST, &ccdr.clocks);
let duration = Seconds::secs(1).to_millis();
let duration = MilliSeconds::secs(1).to_millis();
// Echo what is received on the SPI
let write = TEST_STR;
let read = &mut [0u8; TEST_STR.len()];
Expand Down
Loading
Loading