Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update example to match w25q datasheet #682

Merged
merged 2 commits into from
Sep 18, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- complete and rework Dma Stream API [#666]
- SPI bidi takes 2 pins [#526]
- `Fast Read Quad I/O (EBh)` in `qspi-w25q` example now matches W25QXX datasheet. [#682]

### Fixed

Expand All @@ -25,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
[#666]: https://github.com/stm32-rs/stm32f4xx-hal/pull/666
[#677]: https://github.com/stm32-rs/stm32f4xx-hal/pull/677
[#678]: https://github.com/stm32-rs/stm32f4xx-hal/pull/678
[#682]: https://github.com/stm32-rs/stm32f4xx-hal/pull/682

## [v0.17.1] - 2023-07-24

Expand Down
8 changes: 6 additions & 2 deletions examples/qspi-w25q.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ where
QspiReadCommand::new(data, QspiMode::QuadChannel)
.instruction(0xEB, QspiMode::SingleChannel)
.address(address, QspiMode::QuadChannel)
.dummy_cycles(6),
// the M0-M7 bits will be send by alternate_bytes, and the value should be 0xFX
.alternate_bytes(&[0xFF], QspiMode::QuadChannel)
.dummy_cycles(4),
)?;

Ok(())
Expand All @@ -135,7 +137,9 @@ where
.instruction(0xEB, QspiMode::SingleChannel)
.address_mode(QspiMode::QuadChannel)
.data_mode(QspiMode::QuadChannel)
.dummy_cycles(6),
// the M0-M7 bits will be send by alternate_bytes, and the value should be 0xFX
.alternate_bytes(&[0xFF], QspiMode::QuadChannel)
.dummy_cycles(4),
)
}
}
Expand Down