From b7eacaeac723339ccdc2d2245e9b7cc9b53202c6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 26 Apr 2020 11:51:21 +0800 Subject: [PATCH] fix RTIO reset --- runtime/src/main.rs | 4 ++++ runtime/src/rtio.rs | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/main.rs b/runtime/src/main.rs index b920e66..447bf4c 100644 --- a/runtime/src/main.rs +++ b/runtime/src/main.rs @@ -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); } diff --git a/runtime/src/rtio.rs b/runtime/src/rtio.rs index 148c110..495c322 100644 --- a/runtime/src/rtio.rs +++ b/runtime/src/rtio.rs @@ -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); } }