fix ps7_init compilation error and warnings

pull/71/head
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
// that the clock configuration, iob settings and ddr settings are
// all problematic
#[cfg(feature = "target_redpitaya")]
ps7_init::apply();
let regs = regs::RegisterBlock::ddrc();
DdrRam { regs }

View File

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