Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
MasterFIP - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
MasterFIP - Testing
Commits
3b003c9f
Commit
3b003c9f
authored
Mar 29, 2017
by
Marek Gumiński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test04
parent
143fcf35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
fmcmasterfip.py
python/fmcmasterfip.py
+1
-1
test04.py
python/test04.py
+3
-0
utilities.py
python/utilities.py
+2
-2
No files found.
python/fmcmasterfip.py
View file @
3b003c9f
...
...
@@ -143,7 +143,7 @@ class fmcmasterfip:
# Returns FMC temperature
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
def
sys_i2c_eeprom_write
(
self
,
addr
,
data
):
...
...
python/test04.py
View file @
3b003c9f
...
...
@@ -10,6 +10,7 @@ import spec
import
fmcmasterfip
as
fmc
import
utilities
as
util
import
ptsexcept
import
time
...
...
@@ -32,6 +33,8 @@ def main (card=None, default_directory='.',suite=None, serial=""):
# any error there causes critical error and test termination
dut
=
fmc
.
fmcmasterfip
(
carrier
,
abspath
,
util
.
FIRMWARE_PATH
)
time
.
sleep
(
10
)
###############################################################################
util
.
section_msg
(
"Reading and verifying unique ID"
)
id
=
dut
.
get_unique_id
()
...
...
python/utilities.py
View file @
3b003c9f
...
...
@@ -26,8 +26,8 @@ test05_sdbfs_path = "/python/sdbfs/"
test06_thd
=
2000
;
test06_thdratio
=
1.8
mintemp
=
0
maxtemp
=
8
0
mintemp
=
15
maxtemp
=
6
0
fmcmasterfip_commonpath
=
"/python/common"
fmcmasterfip_regspath
=
"/python/regs"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment