Skip to content

Commit

Permalink
Sayma: fix mistake in HMC7043 init code.
Browse files Browse the repository at this point in the history
  • Loading branch information
hartytp authored and sbourdeauducq committed Jun 5, 2018
1 parent bd1ac7c commit 988054f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artiq/firmware/libboard_artiq/hmc830_7043.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ pub mod hmc7043 {
else { write(channel_base, 0x51); }
}
else { write(channel_base, 0x10); }
write(channel_base + 0x1, (divider & 0x0ff) as u8);
write(channel_base + 0x2, ((divider & 0x700) >> 8) as u8);
write(channel_base + 0x1, (divider & 0xff) as u8);
write(channel_base + 0x2, ((divider & 0x0f) >> 8) as u8);
write(channel_base + 0x3, aphase & 0x1f);
write(channel_base + 0x4, dphase & 0x1f);

Expand Down

0 comments on commit 988054f

Please sign in to comment.