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
3fe74289
Commit
3fe74289
authored
Jan 30, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: restore initial standard config
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
e55fb6e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
fmc-tdc-tstamp.c
tools/fmc-tdc-tstamp.c
+7
-2
No files found.
tools/fmc-tdc-tstamp.c
View file @
3fe74289
...
...
@@ -43,7 +43,7 @@ void dump_timestamp(struct fmctdc_time ts, int fmt_wr)
picoseconds
=
(
uint64_t
)
ts
.
coarse
*
8000ULL
+
(
uint64_t
)
ts
.
frac
*
8000ULL
/
4096ULL
;
fprintf
(
stdout
,
"%010"
PRIu64
"s %012
llu
ps"
,
"%010"
PRIu64
"s %012
"
PRIu64
"
ps"
,
ts
.
seconds
,
picoseconds
);
}
}
...
...
@@ -191,7 +191,6 @@ int main(int argc, char **argv)
/* If there are not channels, then dump them all */
if
(
!
chan_count
)
{
for
(
i
=
FMCTDC_CH_1
;
i
<=
FMCTDC_CH_LAST
;
i
++
)
{
printf
(
"%s:%d
\n
"
,
__func__
,
__LINE__
);
channels
[
i
-
FMCTDC_CH_1
]
=
fmctdc_fileno_channel
(
brd
,
i
);
ret
=
fmctdc_reference_set
(
brd
,
i
,
ref
[
i
-
1
]);
...
...
@@ -257,6 +256,12 @@ int main(int argc, char **argv)
}
}
/* Restore default time-stamping */
for
(
i
=
FMCTDC_CH_1
;
i
<=
FMCTDC_CH_LAST
;
i
++
)
{
if
(
channels
[
i
-
FMCTDC_CH_1
]
>
0
)
fmctdc_reference_clear
(
brd
,
i
);
}
fmctdc_close
(
brd
);
exit
(
EXIT_SUCCESS
);
}
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