Skip to content

Commit efd5fed

Browse files
committed
Add a basic blocking QSPI interface
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.
1 parent dcb7f06 commit efd5fed

File tree

5 files changed

+917
-5
lines changed

5 files changed

+917
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1717
### Added
1818

1919
- Extended 64-bit monotonic timer [#640]
20+
- Basic blocking QSPI interface [#645]
2021

2122
### Fixed
2223

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

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

src/gpio/alt.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,11 @@ pub trait QuadSpiBanks {
368368
}
369369
#[cfg(feature = "quadspi")]
370370
pub trait QuadSpiBank {
371-
type Io0;
372-
type Io1;
373-
type Io2;
374-
type Io3;
375-
type Ncs;
371+
type Io0: crate::gpio::PinSpeed;
372+
type Io1: crate::gpio::PinSpeed;
373+
type Io2: crate::gpio::PinSpeed;
374+
type Io3: crate::gpio::PinSpeed;
375+
type Ncs: crate::gpio::PinSpeed;
376376
}
377377

378378
// SAI pins

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ pub mod fsmc_lcd;
153153
pub mod prelude;
154154
#[cfg(feature = "device-selected")]
155155
pub mod qei;
156+
#[cfg(feature = "quadspi")]
157+
pub mod qspi;
156158
#[cfg(feature = "device-selected")]
157159
pub mod rcc;
158160
#[cfg(feature = "device-selected")]

0 commit comments

Comments
 (0)