Merge #1200
1200: feat(stm32): Add 16 data bit fmc ctor r=Dirbaio a=rmja This has been validated with the Is42s16400j sdram on stm32f429. Co-authored-by: Rasmus Melchior Jacobsen <rmja@laesoe.org>
This commit is contained in:
commit
4a224efe75
@ -111,6 +111,24 @@ impl<'d, T: Instance> Fmc<'d, T> {
|
|||||||
]
|
]
|
||||||
));
|
));
|
||||||
|
|
||||||
|
fmc_sdram_constructor!(sdram_a12bits_d16bits_4banks_bank2: (
|
||||||
|
bank: stm32_fmc::SdramTargetBank::Bank2,
|
||||||
|
addr: [
|
||||||
|
(a0: A0Pin), (a1: A1Pin), (a2: A2Pin), (a3: A3Pin), (a4: A4Pin), (a5: A5Pin), (a6: A6Pin), (a7: A7Pin), (a8: A8Pin), (a9: A9Pin), (a10: A10Pin), (a11: A11Pin)
|
||||||
|
],
|
||||||
|
ba: [(ba0: BA0Pin), (ba1: BA1Pin)],
|
||||||
|
d: [
|
||||||
|
(d0: D0Pin), (d1: D1Pin), (d2: D2Pin), (d3: D3Pin), (d4: D4Pin), (d5: D5Pin), (d6: D6Pin), (d7: D7Pin),
|
||||||
|
(d8: D8Pin), (d9: D9Pin), (d10: D10Pin), (d11: D11Pin), (d12: D12Pin), (d13: D13Pin), (d14: D14Pin), (d15: D15Pin)
|
||||||
|
],
|
||||||
|
nbl: [
|
||||||
|
(nbl0: NBL0Pin), (nbl1: NBL1Pin)
|
||||||
|
],
|
||||||
|
ctrl: [
|
||||||
|
(sdcke: SDCKE1Pin), (sdclk: SDCLKPin), (sdncas: SDNCASPin), (sdne: SDNE1Pin), (sdnras: SDNRASPin), (sdnwe: SDNWEPin)
|
||||||
|
]
|
||||||
|
));
|
||||||
|
|
||||||
fmc_sdram_constructor!(sdram_a12bits_d32bits_4banks_bank2: (
|
fmc_sdram_constructor!(sdram_a12bits_d32bits_4banks_bank2: (
|
||||||
bank: stm32_fmc::SdramTargetBank::Bank2,
|
bank: stm32_fmc::SdramTargetBank::Bank2,
|
||||||
addr: [
|
addr: [
|
||||||
|
Loading…
Reference in New Issue
Block a user