Ian Abbott
b09e05a776
Removed comedi_calibrate.8 man page.
...
The comedi_calibrate.8 man page has been moved to the comedi_calibrate
package where it belongs. Thanks to W. Trevor King for pointing it out.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
2012-02-13 11:36:13 +00:00
Ian Abbott
2665ee5627
libcomedi: don't ignore channel in comedi_set_clock_source()
...
Fix bug reported by Finn Hoffman on comedi email list.
2011-12-01 15:37:43 +00:00
Christoph Schmidt-Hieber
54712cbf6a
m4/am-check-python-headers.m4: Python 3 wrapper for comedi
...
Here's a small patch to make the configure script compatible with Python
3. The wrapper itself (swig/python/comedi_python_wrap.c) will have to be
generated with SWIG >= 2.0.0 for Python 3 compatibility.
2011-08-17 10:36:24 +01:00
Ian Abbott
23e8eb609e
comedi_test: Remove unnecessary assignment of 'go' when checking data
...
The 'go' variable is only used by the 'while' loop that reads the data.
We don't need to set it in the 'for' loop that checks the data
afterwards.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
2011-06-27 13:08:08 +01:00
Ian Abbott
261d3e1029
comedi_test: Fix buffer overrun in test_mmap()
...
If the command does not stop immediately after the last sample, there
can be more data to read than we have room for. Make sure the 'while'
loop 'read()' does not overrun the end of the malloc'ed 'buf'.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
2011-06-27 13:03:03 +01:00
Ian Abbott
cceb2bc250
Fix a couple of typos.
...
A couple of the include files are missing the 'p' in 'published' in the
file header comment.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
2011-05-11 12:05:55 +01:00
Ian Abbott
cf20e6af6b
COMEDILIB_CFLAGS: Fix for separate build directory.
...
When doing an out-of-tree build, the comedi_version.h file is in
the build tree, not in the source tree. The CFLAGS needs an additional
-I option so the compiler can find it.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
2011-05-11 11:45:07 +01:00
Ian Abbott
5d34786aba
INSTALL: Changed cvs reference to git.
...
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
2011-05-10 14:42:46 +01:00
Ian Abbott
4941b694a7
README: Update mailing list details.
...
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
2011-05-10 14:41:02 +01:00
Ian Abbott
dee77a55ea
README: Changed CVS references to Git.
...
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
2011-05-10 14:36:06 +01:00
Ian Abbott
73c59552bf
README.CVS: Renamed to README.Git and edited slightly.
...
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
2011-05-10 14:22:16 +01:00
Ian Abbott
91a3504623
Add comedilib_version.h header, produced by ./configure,
...
included by comedilib.h, containing COMEDILIB_VERSION_MAJOR,
COMEDILIB_VERSION_MINOR, COMEDILIB_VERSION_MICRO, and
COMEDILIB_CHECK_VERSION(major,minor,micro). This can be used to perform
C pre-processor checks for API changes in comedilib.
2011-01-26 16:29:34 +00:00
Ian Abbott
c530564317
#include <sys/stat.h> needed for fstat().
2011-01-05 15:02:44 +00:00
Ian Abbott
cdb3a84f86
Updated procedures for building with Python's distutils. Also reduced
...
line-lengths for 80-character wide terminals. Most of the updated text
supplied by W. Trevor King. Ian Abbott added a note that it only applies
when building the wrappers separately from Comedilib without 'make'.
2010-12-20 15:49:59 +00:00
Ian Abbott
3fe8e6baac
Add sampl_t and lsampl_t array_class()es to comedi.i.
...
This makes it easier (possible?) to setup comedi_insn_struct and
comedi_cmd_struct instances.
Patch from W. Trevor King.
2010-12-20 14:50:21 +00:00
Ian Abbott
8800748314
Adjust setup.py to link against libtool's lib/.libs/.
...
Patch from W. Trevor King.
2010-12-17 13:56:26 +00:00
Ian Abbott
d5e7c2a116
Revert previous commit, renaming comedi_wrap.c back to comedi_python_wrap.c.
...
Add "comedi_python.i" swig interface file which merely %includes the
"comedi.i" in the parent directory. Fix paths in "setup.py" and set it up
to run swig directly (using "comedi_python.i" as the source). Change
"_comedi.py" to "comedi.py" (but keep the underscore prefix on the .so
and .la files).
Based on a patch by W. Trevor King.
2010-12-16 16:03:35 +00:00
Ian Abbott
5605af7eba
Use #ifdef SWIGRUBY around typemap(ruby,...) and remove the ruby argument.
2010-12-16 11:41:41 +00:00
Ian Abbott
6c6a5d5b4f
Renamed comedi_python_wrap.c to the swig default comedi_wrap.c.
2010-12-16 11:34:07 +00:00
Ian Abbott
eb57419204
Tag comedi_sv_measure's data as a swig output in comedilib.h.
...
Patch from W. Trevor King.
2010-12-16 11:29:10 +00:00
Ian Abbott
be1d22cb79
Added W. Trevor King to AUTHORS.
2010-12-14 14:43:49 +00:00
Ian Abbott
aa7fd8061e
Add -lm to comedilib.pc.in Libs.
...
Patch from W. Trevor King.
2010-12-14 14:41:55 +00:00
Ian Abbott
4b8bf1aff5
Import DESTDIR in swig/ruby/setup.rb for configurable rbconfig install paths.
...
Patch from W. Trevor King.
2010-12-14 14:37:18 +00:00
Ian Abbott
df57477cba
Change --disable-docbook-binding to --disable-docbook in configure options.
...
Patch from W. Trevor King.
2010-12-14 10:32:39 +00:00
Ian Abbott
309fc0d7f8
Include chanlist length in call to comedi_get_cmd_generic_timed.
...
Truncate the Float period to an integer.
2010-11-08 11:38:40 +00:00
Ian Abbott
003b9ec501
Add chanlist_len parameter to comedi_get_cmd_generic_timed.
2010-11-08 11:01:42 +00:00
Ian Abbott
41759a9bea
Defined SWIG_USE_OLD_TYPEMAPS as a temporary measure to work with SWIG 2.0.
2010-11-08 10:42:42 +00:00
Ian Abbott
5dcb180472
Specify EXTRA_DIST files in subdirectories explicitly.
2010-03-24 16:45:15 +00:00
Ian Abbott
b8a4f1a265
Added channel parameter to comedi_set_clock_source() and
...
comedi_get_clock_source(). Bumped library version to 0.10.0.
2010-03-19 13:44:56 +00:00
Ian Abbott
b06cecc151
comedi_find_range() should skip ranges that don't match specified units.
2010-02-17 18:28:15 +00:00
Ian Abbott
becded6ae0
Check subdevice type.
2009-08-13 11:16:04 +00:00
Ian Abbott
8a29362cd4
Use negative options.value to set up time as a duty cycle.
2009-08-13 11:09:05 +00:00
Bernd Porr
2387fcffef
Generates also binary format for the new comedi driver integrated into
...
the mainstrain linux kernel
2009-04-17 20:41:45 +00:00
Bernd Porr
0b9c89434c
Generates also binary format for the new kernel comedi drivers
2009-04-17 20:40:33 +00:00
Ian Abbott
0fbbf1a5f1
Add brief note about dependencies for Python and Ruby bindings.
2009-03-31 15:08:55 +00:00
Bernd Porr
1b52275fa2
Added the installtion instructions from the Wiki and removed reference
...
to Debian woody packages. I had recently quite a lot of e-mails
asking about the permissions of the comedi files and every time the
the problem was that the udev rules were installed in /usr/local/etc.
2009-03-16 19:30:39 +00:00
Ian Abbott
12eedd26b3
comedi_get_default_calibration_path(): Check result of asprintf() for error.
2009-02-18 15:35:09 +00:00
Ian Abbott
d7bdd10bd6
Update setup.rb using http://i.loveruby.net/archive/setup/setup-3.4.1.tar.gz
2009-02-18 15:14:53 +00:00
Ian Abbott
f2fdf25018
Move "comedi_errno.h" into "include/" and install it.
2009-02-18 14:47:06 +00:00
Ian Abbott
76a2e658b7
Put __comedi_errno variable into thread-local storage if the compiler
...
supports it. Configuration test uses Alan Woodland's 'ax_tls.m4' from
<http://autoconf-archive.cryp.to/ax_tls.html >.
2009-02-18 14:10:54 +00:00
Ian Abbott
24147c08a4
Allow swig to include comedi.h and comedilib.h from comedi.i to avoid
...
duplication.
2009-01-30 14:51:38 +00:00
Ian Abbott
3c25224334
Added updates from comedi.h and comedilib.h.
2009-01-30 14:21:52 +00:00
Ian Abbott
8ccf6492f4
Added dependencies flex and bison, and (optionally) swig, python, ruby and
...
xmlto.
2009-01-06 12:19:31 +00:00
Bernd Porr
3549993b55
the udev scripts are no longer needed because of autoconf in kernelspace
...
and the drivers request the firmware now via the standard udev firmware
helper.
2008-12-21 14:29:53 +00:00
Ian Abbott
564e9680b0
Fixed do_test_for_insn_bits(), broken by validity checks added to
...
comedi_do_insnlist(). Call comedi_ioctl() instead of comedi_do_insnlist().
2008-12-18 17:23:14 +00:00
Ian Abbott
9a06deb6f9
Removed unneeded comedi_insnlist from do_test_for_insn().
2008-12-18 16:44:20 +00:00
Ian Abbott
d8c3b29ca4
Corrected the 'BUG' message in do_test_for_insnlist() (it reported the
...
wrong function).
2008-12-18 16:38:51 +00:00
Ian Abbott
c234d5afbc
Oops, I missed one of the info to board_info changes.
2008-12-18 11:43:27 +00:00
Ian Abbott
80ac38a5b1
demo/info is now demo/board_info. Thanks to JuanPi for pointing it out.
2008-12-18 11:23:48 +00:00
Frank Mori Hess
8884128f3a
Persistent names by pci device path should be in by-path subdirectory,
...
not by-id.
2008-11-13 14:40:48 +00:00