Changed main.c to common.c
This commit is contained in:
parent
31b3e7ed7f
commit
b668811b9c
4 changed files with 8 additions and 8 deletions
|
@ -15,8 +15,8 @@ all: $(BINS) $(MBINS)
|
||||||
$(BINS): % : %.o
|
$(BINS): % : %.o
|
||||||
$(CC) $(LDFLAGS) -o $@ $<
|
$(CC) $(LDFLAGS) -o $@ $<
|
||||||
|
|
||||||
$(MBINS): % : %.o main.o
|
$(MBINS): % : %.o common.o
|
||||||
$(CC) $(LDFLAGS) -o $@ main.o $<
|
$(CC) $(LDFLAGS) -o $@ common.o $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f *.o $(BINS) $(MBINS)
|
-rm -f *.o $(BINS) $(MBINS)
|
||||||
|
|
10
demo/README
10
demo/README
|
@ -24,6 +24,10 @@ ao_waveform:
|
||||||
which currently is some of the members of the NI AT-MIO and PCI-MIO
|
which currently is some of the members of the NI AT-MIO and PCI-MIO
|
||||||
E series. Creates a sine wave on an analog output channel.
|
E series. Creates a sine wave on an analog output channel.
|
||||||
|
|
||||||
|
common:
|
||||||
|
This is not an example. The file common.c just contains some code
|
||||||
|
that is common to many of the examples.
|
||||||
|
|
||||||
cmd:
|
cmd:
|
||||||
An example for directly using Comedi commands. Comedi commands
|
An example for directly using Comedi commands. Comedi commands
|
||||||
are used for asynchronous acquisition, with the timing controlled
|
are used for asynchronous acquisition, with the timing controlled
|
||||||
|
@ -61,10 +65,6 @@ ledclock:
|
||||||
demo used a real-time task and controlled the parallel port
|
demo used a real-time task and controlled the parallel port
|
||||||
directly. This version is not complete.
|
directly. This version is not complete.
|
||||||
|
|
||||||
main:
|
|
||||||
This is not a demo. The file main.c just contains auxiliary
|
|
||||||
functions and parses options.
|
|
||||||
|
|
||||||
mmap:
|
mmap:
|
||||||
This example shows how to map the internal Comedi buffer
|
This example shows how to map the internal Comedi buffer
|
||||||
and directly access samples instead of using read() and
|
and directly access samples instead of using read() and
|
||||||
|
@ -106,7 +106,7 @@ tut2:
|
||||||
|
|
||||||
COMMAND-LINE OPTIONS:
|
COMMAND-LINE OPTIONS:
|
||||||
|
|
||||||
Many of these demos are linked with the file main.c, which parses
|
Many of these demos are linked with the file common.c, which parses
|
||||||
command line options. Some options don't make sense with all programs.
|
command line options. Some options don't make sense with all programs.
|
||||||
The options are:
|
The options are:
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ int main(int argc, char *argv[])
|
||||||
parse_options(argc,argv);
|
parse_options(argc,argv);
|
||||||
|
|
||||||
/* The following global variables used in this demo are
|
/* The following global variables used in this demo are
|
||||||
* defined in main.c, and can be modified by command line
|
* defined in common.c, and can be modified by command line
|
||||||
* options. When modifying this demo, you may want to
|
* options. When modifying this demo, you may want to
|
||||||
* change them here. */
|
* change them here. */
|
||||||
//filename = "/dev/comedi0";
|
//filename = "/dev/comedi0";
|
||||||
|
|
Loading…
Add table
Reference in a new issue