forked from M-Labs/artiq-zynq
slight cleanup, started work on master mode
This commit is contained in:
parent
1160676fd6
commit
0b89cf8002
@ -172,6 +172,14 @@ pub fn main_core0() {
|
||||
}
|
||||
};
|
||||
|
||||
#[cfg(has_drtio)]
|
||||
let drtio_routing_table = drtio_routing::config_routing_table(csr::DRTIO.len(), cfg);
|
||||
#[cfg(not(has_drtio))]
|
||||
let drtio_routing_table = drtio_routing::RoutingTable::default_empty();
|
||||
let up_destinations = [false; drtio_routing::DEST_COUNT];
|
||||
#[cfg(has_drtio_routing)]
|
||||
drtio_routing::interconnect_disable_all();
|
||||
|
||||
init_rtio(&mut timer, &cfg);
|
||||
task::spawn(report_async_rtio_errors());
|
||||
|
||||
|
@ -406,21 +406,7 @@ fn hardware_tick(ts: &mut u64, timer: &mut GlobalTimer) {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(all(has_si5324, rtio_frequency = "150.0"))]
|
||||
const SI5324_SETTINGS: si5324::FrequencySettings
|
||||
= si5324::FrequencySettings {
|
||||
n1_hs : 6,
|
||||
nc1_ls : 6,
|
||||
n2_hs : 10,
|
||||
n2_ls : 270,
|
||||
n31 : 75,
|
||||
n32 : 75,
|
||||
bwsel : 4,
|
||||
crystal_ref: true
|
||||
};
|
||||
|
||||
// rtio frequencies other than 125 MHz won't be supported?
|
||||
#[cfg(all(has_si5324, rtio_frequency = "125.0"))]
|
||||
#[cfg(has_si5324)]
|
||||
const SI5324_SETTINGS: si5324::FrequencySettings
|
||||
= si5324::FrequencySettings {
|
||||
n1_hs : 5,
|
||||
|
Loading…
Reference in New Issue
Block a user