drtio_eem: move rx_ready out of init

This commit is contained in:
occheung 2024-10-23 13:22:32 +08:00 committed by Sébastien Bourdeauducq
parent 27d54cb8f3
commit 40ab4fee5b
2 changed files with 7 additions and 5 deletions

View File

@ -211,9 +211,6 @@ pub fn init() {
}
});
unsafe {
align_comma();
csr::eem_transceiver::rx_ready_write(1);
}
unsafe { align_comma(); }
}
}

View File

@ -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()];