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
445ee122
Commit
445ee122
authored
Mar 17, 2022
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:lib: add const to a parameter of fmctdc_set_time
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
fd33f19c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fmctdc-lib.c
software/lib/fmctdc-lib.c
+1
-1
fmctdc-lib.h
software/lib/fmctdc-lib.h
+1
-1
No files found.
software/lib/fmctdc-lib.c
View file @
445ee122
...
...
@@ -861,7 +861,7 @@ int fmctdc_fread(struct fmctdc_board *userb, unsigned int channel,
* @param[in] t time-stamp
* @return 0 on success, otherwise -1 and errno is set
*/
int
fmctdc_set_time
(
struct
fmctdc_board
*
userb
,
struct
fmctdc_time
*
t
)
int
fmctdc_set_time
(
struct
fmctdc_board
*
userb
,
const
struct
fmctdc_time
*
t
)
{
__define_board
(
b
,
userb
);
uint32_t
attrs
[
ARRAY_SIZE
(
names
)];
...
...
software/lib/fmctdc-lib.h
View file @
445ee122
...
...
@@ -141,7 +141,7 @@ extern void fmctdc_exit(void);
* Set of function to configure TDC board and retrieve information
* about the current status
*/
extern
int
fmctdc_set_time
(
struct
fmctdc_board
*
b
,
struct
fmctdc_time
*
t
);
extern
int
fmctdc_set_time
(
struct
fmctdc_board
*
b
,
const
struct
fmctdc_time
*
t
);
extern
int
fmctdc_get_time
(
struct
fmctdc_board
*
b
,
struct
fmctdc_time
*
t
);
extern
int
fmctdc_set_host_time
(
struct
fmctdc_board
*
b
);
extern
int
fmctdc_wr_mode
(
struct
fmctdc_board
*
b
,
int
on
);
...
...
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