diff options
| author | Piotr Esden-Tempski <[email protected]> | 2024-12-17 14:56:45 -0800 |
|---|---|---|
| committer | Piotr Esden-Tempski <[email protected]> | 2024-12-17 14:56:45 -0800 |
| commit | bafcdedebe1b94a9eb35a397553ee9ecab237080 (patch) | |
| tree | 47e7659bd47c28f4c08eece5eeda08b137e49a47 /examples/stm32h7b0 | |
| parent | b2e82684707e8675f61bba01e818947ba536d3c7 (diff) | |
Update (q|o)spi examples.
Diffstat (limited to 'examples/stm32h7b0')
| -rw-r--r-- | examples/stm32h7b0/src/bin/ospi_memory_mapped.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32h7b0/src/bin/ospi_memory_mapped.rs b/examples/stm32h7b0/src/bin/ospi_memory_mapped.rs index 9c397e507..dffb740a9 100644 --- a/examples/stm32h7b0/src/bin/ospi_memory_mapped.rs +++ b/examples/stm32h7b0/src/bin/ospi_memory_mapped.rs | |||
| @@ -223,7 +223,7 @@ impl<I: Instance> FlashMemory<I> { | |||
| 223 | dummy: DummyCycles::_0, | 223 | dummy: DummyCycles::_0, |
| 224 | ..Default::default() | 224 | ..Default::default() |
| 225 | }; | 225 | }; |
| 226 | self.ospi.command(&transaction).await.unwrap(); | 226 | self.ospi.blocking_command(&transaction).unwrap(); |
| 227 | } | 227 | } |
| 228 | 228 | ||
| 229 | async fn exec_command(&mut self, cmd: u8) { | 229 | async fn exec_command(&mut self, cmd: u8) { |
| @@ -238,7 +238,7 @@ impl<I: Instance> FlashMemory<I> { | |||
| 238 | ..Default::default() | 238 | ..Default::default() |
| 239 | }; | 239 | }; |
| 240 | // info!("Excuting command: {:x}", transaction.instruction); | 240 | // info!("Excuting command: {:x}", transaction.instruction); |
| 241 | self.ospi.command(&transaction).await.unwrap(); | 241 | self.ospi.blocking_command(&transaction).unwrap(); |
| 242 | } | 242 | } |
| 243 | 243 | ||
| 244 | pub async fn reset_memory(&mut self) { | 244 | pub async fn reset_memory(&mut self) { |
| @@ -318,7 +318,7 @@ impl<I: Instance> FlashMemory<I> { | |||
| 318 | ..Default::default() | 318 | ..Default::default() |
| 319 | }; | 319 | }; |
| 320 | self.enable_write().await; | 320 | self.enable_write().await; |
| 321 | self.ospi.command(&transaction).await.unwrap(); | 321 | self.ospi.blocking_command(&transaction).unwrap(); |
| 322 | self.wait_write_finish(); | 322 | self.wait_write_finish(); |
| 323 | } | 323 | } |
| 324 | 324 | ||
