Skip to content

Commit f2cfbeb

Browse files
committed
Bump stm32-fmc version
1 parent 5d3062f commit f2cfbeb

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cast = { version = "0.2.3", default-features = false }
3131
nb = "0.1.2"
3232
paste = "0.1.18"
3333
sdio-host = { version = "0.4", optional = true }
34-
stm32-fmc = { version = "0.1.2", optional = true }
34+
stm32-fmc = { version = "0.2", optional = true }
3535

3636
[dependencies.bare-metal]
3737
version = "0.2.5"

src/fmc.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
33
// From stm32_fmc
44
use stm32_fmc::FmcPeripheral;
5-
use stm32_fmc::{PinsSdram, Sdram, SdramChip, SdramPinSet, SdramTargetBank};
5+
use stm32_fmc::{
6+
AddressPinSet, PinsSdram, Sdram, SdramChip, SdramPinSet, SdramTargetBank,
7+
};
68

79
use crate::rcc::{rec, rec::ResetEnable, CoreClocks};
810
use crate::stm32;
@@ -45,7 +47,12 @@ pub trait FmcExt: Sized {
4547
fn fmc(self, prec: rec::Fmc, clocks: &CoreClocks) -> FMC;
4648

4749
/// A new SDRAM memory via the Flexible Memory Controller
48-
fn sdram<BANK: SdramPinSet, PINS: PinsSdram<BANK>, CHIP: SdramChip>(
50+
fn sdram<
51+
BANK: SdramPinSet,
52+
ADDR: AddressPinSet,
53+
PINS: PinsSdram<BANK, ADDR>,
54+
CHIP: SdramChip,
55+
>(
4956
self,
5057
pins: PINS,
5158
chip: CHIP,

0 commit comments

Comments
 (0)