Commit graph

11 commits

Author SHA1 Message Date
Ian Abbott
80d809282c demo: update demo programs to set read or write subdevice
Attempt to make the streaming command demos work if the specified
subdevice is not the default 'read' or 'write' subdevice (depending on
the direction of the command).

This uses the new comedi_set_read_subdevice() and
comedi_set_write_subdevice() functions.

Changing the read or write subdevice is currently supported only by the
Linux "in-tree" version of Comedi since kernel version 3.19.
2016-05-13 17:19:10 +01:00
Ian Abbott
e8cefc0a0d demo/ao_mmap: remove spurious 'i' from an output message 2013-11-08 13:12:01 +00:00
Ian Abbott
1f0020e108 demo/ao_mmap: remove msync() call
The msync() call doesn't seem to work on Comedi devices, and seems a bit
pointless anyway, as it is meant for use on files with a backing store.
Remove it.
2013-11-08 13:06:38 +00:00
Frank Mori Hess
bf4a793f51 Fixed warning on 32 bit arch, caused by my fix for 64 bits. 2007-10-29 01:12:57 +00:00
Frank Mori Hess
464fb550cc Fixed compile warning on amd64 2007-10-26 21:10:05 +00:00
Frank Mori Hess
12389d30c3 Moved comedi_internal_trigger into common.c 2007-08-10 18:48:03 +00:00
Frank Mori Hess
fbdf65b4f5 Made parse_options() write options to a struct instead of passing
them through global variables.
2007-01-03 21:14:53 +00:00
Frank Mori Hess
44d71a63cf Patch from abbotti@mev.co.uk (Ian Abbott):
Fixes compile error with gcc 2.96.
2006-05-02 02:09:02 +00:00
Frank Mori Hess
5d4729b9ec mmap works for output waveforms now. 2005-01-23 03:11:30 +00:00
Frank Mori Hess
8f06878f5d mark initial buffer contents as written, remove some unused variables,
fixed buffer overrun
2005-01-22 14:31:20 +00:00
Frank Mori Hess
99c8d0b5f1 added memory mapped ao waveform demo (untested) 2005-01-17 20:20:26 +00:00