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
0a8367b6
Commit
0a8367b6
authored
Oct 03, 2012
by
Miguel Gómez Sexto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Library test adjustment
Signed-off-by:
Miguel Gomez
<
magomez@igalia.com
>
parent
5b2c4cac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
test.c
lib/test.c
+7
-2
No files found.
lib/test.c
View file @
0a8367b6
...
...
@@ -20,6 +20,8 @@ int main(int argc, char **argv)
exit
(
1
);
}
#if 0
/* set/get UTC time */
set = 123;
if (tdc_set_utc_time(b, set))
...
...
@@ -147,11 +149,14 @@ int main(int argc, char **argv)
else
printf("Read with disabled chans wrong\n");
#endif
/* read from valid chan */
tdc_set_host_utc_time
(
b
);
tdc_activate_all_channels
(
b
);
tdc_set_active_channels
(
b
,
CHAN0
);
tdc_set_time_threshold
(
b
,
10
);
tdc_set_active_channels
(
b
,
CHAN0
|
CHAN1
|
CHAN2
|
CHAN3
|
CHAN4
);
tdc_set_time_threshold
(
b
,
1
);
tdc_set_timestamp_threshold
(
b
,
10
);
tdc_start_acquisition
(
b
);
for
(
i
=
0
;
i
<
100
;
i
++
)
{
/* this should be a blocking read */
...
...
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