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
2f5f41b7
Commit
2f5f41b7
authored
Apr 25, 2012
by
user
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a function to return the file descriptor of the SPEC board.
This function is used by the fmc_delay C library.
parent
ce1dbfb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
rr.py
gnurabbit/python/rr.py
+6
-2
No files found.
gnurabbit/python/rr.py
View file @
2f5f41b7
...
...
@@ -70,6 +70,9 @@ class Gennum(object):
self
.
loaderlib
=
CDLL
(
cwd
+
Gennum
.
rr_loader_lib
)
self
.
fd
=
os
.
open
(
Gennum
.
device
,
os
.
O_RDWR
)
def
get_fd
(
self
):
return
self
.
fd
def
iread
(
self
,
bar
,
offset
,
width
):
"""do a read by means of the ioctl interface
...
...
@@ -188,10 +191,11 @@ class Gennum(object):
return
self
.
errno
def
load_firmware
(
self
,
bitstream
):
self
.
loaderlib
.
rr_init
(
self
.
fd
)
self
.
err
=
self
.
loaderlib
.
rr_init
(
self
.
fd
)
self
.
loaderlib
.
gpio_config
()
self
.
loaderlib
.
gpio_bootselect
(
GENNUM_FPGA
)
return
self
.
loaderlib
.
rr_load_bitstream_from_file
(
bitstream
)
self
.
err
=
self
.
loaderlib
.
rr_load_bitstream_from_file
(
bitstream
)
return
self
.
err
if
__name__
==
'__main__'
:
g
=
Gennum
()
...
...
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