Skip to content

Commit

Permalink
Add a basic blocking QSPI interface
Browse files Browse the repository at this point in the history
This module implements the QuadSPI interface which allows high speed
communication with external flash memory.

Limitations
    - Interrupts are not supported.
    - Status polling mode is not supported.
  • Loading branch information
X-yl committed May 28, 2023
1 parent dcb7f06 commit 9988f4f
Show file tree
Hide file tree
Showing 5 changed files with 917 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added

- Extended 64-bit monotonic timer [#640]
- Basic blocking QSPI interface [#645]

### Fixed

Expand All @@ -26,6 +27,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
[#635]: https://github.com/stm32-rs/stm32f4xx-hal/pull/635
[#636]: https://github.com/stm32-rs/stm32f4xx-hal/pull/636
[#640]: https://github.com/stm32-rs/stm32f4xx-hal/pull/640
[#645]: https://github.com/stm32-rs/stm32f4xx-hal/pull/645

## [v0.16.0] - 2023-05-07

Expand Down
10 changes: 5 additions & 5 deletions src/gpio/alt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,11 @@ pub trait QuadSpiBanks {
}
#[cfg(feature = "quadspi")]
pub trait QuadSpiBank {
type Io0;
type Io1;
type Io2;
type Io3;
type Ncs;
type Io0: crate::gpio::PinSpeed;
type Io1: crate::gpio::PinSpeed;
type Io2: crate::gpio::PinSpeed;
type Io3: crate::gpio::PinSpeed;
type Ncs: crate::gpio::PinSpeed;
}

// SAI pins
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ pub mod fsmc_lcd;
pub mod prelude;
#[cfg(feature = "device-selected")]
pub mod qei;
#[cfg(feature = "quadspi")]
pub mod qspi;
#[cfg(feature = "device-selected")]
pub mod rcc;
#[cfg(feature = "device-selected")]
Expand Down
Loading

0 comments on commit 9988f4f

Please sign in to comment.