hmc7043: wait after changing delays

Allows for the SPI transaction to finish, and for the delay to stabilize.
This commit is contained in:
Sebastien Bourdeauducq 2018-07-12 12:33:50 +08:00
parent 1c191a62bf
commit c66f9483f8
1 changed files with 3 additions and 0 deletions

View File

@ -386,6 +386,7 @@ pub mod hmc7043 {
} else {
unimplemented!();
}
clock::spin_us(100);
}
fn sysref_offset_fpga(phase_offset: u16) {
@ -394,12 +395,14 @@ pub mod hmc7043 {
spi_setup();
write(0x0111, analog_delay);
write(0x0112, digital_delay);
clock::spin_us(100);
}
fn sysref_slip() {
spi_setup();
write(0x0002, 0x02);
write(0x0002, 0x00);
clock::spin_us(100);
}
fn sysref_sample() -> bool {