forked from M-Labs/artiq
1
0
Fork 0

Sayma: fix mistake in HMC7043 init code.

This commit is contained in:
Thomas Harty 2018-06-05 12:02:26 +01:00 committed by Sébastien Bourdeauducq
parent bd1ac7cf3b
commit 988054f4bb
1 changed files with 2 additions and 2 deletions

View File

@ -270,8 +270,8 @@ pub mod hmc7043 {
else { write(channel_base, 0x51); } else { write(channel_base, 0x51); }
} }
else { write(channel_base, 0x10); } else { write(channel_base, 0x10); }
write(channel_base + 0x1, (divider & 0x0ff) as u8); write(channel_base + 0x1, (divider & 0xff) as u8);
write(channel_base + 0x2, ((divider & 0x700) >> 8) as u8); write(channel_base + 0x2, ((divider & 0x0f) >> 8) as u8);
write(channel_base + 0x3, aphase & 0x1f); write(channel_base + 0x3, aphase & 0x1f);
write(channel_base + 0x4, dphase & 0x1f); write(channel_base + 0x4, dphase & 0x1f);