Commit graph

141 commits

Author SHA1 Message Date
Frank Mori Hess
ebe72a2b2a Added more memory initialization for the sake of valgrind (especially
memory that gets set by ioctls that valgrind can't see).  Added a little
error handling for a few memory allocations.
2008-01-16 19:45:05 +00:00
Frank Mori Hess
4d07ce9969 Moved some wrappers for INSN_CONFIG instructions into comedilib.
Will add some reference documentation for the new functions soon.
2008-01-15 21:01:40 +00:00
Ian Abbott
0b21f80783 Avoid mixing declarations and code. 2007-12-10 13:20:19 +00:00
Frank Mori Hess
f87490e0f6 Fixed setting of comedi_errno in comedi_dio_config() for invalid
arguments.
2007-12-01 15:54:08 +00:00
Frank Mori Hess
792e4b741f Got rid of obsolete error codes. 2007-12-01 15:53:18 +00:00
Frank Mori Hess
1081d0ff02 Gave libscxi independent version info from libcomedi. Removed
attempt to link to libcomedi when building libscxi.
2007-08-19 18:30:26 +00:00
Frank Mori Hess
c1082cee65 Fixed comedi_get_cmd_generic_timed() by adding a chanlist_len
parameter.  Old version is still available in library, thanks to the
magic of the version_script.
2007-08-02 19:46:44 +00:00
Frank Mori Hess
2b04263bed Actually, according to current:revision:age practice, the next
release should be 0.8.0 since new functions have been added since
0.7.22.
2007-07-31 02:44:29 +00:00
Frank Mori Hess
8d74d571b3 Move to current:revision:age discipline for library version numbers.
Bumped version for next release.
2007-07-31 02:21:24 +00:00
Ian Abbott
06fa9b06b1 Add calib_lex.h to noinst_HEADERS. 2007-07-24 13:38:14 +00:00
Frank Mori Hess
c80870a4a6 Fixed compile warning under gcc 4.1.2 2007-04-18 14:04:39 +00:00
Frank Mori Hess
34b9800e40 Added const qualifiers to some char* return values. Added new
experimental comedi_dio_bitfield2() function which works with
> 32 channels.  Only works properly with ni_65xx currently.
Will post a request for review by any interested
parties to list before I bother making the rest of the drivers
work with it.
2006-10-17 18:19:29 +00:00
Frank Mori Hess
1421d0919e Added some primative support for using software calibration in a way
that can be integrated with boards that don't use software calibrations.
2006-09-07 19:09:04 +00:00
Frank Mori Hess
881600a31e Fill in inverse polynomials for first order soft calibrations. 2006-08-31 18:09:27 +00:00
Frank Mori Hess
e48a8d91df Added flex and bison generated files to MAINTAINERCLEANFILES 2006-08-31 15:29:44 +00:00
Frank Mori Hess
a186b9a33c Fix parsing of floating point values in exponential notation, and numbers
with a leading + or - sign (untested).
2006-08-28 22:59:42 +00:00
Frank Mori Hess
29358e699f Fixed problem with keeping track of whether a software calibration
is for the from_phys or to_phys direction.
2006-08-22 20:19:19 +00:00
Frank Mori Hess
4f26b59efc Parsing of calibration file with soft calibration information works now. 2006-08-22 20:13:44 +00:00
Frank Mori Hess
d686d1278f First pass at parsing additional calibration file elements which
support software calibration.
2006-08-22 18:14:22 +00:00
Bernd Porr
47450e4387 Creates the proper so-version defined in configure.ac. 2005-06-07 23:27:00 +00:00
Frank Mori Hess
58a2e315df return errors properly in comedi_mark_buffer_read() and
comedi_mark_buffer_written()
2005-04-25 21:43:37 +00:00
Frank Mori Hess
4f670c0248 fix for comedi_get_generic_timed() from Jan Gukelberger <g.u.g.i@gmx.de> 2005-04-25 21:41:48 +00:00
David Schleef
19442d5d06 Ugh, fix the soname problem 2005-04-07 22:36:05 +00:00
Frank Mori Hess
4d7d679826 updated version of comedi_get_subdevice_flags() which is capable of
returning dynamic flags like SDF_RUNNING or SDF_BUSY
2005-03-16 19:04:59 +00:00
Frank Mori Hess
2a720182e4 added comedi_dio_get_config() 2005-03-06 17:42:56 +00:00
Frank Mori Hess
5d4729b9ec mmap works for output waveforms now. 2005-01-23 03:11:30 +00:00
Frank Mori Hess
9f6b16e004 added comedi_mark_buffer_written() (untested) 2005-01-10 00:46:28 +00:00
Frank Mori Hess
9dd97c6470 fix strict aliasing warning 2004-06-20 01:45:16 +00:00
Frank Mori Hess
3d426c3cac fixes for srcdir != biulddir 2004-06-19 15:25:30 +00:00
Frank Mori Hess
0e94ca5098 fix compiler warnings about strict aliasing 2004-06-19 15:24:24 +00:00
Frank Mori Hess
c5028f9699 fix possibility of incorrect bison invocation, when make tries to
make calib_yacc.h before calib_yacc.c
2003-12-24 15:40:31 +00:00
Frank Mori Hess
29b0c0b5eb added a -release option for libtool, so it names the library with
the version instead of libcomedi-0.0.0.so
2003-09-03 02:59:00 +00:00
David Schleef
3602f4abab localstatedir should be /var, thus we need append a lib/ here 2003-08-30 04:21:50 +00:00
Frank Mori Hess
366e3a2613 add calib_yacc.h to BUILT_SOURCES 2003-08-21 16:10:56 +00:00
David Schleef
0a70a2f231 calibrations is installed in $localstatedir 2003-08-16 00:18:46 +00:00
David Schleef
cd7cab9458 dist generated lex and yacc sources 2003-08-16 00:18:04 +00:00
Frank Mori Hess
8e33ed9c6e added detection of flex/bison to configure 2003-07-06 00:11:13 +00:00
Frank Mori Hess
9825b8a1af be a little more careful about fixing up calibration file path, although
it doesn't make any practical difference
2003-05-31 16:58:45 +00:00
Frank Mori Hess
9b78a41963 fix default calibration file path for boards with '/' in name 2003-05-28 21:18:34 +00:00
Frank Mori Hess
aa47373687 replace return with YYABORT 2003-05-28 18:55:36 +00:00
Frank Mori Hess
6ad2b6c950 trying to fix undefined symbol problems people are having 2003-05-18 00:26:59 +00:00
Frank Mori Hess
4cfdf12baa added -D_REENTRANT to library cflags 2003-05-16 21:15:17 +00:00
Frank Mori Hess
4c95630d22 added driver name to default calibration file path 2003-05-09 00:00:51 +00:00
Frank Mori Hess
8a9e9861f1 made default comedi_calibrate behaviour a little smarter, shared more
code between comedilib and comedi_calibrate
2003-05-06 23:37:45 +00:00
Frank Mori Hess
0d0bfe17b9 exposed some lower-level calibration functions for more flexibility 2003-05-06 18:26:21 +00:00
Frank Mori Hess
d5ea98f55b changed convention for default calibration file naming to something
more transparent and robust (since I figured out how to get minor number
from code for ls)
2003-05-06 00:36:18 +00:00
Frank Mori Hess
9799051d65 fixed comedi_apply_calibration so it applies all matching calibrations
instead of just the first one
2003-05-05 03:18:19 +00:00
Frank Mori Hess
4db55f5044 moved COMEDI_VERSION_CODE() macro to comedilib.h, added some version
checks to comedi_calibrate so it complains if it's using a driver
with known bugs.  Converted 6071 calibration to ad8804 addressing.
2003-05-03 14:59:26 +00:00
Frank Mori Hess
e75f09dcf9 i shouldn't have made comedi_internal_data_read() inline, it's too long,
and it causes gcc 2.9 to produce a bogus warning
2003-05-03 14:57:15 +00:00
David Schleef
8ab858452b autoconfiscate 2003-05-02 07:53:44 +00:00