Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Production Test Suite - base
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
1
Merge Requests
1
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
Production Test Suite - base
Commits
fbef6775
Commit
fbef6775
authored
Apr 27, 2012
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments to onewire class.
parent
eda7837c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
onewire.py
common/onewire.py
+5
-1
No files found.
common/onewire.py
View file @
fbef6775
...
@@ -8,10 +8,13 @@
...
@@ -8,10 +8,13 @@
# Website: http://www.sevensols.com
# Website: http://www.sevensols.com
# Last modifications: 26/4/2012
# Last modifications: 26/4/2012
# Import standard modules
import
sys
import
sys
import
rr
import
time
import
time
# Import specific modules
import
rr
# Class to access the wishbone to onewire master module from OpenCores
# Class to access the wishbone to onewire master module from OpenCores
# http://opencores.org/project,sockit_owm
# http://opencores.org/project,sockit_owm
...
@@ -43,6 +46,7 @@ class COpenCoresOneWire:
...
@@ -43,6 +46,7 @@ class COpenCoresOneWire:
CDR_OVD_OFS
=
16
CDR_OVD_OFS
=
16
CDR_OVD_MSK
=
(
0XFFFF
<<
16
)
CDR_OVD_MSK
=
(
0XFFFF
<<
16
)
# Constants declaration
WAIT_TIME_OUT
=
2
WAIT_TIME_OUT
=
2
MAX_BLOCK_LEN
=
160
MAX_BLOCK_LEN
=
160
...
...
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