zynq::ddr: fix usable ram size

master
Astro 3 years ago
parent 43501003f9
commit 91bab76ab6
  1. 4
      src/zynq/ddr/mod.rs

@ -184,9 +184,9 @@ impl DdrRam {
pub fn size(&self) -> usize {
#[cfg(feature = "target_zc706")]
let megabytes = 1024;
let megabytes = 511;
#[cfg(feature = "target_cora_z7_10")]
let megabytes = 512;
let megabytes = 511;
megabytes * 1024 * 1024
}

Loading…
Cancel
Save