forked from M-Labs/nac3
1
0
Fork 0

fix RTIO reset

This commit is contained in:
Sebastien Bourdeauducq 2020-04-26 11:51:21 +08:00
parent 904ee3e730
commit b7eacaeac7
2 changed files with 4 additions and 4 deletions

View File

@ -53,5 +53,9 @@ pub fn main_core0() {
info!("Detected gateware: {}", identifier_read(&mut [0; 64]));
unsafe {
pl::csr::rtio_core::reset_phy_write(1);
}
comms::main(timer);
}

View File

@ -19,12 +19,8 @@ pub struct TimestampedData {
}
pub extern fn init() {
// TODO
unsafe {
csr::rtio_core::reset_write(1);
csr::rtio_core::reset_phy_write(1);
csr::rtio_core::reset_write(0);
csr::rtio_core::reset_phy_write(0);
}
}