Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
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
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
FMC TDC 1ns 5cha - Software
Commits
f43c88c0
Commit
f43c88c0
authored
Mar 31, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: it is not necesary anymore to read timestamp to flush
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
12f07ab0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
fmctdc-lib.c
lib/fmctdc-lib.c
+1
-8
No files found.
lib/fmctdc-lib.c
View file @
f43c88c0
...
...
@@ -678,9 +678,8 @@ int fmctdc_reference_get(struct fmctdc_board *userb, unsigned int ch_target)
int
fmctdc_flush
(
struct
fmctdc_board
*
userb
,
unsigned
int
channel
)
{
struct
__fmctdc_board
*
b
=
(
void
*
)(
userb
);
struct
fmctdc_time
t
[
10
];
char
path
[
64
];
int
i
,
en
,
err
;
int
en
,
err
;
if
(
channel
>=
FMCTDC_NUM_CHANNELS
)
{
errno
=
EINVAL
;
...
...
@@ -695,12 +694,6 @@ int fmctdc_flush(struct fmctdc_board *userb, unsigned int channel)
if
(
err
)
return
err
;
/* FIXME when TDC driver will have its zio-trigger this is not
* necessary anymore */
do
{
i
=
fmctdc_read
(
userb
,
channel
,
t
,
10
,
0
);
}
while
(
i
>
0
);
/* Flush ZIO buffer */
snprintf
(
path
,
sizeof
(
path
),
"ft-ch%d/chan0/buffer/flush"
,
channel
+
1
);
err
=
fmctdc_sysfs_set
(
b
,
path
,
&
channel
);
...
...
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