fix ps7_init compilation error and warnings
This commit is contained in:
parent
7c9edfdbd5
commit
f60d0589cc
@ -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 }
|
||||
|
@ -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() {
|
||||
|
4
libboard_zynq/src/ps7_init/none.rs
Normal file
4
libboard_zynq/src/ps7_init/none.rs
Normal file
@ -0,0 +1,4 @@
|
||||
use super::InitOp::{self, *};
|
||||
|
||||
pub const INIT_DATA: &'static [InitOp] = &[
|
||||
];
|
Loading…
Reference in New Issue
Block a user