fix RTIO reset
This commit is contained in:
parent
904ee3e730
commit
b7eacaeac7
@ -53,5 +53,9 @@ pub fn main_core0() {
|
|||||||
|
|
||||||
info!("Detected gateware: {}", identifier_read(&mut [0; 64]));
|
info!("Detected gateware: {}", identifier_read(&mut [0; 64]));
|
||||||
|
|
||||||
|
unsafe {
|
||||||
|
pl::csr::rtio_core::reset_phy_write(1);
|
||||||
|
}
|
||||||
|
|
||||||
comms::main(timer);
|
comms::main(timer);
|
||||||
}
|
}
|
||||||
|
@ -19,12 +19,8 @@ pub struct TimestampedData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub extern fn init() {
|
pub extern fn init() {
|
||||||
// TODO
|
|
||||||
unsafe {
|
unsafe {
|
||||||
csr::rtio_core::reset_write(1);
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user