2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-24 19:04:02 +08:00

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

View File

@ -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);