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
3aed3ff1
Commit
3aed3ff1
authored
Jan 30, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: improve comment and remove debug print
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
b4179d59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
fmctdc-lib.c
lib/fmctdc-lib.c
+3
-4
No files found.
lib/fmctdc-lib.c
View file @
3aed3ff1
...
...
@@ -551,8 +551,8 @@ extern int fmctdc_check_wr_mode(struct fmctdc_board *userb)
/**
* It assigns a time reference to a target channel. After you set a reference,
* you will read
the difference of between the last reference pulse and the
* target.
* you will read
(from the target channel) the time-stamp difference between
* t
he last reference pulse and the t
arget.
* @param[in] userb TDC board instance token
* @param[in] ch_target target channel [1, 5]
* @param[in] ch_reference reference channel [0, 5]. Use 0 to remove reference
...
...
@@ -563,12 +563,11 @@ int fmctdc_reference_set(struct fmctdc_board *userb,
{
struct
__fmctdc_board
*
b
=
(
void
*
)(
userb
);
char
path
[
64
];
printf
(
"%s:%d
\n
"
,
__func__
,
__LINE__
);
if
(
ch_target
>
FMCTDC_NUM_CHANNELS
||
ch_target
<=
0
)
{
errno
=
EINVAL
;
return
-
1
;
}
printf
(
"%s:%d
\n
"
,
__func__
,
__LINE__
);
snprintf
(
path
,
sizeof
(
path
),
"ft-ch%d/diff-reference"
,
ch_target
);
return
fmctdc_sysfs_set
(
b
,
path
,
&
ch_reference
);
}
...
...
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