Skip to content
Snippets Groups Projects
Commit 2413c249 authored by Gijs Schoonderbeek's avatar Gijs Schoonderbeek
Browse files

Added PPS check

parent 352a06ba
No related branches found
No related tags found
Loading
......@@ -27,8 +27,8 @@ if len(sys.argv) < 2:
exit()
apsct = apsct_lib.ApsctClass(CLK_FREQ)
modi = ["200MHz", "160MHz", "OFF"]
state = True
modi = ["200MHz"] # , "160MHz", "OFF"]
for mode in modi:
print(f"Check APSCT in {mode} mode")
apsct.frequency = mode
......@@ -36,15 +36,14 @@ for mode in modi:
apsct.pll_200.read_lock()
apsct.pll_160.read_lock()
apsct.sensors.apsct_sensors()
apsct.check_apsct()
state = state & apsct.check_apsct()
if READ_ALL:
apsct.pll_200.read_all_regs_pll()
# apsct.pll_160.read_all_regs_pll()
apsct.read_IO_expanderis()
if apsct.check_apsct():
if state:
apsct_id = "APSCT-" + sys.argv[1]
serial = sys.argv[2]
rw_ok = apsct.eeprom.wr_rd_eeprom(apsct_id, address=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment