Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
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
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 ADC 100M 14b 4cha - Software
Commits
14326f81
Commit
14326f81
authored
Apr 30, 2014
by
Federico Vaga
Browse files
Options
Browse Files
Download
Plain Diff
Fix and imporve library tools
parents
5f7652ca
7a173aed
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
191 additions
and
107 deletions
+191
-107
Makefile
libtools/Makefile
+10
-0
fald-acq.c
libtools/fald-acq.c
+168
-104
fald-trg-cfg.c
libtools/fald-trg-cfg.c
+5
-1
Makefile
tools/Makefile
+8
-2
No files found.
libtools/Makefile
View file @
14326f81
DESTDIR
?=
/usr/local
LIBADC
=
../lib/
ZIO
?=
../zio
...
...
@@ -8,13 +10,21 @@ DEMOS := fald-simple-acq fald-acq fald-trg-cfg
DEMOS
+=
fald-simple-get-conf
DEMOS
+=
fald-test
all
:
demo
demo
:
$(DEMOS)
install
:
install
-d
$(DESTDIR)
/bin
install
-D
$(DEMOS)
$(DESTDIR)
/bin
%
:
%.c $(LIBADC)/libfmcadc.a
$(CC)
$(CFLAGS)
$^
-o
$@
$(LDFLAGS)
# make nothing for modules_install, but avoid errors
modules_install
:
clean
:
rm
-f
$(DEMOS)
*
.o
*
~
...
...
libtools/fald-acq.c
View file @
14326f81
This diff is collapsed.
Click to expand it.
libtools/fald-trg-cfg.c
View file @
14326f81
...
...
@@ -26,8 +26,12 @@ int main()
/* get user input */
for
(;;)
{
memset
(
msg
,
0
,
512
);
fprintf
(
stdout
,
"Change trig config using standard args: -a -b -c -n
\n
>>>: "
);
fprintf
(
stdout
,
"Change trig config using standard args: -a -b -c -n
-e
\n
>>>: "
);
ptr
=
fgets
(
msg
,
sizeof
(
msg
),
stdin
);
if
(
!
ptr
)
{
fprintf
(
stderr
,
"Error while reading options
\n
"
);
break
;
}
/* removing newline at the end */
if
(
msg
[
strlen
(
msg
)
-
1
]
==
'\n'
)
msg
[
strlen
(
msg
)
-
1
]
=
'\0'
;
...
...
tools/Makefile
View file @
14326f81
# user-space tools for spec-fine-delay
M
=
$(
shell
/bin/pwd
)
/../kernel
DESTDIR
?=
/usr/local
HOST_EXTRACFLAGS
+=
-I
$(M)
-I
$(ZIO)
/include
-Wno-trigraphs
-Wall
-ggdb
...
...
@@ -14,8 +16,12 @@ all modules: $(hostprogs-y)
clean
:
rm
-f
$
(
hostprogs-y
)
*
.o
*
~
# make nothing for module_install, but avoid errors
module_install
:
# make nothing for modules_install, but avoid errors
modules_install
:
install
:
install
-d
$(DESTDIR)
/bin
install
-D
$
(
hostprogs-y
)
$(DESTDIR)
/bin
# we need this as we are out of the kernel
%
:
%.c
...
...
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