Skip to content

Commit

Permalink
Update (q|o)spi examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
esden committed Dec 17, 2024
1 parent b2e8268 commit bafcded
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/stm32f7/src/bin/qspi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl<I: Instance> FlashMemory<I> {
address: None,
dummy: DummyCycles::_0,
};
self.qspi.command(transaction);
self.qspi.blocking_command(transaction);
}

pub fn reset_memory(&mut self) {
Expand Down Expand Up @@ -143,7 +143,7 @@ impl<I: Instance> FlashMemory<I> {
dummy: DummyCycles::_0,
};
self.enable_write();
self.qspi.command(transaction);
self.qspi.blocking_command(transaction);
self.wait_write_finish();
}

Expand Down
6 changes: 3 additions & 3 deletions examples/stm32h7b0/src/bin/ospi_memory_mapped.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl<I: Instance> FlashMemory<I> {
dummy: DummyCycles::_0,
..Default::default()
};
self.ospi.command(&transaction).await.unwrap();
self.ospi.blocking_command(&transaction).unwrap();
}

async fn exec_command(&mut self, cmd: u8) {
Expand All @@ -238,7 +238,7 @@ impl<I: Instance> FlashMemory<I> {
..Default::default()
};
// info!("Excuting command: {:x}", transaction.instruction);
self.ospi.command(&transaction).await.unwrap();
self.ospi.blocking_command(&transaction).unwrap();
}

pub async fn reset_memory(&mut self) {
Expand Down Expand Up @@ -318,7 +318,7 @@ impl<I: Instance> FlashMemory<I> {
..Default::default()
};
self.enable_write().await;
self.ospi.command(&transaction).await.unwrap();
self.ospi.blocking_command(&transaction).unwrap();
self.wait_write_finish();
}

Expand Down

0 comments on commit bafcded

Please sign in to comment.