Commit graph

1188 commits

Author SHA1 Message Date
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
Frank Mori Hess
83058293b9 Added C++ wrapper for comedi_get_buffer_contents(). 2008-11-13 14:17:15 +00:00
Bernd Porr
9c3e25cddf Simplified the comedi rules for usbdux(fast). Also fixed the coldplug problem: the script was only called after a hotplug but not at boot time. This should work now. 2008-11-09 21:42:41 +00:00
Ian Abbott
4df5ffd451 Added some device and subdevice validity checks. 2008-11-05 12:52:25 +00:00
Ian Abbott
0038ed1467 Handle COMEDI_SUBD_PWM and check for future unknown subdevice types. 2008-11-05 11:40:42 +00:00
Frank Mori Hess
acfb8c3fb4 Made suffix on persistent subdevice symlinks use underscore
for consistency.
2008-10-20 19:49:02 +00:00
Frank Mori Hess
81ba50ceec Added example udev rules file for new udev/sysfs in comedi for pci boards. 2008-10-20 19:37:57 +00:00
Frank Mori Hess
8103c5334a Updated it to only run the (unreliable) do_test_for_insn_bits() if the
information was not available in the subdevice info.
2008-09-16 14:49:35 +00:00
Frank Mori Hess
4d61d75531 Added subdevice::subdevice_type() wrapper. 2008-09-16 14:48:14 +00:00
Frank Mori Hess
ac9f5f248f synced with comedi. 2008-09-16 14:01:38 +00:00
Frank Mori Hess
c13e19648b fixed typo in printf. 2008-09-04 21:24:42 +00:00
Frank Mori Hess
b94b2ba024 Fixed memory leak in comedi_cleanup_calibration(). 2008-08-29 19:17:40 +00:00
Frank Mori Hess
6c1a1cdacb Added missing return type to member function declaration. 2008-08-29 13:38:27 +00:00