Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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 DEL 1ns 4cha
Commits
594ff1de
Commit
594ff1de
authored
May 27, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: show calibration tool version
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
bcafeb8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
fmc-fdelay-calibration.c
software/tools/fmc-fdelay-calibration.c
+11
-0
No files found.
software/tools/fmc-fdelay-calibration.c
View file @
594ff1de
...
...
@@ -18,6 +18,8 @@
#include <fine-delay.h>
char
git_version
[]
=
"git version: "
GIT_VERSION
;
static
const
char
program_name
[]
=
"fau-calibration"
;
static
char
options
[]
=
"hf:o:D:b"
;
static
const
char
help_msg
[]
=
...
...
@@ -34,6 +36,7 @@ static const char help_msg[] =
"General options:
\n
"
"-h Print this message
\n
"
"-b Show Calibration in binary form
\n
"
"-V Show tool version
\n
"
"
\n
"
"Read options:
\n
"
"-f Source file where to read calibration data from
\n
"
...
...
@@ -42,6 +45,11 @@ static const char help_msg[] =
"-D FMC FDelay Target Device ID
\n
"
"
\n
"
;
static
inline
void
fmc_fdelay_calibration_version
(
void
)
{
printf
(
"git_version: %s
\n
"
,
git_version
);
}
/**
* Read calibration data from file
* @path: file path
...
...
@@ -185,6 +193,9 @@ int main(int argc, char *argv[])
case
'b'
:
show_bin
=
1
;
break
;
case
'V'
:
fmc_fdelay_calibration_version
();
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