Browse Source

libboard_zynq::flash: use only 32-bit spi words in program()

master
Astro 2 months ago
parent
commit
9199bb7a16
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      libboard_zynq/src/flash/mod.rs

+ 1
- 2
libboard_zynq/src/flash/mod.rs View File

@@ -443,8 +443,7 @@ impl Flash<Manual> {
pub fn program<I: Iterator<Item=u32>>(&mut self, offset: u32, data: I) {
{
let len = 4 + 4 * data.size_hint().0;
let args = Some(SpiWord::W32(((INST_PP as u32) << 24) | (offset as u32)))
.into_iter()
let args = Some(SpiWord::W32(((INST_PP as u32) << 24) | (offset as u32))).into_iter()
.chain(data.map(SpiWord::W32));
self.transfer(args, len);
}

Loading…
Cancel
Save