Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pts-base
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
misc
pts-base
Commits
fbef6775
Commit
fbef6775
authored
12 years ago
by
Matthieu Cattin
Browse files
Options
Downloads
Patches
Plain Diff
Add comments to onewire class.
parent
eda7837c
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/onewire.py
+5
-1
5 additions, 1 deletion
common/onewire.py
with
5 additions
and
1 deletion
common/onewire.py
+
5
−
1
View file @
fbef6775
...
...
@@ -8,10 +8,13 @@
# Website: http://www.sevensols.com
# Last modifications: 26/4/2012
# Import standard modules
import
sys
import
rr
import
time
# Import specific modules
import
rr
# Class to access the wishbone to onewire master module from OpenCores
# http://opencores.org/project,sockit_owm
...
...
@@ -43,6 +46,7 @@ class COpenCoresOneWire:
CDR_OVD_OFS
=
16
CDR_OVD_MSK
=
(
0XFFFF
<<
16
)
# Constants declaration
WAIT_TIME_OUT
=
2
MAX_BLOCK_LEN
=
160
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment