mirror of https://github.com/m-labs/artiq.git
sayma: fix sysref_delay_dac
This commit is contained in:
parent
c7de1f2e6b
commit
52ec849008
|
@ -373,9 +373,9 @@ pub mod hmc7043 {
|
||||||
pub fn sysref_delay_dac(dacno: u8, phase_offset: u8) {
|
pub fn sysref_delay_dac(dacno: u8, phase_offset: u8) {
|
||||||
spi_setup();
|
spi_setup();
|
||||||
if dacno == 0 {
|
if dacno == 0 {
|
||||||
write(0x00d5, phase_offset);
|
|
||||||
} else if dacno == 1 {
|
|
||||||
write(0x00e9, phase_offset);
|
write(0x00e9, phase_offset);
|
||||||
|
} else if dacno == 1 {
|
||||||
|
write(0x00d5, phase_offset);
|
||||||
} else {
|
} else {
|
||||||
unimplemented!();
|
unimplemented!();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue