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
7f121843
Commit
7f121843
authored
Nov 05, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: Added clarification comments in sfp_eeprom.py
parent
4cf90a9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
sfp_eeprom.py
pts/python/sfp_eeprom.py
+4
-1
No files found.
pts/python/sfp_eeprom.py
View file @
7f121843
...
...
@@ -206,9 +206,12 @@ def main(bus,tname,inf,log):
i2c
=
COpenCoresI2C
(
bus
,
SFP_EEPROM_BASE
,
39
);
eeprom
=
EEPROM_SFP
(
i2c
,
SFP_EEPROM_I2C_ADDR
);
# Read SFP I2C identifier value, which should return 0x03 for an SFP or SFP+ connector type
# No other connectors are currently supported
# For more information, see INF-8074 (SFP) and SFF-8472 (SFP+)
type
=
eeprom
.
rd_reg8
(
0x0
);
if
(
type
==
3
)
:
if
(
type
==
0x03
)
:
inf
.
write
(
"SFP type (0x
%02
x) is correct
\n
"
%
type
)
else
:
msg
=
"ERROR: SFP-EEPROM: Wrong connector type (0x
%02
x). It should be 0x03."
%
type
...
...
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