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
1 merge request!3Apsct production
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment