forked from M-Labs/artiq
1
0
Fork 0

fastino: fix init, set_cfg

This commit is contained in:
Robert Jördens 2020-01-16 13:39:52 +00:00
parent 2c4e5bfee4
commit c45a872cba
1 changed files with 3 additions and 3 deletions

View File

@ -29,9 +29,9 @@ class Fastino:
This clears reset, unsets DAC_CLR, enables AFE_PWR,
clears error counters, then enables error counting
"""
self.set_cfg(0x8)
self.set_cfg(reset=0, afe_power_down=0, dac_clr=0, clr_err=1)
delay(1*us)
self.set_cfg(0x0)
self.set_cfg(reset=0, afe_power_down=0, dac_clr=0, clr_err=0)
delay(1*us)
@kernel
@ -111,7 +111,7 @@ class Fastino:
This clears the sticky red error LED. Must be cleared to enable
error counting.
"""
self.write(0x22, (reset << 0) | (afe_pwr_disable << 1) |
self.write(0x22, (reset << 0) | (afe_power_down << 1) |
(dac_clr << 2) | (clr_err << 3))
@kernel