i2c: Disabled on Cora Z7-10 #62

Merged
sb10q merged 1 commits from harry/zynq-rs:i2c into master 2020-08-10 18:46:32 +08:00
2 changed files with 31 additions and 27 deletions

View File

@ -205,6 +205,8 @@ pub fn main_core0() {
}
// Test I2C
#[cfg(feature = "target_zc706")]
{
let mut i2c = zynq::i2c::I2C::i2c();
i2c.init();
println!("I2C bit-banging enabled");
@ -233,6 +235,7 @@ pub fn main_core0() {
print!("{:02x} ", eeprom_buffer[i]);
}
println!("");
}
let eth = zynq::eth::Eth::default(HWADDR.clone());
println!("Eth on");

View File

@ -20,6 +20,7 @@ pub mod flash;
pub mod time;
pub mod timer;
pub mod sdio;
#[cfg(feature = "target_zc706")]
pub mod i2c;
pub mod logger;
pub mod ps7_init;