forked from M-Labs/zynq-rs
1
0
Fork 0

fix ps7_init compilation error and warnings

This commit is contained in:
pca006132 2020-10-01 00:17:47 +08:00
parent 7c9edfdbd5
commit f60d0589cc
3 changed files with 11 additions and 3 deletions

View File

@ -34,6 +34,7 @@ impl DdrRam {
// We have not yet fixed red pitaya initialization yet. It seems // We have not yet fixed red pitaya initialization yet. It seems
// that the clock configuration, iob settings and ddr settings are // that the clock configuration, iob settings and ddr settings are
// all problematic // all problematic
#[cfg(feature = "target_redpitaya")]
ps7_init::apply(); ps7_init::apply();
let regs = regs::RegisterBlock::ddrc(); let regs = regs::RegisterBlock::ddrc();
DdrRam { regs } DdrRam { regs }

View File

@ -1,16 +1,19 @@
use crate::println; use crate::println;
#[cfg(feature = "target_zc706")]
mod zc706; mod zc706;
#[cfg(feature = "target_redpitaya")]
mod redpitaya; mod redpitaya;
// mod cora_z7_10; #[cfg(not(any(feature = "target_zc706", feature = "target_redpitaya")))]
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; use none as target;
pub fn report_differences() { pub fn report_differences() {
for (i, op) in target::INIT_DATA.iter().enumerate() { for (i, op) in target::INIT_DATA.iter().enumerate() {

View File

@ -0,0 +1,4 @@
use super::InitOp::{self, *};
pub const INIT_DATA: &'static [InitOp] = &[
];