Skip to content

Commit

Permalink
fence is fine with proper optimisations - looking at 14msec :)
Browse files Browse the repository at this point in the history
  • Loading branch information
vk2seb committed Oct 8, 2023
1 parent 8a2daa1 commit 35b289f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion firmware/litex-fw/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,13 @@ fn main() -> ! {

let fb = disp.swap_clear();
unsafe {
fence();
while peripherals.SPI_DMA.done.read().bits() == 0 {
// Don't start to DMA a new framebuffer if we're still
// pushing through the last one.
}
peripherals.SPI_DMA.read_base.write(|w| w.bits(fb.as_ptr() as u32));
peripherals.SPI_DMA.read_length.write(|w| w.bits(fb.len() as u32));
fence();
peripherals.SPI_DMA.start.write(|w| w.start().bit(true));
peripherals.SPI_DMA.start.write(|w| w.start().bit(false));
}
Expand Down
2 changes: 1 addition & 1 deletion firmware/ssd1322

0 comments on commit 35b289f

Please sign in to comment.