Skip to content
Snippets Groups Projects

Apsct production

1 file
+ 4
5
Compare changes
  • Side-by-side
  • Inline
+ 4
5
@@ -27,8 +27,8 @@ if len(sys.argv) < 2:
@@ -27,8 +27,8 @@ if len(sys.argv) < 2:
exit()
exit()
apsct = apsct_lib.ApsctClass(CLK_FREQ)
apsct = apsct_lib.ApsctClass(CLK_FREQ)
state = True
modi = ["200MHz", "160MHz", "OFF"]
modi = ["200MHz"] # , "160MHz", "OFF"]
for mode in modi:
for mode in modi:
print(f"Check APSCT in {mode} mode")
print(f"Check APSCT in {mode} mode")
apsct.frequency = mode
apsct.frequency = mode
@@ -36,15 +36,14 @@ for mode in modi:
@@ -36,15 +36,14 @@ for mode in modi:
apsct.pll_200.read_lock()
apsct.pll_200.read_lock()
apsct.pll_160.read_lock()
apsct.pll_160.read_lock()
apsct.sensors.apsct_sensors()
apsct.sensors.apsct_sensors()
apsct.check_apsct()
state = state & apsct.check_apsct()
if READ_ALL:
if READ_ALL:
apsct.pll_200.read_all_regs_pll()
apsct.pll_200.read_all_regs_pll()
# apsct.pll_160.read_all_regs_pll()
# apsct.pll_160.read_all_regs_pll()
apsct.read_IO_expanderis()
apsct.read_IO_expanderis()
if apsct.check_apsct():
if state:
apsct_id = "APSCT-" + sys.argv[1]
apsct_id = "APSCT-" + sys.argv[1]
serial = sys.argv[2]
serial = sys.argv[2]
rw_ok = apsct.eeprom.wr_rd_eeprom(apsct_id, address=0)
rw_ok = apsct.eeprom.wr_rd_eeprom(apsct_id, address=0)
Loading