Commit 3b003c9f authored by Marek Gumiński's avatar Marek Gumiński

Fixed test04

parent 143fcf35
...@@ -143,7 +143,7 @@ class fmcmasterfip: ...@@ -143,7 +143,7 @@ class fmcmasterfip:
# Returns FMC temperature # Returns FMC temperature
def get_temp(self): def get_temp(self):
return self.fipcore.read_regname("ds1820_temper"); return (self.fipcore.read_regname("ds1820_temper")/16);
# write to EEPROM on system i2c bus # write to EEPROM on system i2c bus
def sys_i2c_eeprom_write(self, addr, data): def sys_i2c_eeprom_write(self, addr, data):
......
...@@ -10,6 +10,7 @@ import spec ...@@ -10,6 +10,7 @@ import spec
import fmcmasterfip as fmc import fmcmasterfip as fmc
import utilities as util import utilities as util
import ptsexcept import ptsexcept
import time
...@@ -32,6 +33,8 @@ def main (card=None, default_directory='.',suite=None, serial=""): ...@@ -32,6 +33,8 @@ def main (card=None, default_directory='.',suite=None, serial=""):
# any error there causes critical error and test termination # any error there causes critical error and test termination
dut = fmc.fmcmasterfip(carrier, abspath, util.FIRMWARE_PATH) dut = fmc.fmcmasterfip(carrier, abspath, util.FIRMWARE_PATH)
time.sleep(10)
############################################################################### ###############################################################################
util.section_msg("Reading and verifying unique ID") util.section_msg("Reading and verifying unique ID")
id = dut.get_unique_id() id = dut.get_unique_id()
......
...@@ -26,8 +26,8 @@ test05_sdbfs_path = "/python/sdbfs/" ...@@ -26,8 +26,8 @@ test05_sdbfs_path = "/python/sdbfs/"
test06_thd = 2000; test06_thd = 2000;
test06_thdratio = 1.8 test06_thdratio = 1.8
mintemp = 0 mintemp = 15
maxtemp = 80 maxtemp = 60
fmcmasterfip_commonpath="/python/common" fmcmasterfip_commonpath="/python/common"
fmcmasterfip_regspath="/python/regs" fmcmasterfip_regspath="/python/regs"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment