forked from M-Labs/nac3
1
0
Fork 0

reset RTIO

This commit is contained in:
Sebastien Bourdeauducq 2020-04-26 09:58:02 +08:00
parent d8d09e219f
commit 6fbd6152da
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,12 @@ pub struct TimestampedData {
pub extern fn init() { pub extern fn init() {
// TODO // 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);
}
} }
pub extern fn get_destination_status(destination: i32) -> bool { pub extern fn get_destination_status(destination: i32) -> bool {