RTIO/SYS Clock merge #212
@ -477,6 +477,13 @@ pub extern fn main_core0() -> i32 {
|
|||||||
}
|
}
|
||||||
timer.delay_us(1500); // wait for CPLL/QPLL lock
|
timer.delay_us(1500); // wait for CPLL/QPLL lock
|
||||||
|
|
||||||
|
info!("Switching SYS clocks...");
|
||||||
|
unsafe {
|
||||||
|
csr::sys_crg::clock_switch_write(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
timer.delay_us(10_000); // wait for SYS PLL lock
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
csr::drtio_transceiver::txenable_write(0xffffffffu32 as _);
|
csr::drtio_transceiver::txenable_write(0xffffffffu32 as _);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user