Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
Conv TTL Blocking
Commits
ac123760
Commit
ac123760
authored
Oct 29, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: Updated testing of gateware version in some scripts
parent
f4465178
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
therm.py
software/diag/therm.py
+1
-1
mass-multiboot.py
software/multiboot/mass-multiboot.py
+1
-1
multiboot.py
software/multiboot/multiboot.py
+1
-1
No files found.
software/diag/therm.py
View file @
ac123760
...
...
@@ -248,7 +248,7 @@ if __name__ == "__main__":
gwvers
=
elma
.
read
(
slot
,
0x04
)
&
0xff
baseaddr
=
0x200
if
(
boardid
==
0x54424c4f
):
if
((
gwvers
>
0x10
)
and
(
gwvers
<
0x30
)):
if
((
gwvers
>
=
0x10
)
and
(
gwvers
<=
0x22
)):
baseaddr
=
0x080
# Create onewire and thermometer objects
...
...
software/multiboot/mass-multiboot.py
View file @
ac123760
...
...
@@ -69,7 +69,7 @@ def mass_multiboot(write, gw_path, iprog, iprogaddr):
gwvers
=
elma
.
read
(
slot
,
0x4
)
&
0xff
if
(
gwvers
==
0xff
):
mb_base
=
0x300
elif
((
gwvers
>
0x10
)
and
(
gwvers
<
0x23
))
or
\
elif
((
gwvers
>
=
0x10
)
and
(
gwvers
<=
0x22
))
or
\
(((
gwvers
&
0xf0
)
==
0x00
)
and
(
gwvers
<
0x02
)):
mb_base
=
0x40
...
...
software/multiboot/multiboot.py
View file @
ac123760
...
...
@@ -99,7 +99,7 @@ if __name__ == "__main__":
if
(
boardid
==
0x54424c4f
):
if
(
gwvers
==
0xff
):
baseaddr
=
0x300
elif
((
gwvers
>
0x10
)
and
(
gwvers
<
0x23
))
or
\
elif
((
gwvers
>
=
0x10
)
and
(
gwvers
<=
0x22
))
or
\
(((
gwvers
&
0xf0
)
==
0x00
)
and
(
gwvers
<
0x02
)):
baseaddr
=
0x040
...
...
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