Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
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
Simple PCIe FMC carrier SPEC
Commits
6f76b25a
Commit
6f76b25a
authored
Jun 26, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:py: close DMA file when object is removed for good
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
a32476d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
PySPEC.py
software/PySPEC/PySPEC/PySPEC.py
+3
-0
No files found.
software/PySPEC/PySPEC/PySPEC.py
View file @
6f76b25a
...
...
@@ -16,6 +16,9 @@ class PySPEC:
self
.
debugfs_fpga
=
os
.
path
.
join
(
self
.
debugfs
,
"spec-0000:{:s}"
.
format
(
self
.
pci_id
))
self
.
dma
=
os
.
path
.
join
(
self
.
debugfs_fpga
,
"dma"
)
def
__del__
(
self
):
self
.
dma_stop
()
def
dma_start
(
self
):
self
.
dma_file
=
open
(
self
.
dma
,
"rb"
,
buffering
=
0
)
...
...
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