Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL RS485 - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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 RS485 - Testing
Commits
f67357cf
Commit
f67357cf
authored
Nov 17, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: Using new CSR.SWITCHES defintion in ttl_pulse_switch.py
parent
61819c37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ttl_pulse_switch.py
pts/python/ttl_pulse_switch.py
+1
-1
No files found.
pts/python/ttl_pulse_switch.py
View file @
f67357cf
...
...
@@ -199,7 +199,7 @@ def main(bus, tname, inf, log):
pel
.
set
(
msg
)
# Switches test
switches
=
(
bus
.
vv_read
(
CSR
)
&
0xff0000
)
>>
16
switches
=
(
bus
.
vv_read
(
CSR
)
>>
CSR_SWITCHES_OFS
)
&
0xff
if
(
switches
!=
0x80
):
msg
=
"ERROR: Switches readout (0x
%
x) incorrect - expected 0x80"
%
switches
pel
.
set
(
msg
)
...
...
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