From 6fbd6152dadaeb0668471f59797d8562da6c5429 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 26 Apr 2020 09:58:02 +0800 Subject: [PATCH] reset RTIO --- runtime/src/rtio.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/src/rtio.rs b/runtime/src/rtio.rs index 7b1c0ab..148c110 100644 --- a/runtime/src/rtio.rs +++ b/runtime/src/rtio.rs @@ -20,6 +20,12 @@ 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); + } } pub extern fn get_destination_status(destination: i32) -> bool {