Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Commits
c02c72f1
Commit
c02c72f1
authored
Oct 10, 2012
by
Samuel Iglesias Gonsálvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdc: change name of input_enable parameter to channel_term
parent
3e608ada
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libtdc.c
lib/libtdc.c
+4
-4
No files found.
lib/libtdc.c
View file @
c02c72f1
...
...
@@ -180,7 +180,7 @@ int tdc_close(struct tdc_board *b)
b
->
data
[
j
]
=
-
1
;
}
free
(
b
->
sysbase
);
free
(
b
->
sysbase
;)
free
(
b
->
devbase
);
free
(
b
);
return
0
;
...
...
@@ -253,7 +253,7 @@ int tdc_set_active_channels(struct tdc_board *b, uint32_t config)
b
->
chan_config
=
(
b
->
chan_config
&
TDC_INPUT_ENABLE_FLAG
)
|
config
;
/* Hardware deactivation */
res
=
__tdc_sysfs_set
(
b
,
"
input_enable
"
,
b
->
chan_config
);
res
=
__tdc_sysfs_set
(
b
,
"
channel_term
"
,
b
->
chan_config
);
if
(
res
)
{
fprintf
(
stderr
,
"Error setting chan config in hardware
\n
"
);
return
res
;
...
...
@@ -286,13 +286,13 @@ int tdc_get_active_channels(struct tdc_board *b, uint32_t *config)
int
tdc_activate_all_channels
(
struct
tdc_board
*
b
)
{
b
->
chan_config
|=
TDC_INPUT_ENABLE_FLAG
;
return
__tdc_sysfs_set
(
b
,
"
input_enable
"
,
b
->
chan_config
);
return
__tdc_sysfs_set
(
b
,
"
channel_term
"
,
b
->
chan_config
);
}
int
tdc_deactivate_all_channels
(
struct
tdc_board
*
b
)
{
b
->
chan_config
&=
~
TDC_INPUT_ENABLE_FLAG
;
return
__tdc_sysfs_set
(
b
,
"
input_enable
"
,
b
->
chan_config
);
return
__tdc_sysfs_set
(
b
,
"
channel_term
"
,
b
->
chan_config
);
}
int
tdc_get_circular_buffer_pointer
(
struct
tdc_board
*
b
,
uint32_t
*
ptr
)
...
...
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