forked from M-Labs/artiq
1
0
Fork 0

firmware: skip clock switch for efc

This commit is contained in:
Sebastien Bourdeauducq 2023-08-25 15:06:42 +08:00
parent a2a780a3f2
commit 2139456f80
1 changed files with 2 additions and 0 deletions

View File

@ -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")]