mirror of https://github.com/m-labs/artiq.git
firmware: skip clock switch for efc
This commit is contained in:
parent
a2a780a3f2
commit
2139456f80
|
@ -463,6 +463,7 @@ const SI5324_SETTINGS: si5324::FrequencySettings
|
||||||
crystal_as_ckin2: true
|
crystal_as_ckin2: true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[cfg(not(soc_platform = "efc"))]
|
||||||
fn sysclk_setup() {
|
fn sysclk_setup() {
|
||||||
let switched = unsafe {
|
let switched = unsafe {
|
||||||
csr::crg::switch_done_read()
|
csr::crg::switch_done_read()
|
||||||
|
@ -529,6 +530,7 @@ pub extern fn main() -> i32 {
|
||||||
io_expander1.service().unwrap();
|
io_expander1.service().unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(soc_platform = "efc"))]
|
||||||
sysclk_setup();
|
sysclk_setup();
|
||||||
|
|
||||||
#[cfg(soc_platform = "efc")]
|
#[cfg(soc_platform = "efc")]
|
||||||
|
|
Loading…
Reference in New Issue