Commit graph

1310 commits

Author SHA1 Message Date
Ian Abbott
bafead2b6d doc: Bump to version 0.10.1. 2012-08-28 12:08:47 +01:00
Ian Abbott
2c810c12e3 doc/install.xml: Describe comedi_num_legacy_minors.
Add some info to the Install section about reserving devices for manual
configuration using the comedi_num_legacy_minors module parameter.
2012-08-28 11:54:39 +01:00
Ian Abbott
6bd3e85bdf etc/udev: Add z99_comedi.rules to EXTRA_DIST
Mark z99_comedi.rules to be added to the released sources, but don't
install it.
2012-08-28 11:52:42 +01:00
Ian Abbott
604a4dd8aa udev: Add commented out rule to set group owner to "iocard".
There is already a commented out rule in the example udev rules file
"z99_comedi.rules" to set the mode to 0660 and set the group owner to
"comedi".  Add an almost identical commented out rule to set the group
owner to "iocard" as this is favoured by Debian.
2012-08-28 10:41:34 +01:00
Ian Abbott
a3fe997aed README.Git: Add dblatex to optional dependencies 2012-08-28 10:12:50 +01:00
Ian Abbott
c331390b14 configure.ac: Minor correction to example package version sequence.
Removed a stray '.'.
2012-08-22 12:48:53 +01:00
Ian Abbott
94ee527845 configure.ac: Expand rules for setting package/library version.
The comedilib manual version is usually only updated if the manual has
changed since the previous release (although it ought to change anyway
if any library interfaces have changed).  Allow a lower-case letter (or
sequence of letters) to be appended to the comedilib package version if
the only changes are outside the library sources and language bindings.
2012-08-22 12:20:03 +01:00
Ian Abbott
3f8ba17c76 configure.ac: Bump to 0.10.1
Bump the comedilib libtool version code to 10:1:10, so the comedilib
version becomes 0.10.1.

The comedilib manual version hasn't been updated.
2012-08-22 10:09:58 +01:00
Anders Blomdell
2b8c2f8087 comedi_open has file descriptor leak
If something fails after a succesful open, cleanup fails to close the file.

The code

   cleanup:
         if(it)
                 free(it);

