From 40ab4fee5bc6a90f327867b728f78c00b5637cf1 Mon Sep 17 00:00:00 2001 From: occheung Date: Wed, 23 Oct 2024 13:22:32 +0800 Subject: [PATCH] drtio_eem: move rx_ready out of init --- artiq/firmware/libboard_artiq/drtio_eem.rs | 5 +---- artiq/firmware/satman/main.rs | 7 ++++++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/artiq/firmware/libboard_artiq/drtio_eem.rs b/artiq/firmware/libboard_artiq/drtio_eem.rs index f1cd6afc8..08190ded3 100644 --- a/artiq/firmware/libboard_artiq/drtio_eem.rs +++ b/artiq/firmware/libboard_artiq/drtio_eem.rs @@ -211,9 +211,6 @@ pub fn init() { } }); - unsafe { - align_comma(); - csr::eem_transceiver::rx_ready_write(1); - } + unsafe { align_comma(); } } } diff --git a/artiq/firmware/satman/main.rs b/artiq/firmware/satman/main.rs index 11da3e1a1..8e265999e 100644 --- a/artiq/firmware/satman/main.rs +++ b/artiq/firmware/satman/main.rs @@ -777,7 +777,12 @@ pub extern fn main() -> i32 { }); #[cfg(has_drtio_eem)] - drtio_eem::init(); + { + drtio_eem::init(); + unsafe { + csr::eem_transceiver::rx_ready_write(1) + } + } #[cfg(has_drtio_routing)] let mut repeaters = [repeater::Repeater::default(); csr::DRTIOREP.len()];