Compare commits
2 Commits
0fde82a982
...
8fd317d580
Author | SHA1 | Date |
---|---|---|
Astro | 8fd317d580 | |
Astro | 07fedddad9 |
|
@ -392,12 +392,14 @@ impl DdrRam {
|
||||||
/// actually there's 1 MB more but starting at 0x0000_0000
|
/// actually there's 1 MB more but starting at 0x0000_0000
|
||||||
/// overlaps with OCM.
|
/// overlaps with OCM.
|
||||||
pub fn size(&self) -> usize {
|
pub fn size(&self) -> usize {
|
||||||
|
// DDR range ends at 0x3FFF_FFFF in the default SCU address
|
||||||
|
// filtering address map
|
||||||
#[cfg(feature = "target_zc706")]
|
#[cfg(feature = "target_zc706")]
|
||||||
let megabytes = 1023;
|
let megabytes = 1023;
|
||||||
#[cfg(feature = "target_cora_z7_10")]
|
#[cfg(feature = "target_cora_z7_10")]
|
||||||
let megabytes = 512;
|
let megabytes = 512;
|
||||||
#[cfg(feature = "target_redpitaya")]
|
#[cfg(feature = "target_redpitaya")]
|
||||||
let megabytes = 511;
|
let megabytes = 512;
|
||||||
|
|
||||||
megabytes * 1024 * 1024
|
megabytes * 1024 * 1024
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -5,18 +5,14 @@ use crate::println;
|
||||||
mod zc706;
|
mod zc706;
|
||||||
#[cfg(feature = "target_redpitaya")]
|
#[cfg(feature = "target_redpitaya")]
|
||||||
mod redpitaya;
|
mod redpitaya;
|
||||||
#[cfg(feature = "target_cora_z7_10")]
|
#[cfg(not(any(feature = "target_zc706", feature = "target_redpitaya")))]
|
||||||
mod cora_z7_10;
|
|
||||||
#[cfg(not(any(feature = "target_zc706", feature = "target_redpitaya", feature = "target_cora_z7_10")))]
|
|
||||||
mod none;
|
mod none;
|
||||||
|
|
||||||
#[cfg(feature = "target_zc706")]
|
#[cfg(feature = "target_zc706")]
|
||||||
use zc706 as target;
|
use zc706 as target;
|
||||||
#[cfg(feature = "target_redpitaya")]
|
#[cfg(feature = "target_redpitaya")]
|
||||||
use redpitaya as target;
|
use redpitaya as target;
|
||||||
#[cfg(feature = "target_cora_z7_10")]
|
#[cfg(not(any(feature = "target_zc706", feature = "target_redpitaya")))]
|
||||||
use cora_z7_10 as target;
|
|
||||||
#[cfg(not(any(feature = "target_zc706", feature = "target_redpitaya", feature = "target_cora_z7_10")))]
|
|
||||||
use none as target;
|
use none as target;
|
||||||
|
|
||||||
pub fn report_differences() {
|
pub fn report_differences() {
|
||||||
|
|
Loading…
Reference in New Issue