needs to be replaced with something like:

   cleanup:
         if (it) {
           if (it->fd >= 0) {
             close(it->fd);
           }
         free(it);

Regards

Anders Blomdell
2012-08-22 09:54:19 +01:00
Ian Abbott
50ad010b31 configure.ac: Add reminder comment for updating documentation version.
The comedilib manual mentions the version of comedilib it applies to.
This is not done automatically; it is done by editing
"doc/comedilib.ent".  Add a comment to configure.ac as a reminder.
2012-05-15 14:31:08 +01:00
Ian Abbott
96078fcada doc: Add Comedilib version number
In "comedilib.ent", Add an XML entity 'comedilib_version' expanding to
the Comedilib version '0.10.0'.  This is hard-edited in rather than set
dynamically.  Setting it dynamically would be nice but producing it from
an AC_OUTPUT() file isn't all that nice as it would end up in the
'build' tree and we'd some ugly 'make' rule to copy it to the 'source'
tree.  For now, just edit it manually as required.  At least having it
as an entity means it only needs to be set in a single documentation
file!

In "comedilib.xml", change the subtitle to mention Comedilib and the
version number, using the comediliv_version entity.
2012-05-14 17:00:35 +01:00
Ian Abbott
648fac4772 demo/tut3.c: memset options to 0 before modifying
options.verbose was used uninitialized.
2012-05-14 15:04:10 +01:00
Ian Abbott
d1ad074b8c demo/tut3: Removed a couple of unused variables. 2012-05-14 14:54:33 +01:00
Ian Abbott
51dbae239b demo/pwm: Removed an unused variable. 2012-05-14 14:53:13 +01:00
Ian Abbott
68e11852cf demo/pwm: Bug fix - should have called comedi_close()
The code called close(device) instead of comedi_close(device) where
device came from comedi_open.
2012-05-14 14:51:06 +01:00
Ian Abbott
77e2628600 demo/choose_clock: Fix a printf.
"Selecting master clock %d for channel %d on subdevice %d.\n"

The %d after subdevice was missing although the corresponding parameter
in the argument list was present.
2012-05-14 14:45:37 +01:00
Ian Abbott
0f77a92830 comedi_board_info: Moved man page into ../man
I'm not sure if all man pages should go in the general 'man'
subdirectory or a more specific subdirectory, but as the general 'man'
subdirectory already contained a man page for comedi_config (which has
its own source subdirectory), I moved the man page for comedi_board_info
there for consistency.

Also changed the EXTRA_DIST line in man/Makefile.am.
2012-05-14 14:35:23 +01:00
Ian Abbott
8a63ce2ecc doc/drivers.txt: Minor correction for USB-DUX-FAST.
The Devices line still showed USB-DUX-FAST as USB-DUX.
2012-05-14 14:10:13 +01:00
Bernd Porr
bf8bd73b6b Updated the drivers.txt 2012-05-13 15:00:34 +01:00
Bernd Porr
02b796adde Changed my e-mail address to the linux-usb-daq one to be
consistent with the driver e-mails which I also changed
to the company e-mails adress.
2012-05-13 11:09:45 +01:00
Ian Abbott
b39b8cb8a4 doc/funcref: Fix "Returns:" for comedi_to_physical.
There was a stray space before the "Returns:" heading so it wasn't
processed as intended.  Also, there was an empty line above it leading
to an empty paragraph in the DocBook funcref.xml.
2012-05-11 12:56:55 +01:00
Ian Abbott
d7e611cc6f doc/funcref: Add links between comedi_to_phys and comedi_set_global_oor_behavior. 2012-05-11 12:45:29 +01:00
Ian Abbott
168fcd6ed6 doc/funcref: Moved in comedi_set_global_oor_behavior
Moved function comedi_set_global_oor_behavior out of the deprecated
section as it is associated with the comedi_to_phys function.
2012-05-11 12:34:31 +01:00
Bernd Porr
cda5011a87 Moved comedi_to_phys and comedi_from_phys back to the main
section. Both comedi_to_phys and comedi_to_physical complement
each other. Comedi_to_phys is linear and very fast whereas
comedi_to_physical is more precise but requires polynomials
and calibration data.
2012-05-11 11:15:45 +01:00
Ian Abbott
034f98154f doc/comedilib_html_config.xsl: Use numbered sections.
Change DocBook XSL parameters for HTML output to use numbered sections
(like it was before we switched from SGML to XML) and to use just the
numbers in cross references, rather than number and/or title.
2012-05-10 14:33:33 +01:00
Ian Abbott
f415b87538 doc/intro.xml: Replace a link to figure 1 with an xref. 2012-05-10 14:14:56 +01:00
Ian Abbott
ac090c7bdf demo/python/mmap.py: Fix buffer wraparound bug.
Fix bug reported by Ross Williamson where the code does not deal with
buffer wraparound within a chunk of data.
2012-05-10 13:49:57 +01:00
Ian Abbott
dbe3c77a3d doc/other.xml: Add extra details about range and aref.
Add extra detail to the section on acquisition functions about the
range and aref parameters, and describe the comedi_range type.

The whole section is still a bit higgledy-piggledy and could do with
some rearrangement one day!
2012-05-09 18:41:51 +01:00
Ian Abbott
98869fa36d doc/other.xml: Small DocBook mark-up fix.
Use proper mark-up for sqrt function in slowly varying inputs section.
2012-05-09 17:40:34 +01:00
Ian Abbott
2c729dbb34 doc/comedilib_dblatex_config.xsl: Set function.parens to "1".
Persuades dblatex to output parentheses for all the <function> tags,
even those without <parameter> tags inside.
2012-05-09 17:28:58 +01:00
Ian Abbott
24d02fde41 doc/comedilib_html_config.xsl: Set function.parens to "1".
This makes sure the HTML output for
<function>foo<parameter>bar</parameter><parameter>baz</parameter></function>
includes parentheses, although it doesn't seem to add empty parentheses
after a plain <function>foo</function> which perhaps it should.
2012-05-09 17:22:31 +01:00
Ian Abbott
b41732fa62 doc/reference.xml: Added CR_PACK_FLAGS()
Added description of CR_PACK_FLAGS() macro and the various flag bits.
2012-05-09 17:12:23 +01:00
Ian Abbott
c3ba569f87 doc/glossary.xml: A few DocBook mark-up changes. 2012-05-09 16:05:02 +01:00
Ian Abbott
4a6276c257 doc/driverwriting.xml: Various changes.
Some DocBook mark-up changes.  Also avoided absolute path-names for
sources as people tend to put them in different places!  Also changed
instructions for submitting drivers for review.
2012-05-09 15:50:17 +01:00
Ian Abbott
382f445b4a doc/extensions_funcref.txt: Some DocBook mark-up changes. 2012-05-09 14:45:18 +01:00
Ian Abbott
054ceeb77e doc/error_funcref.txt: Some DocBook mark-up changes. 2012-05-09 14:16:23 +01:00
Ian Abbott
32047d460b doc/dio_funcref.txt: Some DocBook mark-up changes. 2012-05-09 12:32:05 +01:00
Ian Abbott
4566a4a433 doc/deprecated_funcref.txt: Some DocBook mark-up changes. 2012-05-08 18:44:48 +01:00
Ian Abbott
c1cd802546 doc/calibration_funcref.txt: Some DocBook mark-up changes. 2012-05-08 18:08:56 +01:00
Ian Abbott
09106917de doc/command_funcref.txt: Some DocBook mark-up changes. 2012-05-08 17:08:16 +01:00
Ian Abbott
1c64dcb1b5 doc/funcref: Some DocBook mark-up changes. 2012-05-08 16:51:49 +01:00
Ian Abbott
eab51a0d94 doc/install.xml: Fixed a link. 2012-05-08 14:12:11 +01:00
Ian Abbott
5f95a358a6 doc/reference.xml: Minor change.
Used a proper cross reference to driver structures.
2012-05-08 14:04:55 +01:00
Ian Abbott
4874091364 doc/other.xml: More DocBook mark-up changes.
More changes, mostly adding <structfield> tags.
2012-05-08 13:58:27 +01:00
Ian Abbott
4bbaa29b41 doc/comedilib.ent: Got rid of a couple of redundant entities.
Got rid of the 'hellip' and 'uuml' entities in favour of predefined
versions of these entities.
2012-05-08 12:25:28 +01:00
Ian Abbott
5d91ff685d doc/install.xml: A few DocBook mark-up changes. 2012-05-08 12:11:55 +01:00
Ian Abbott
a814061d88 doc/tutorial.xml: A few DocBook mark-up changes. 2012-05-08 11:35:22 +01:00
Ian Abbott
df4d8963de doc/other.xml, reference.xml: Slowly varying inputs and comedi triggers
Mention that the stuff that relies on the COMEDI_TRIG ioctl, including
the slowly varying input (comedi_sv_...) functions no longer work with
current versions of the Comedi kernel layer.
2012-05-04 18:45:33 +01:00
Ian Abbott
8fae5ac58c doc/reference.xml: Improve description of comedi_insnlist...
... by adding a link to the comedi_do_insnlist function.
2012-05-04 18:29:47 +01:00
Ian Abbott
683e685c9f doc/reference.xml: Removed some comedilib internals.
Removed subdevice_struct as it is internal to comedilib.  Removed
struct comedi_t_struct, leaving only the comedi_t typedef as
applications only see it as a pointer to an opaque, incomplete type.
2012-05-04 18:20:42 +01:00