comedi.git
23 years agoFor some reason, rt_pend_tq.o was compiled separately. Fixed.
David Schleef [Sun, 27 May 2001 22:37:28 +0000 (22:37 +0000)]
For some reason, rt_pend_tq.o was compiled separately.  Fixed.
(Probably just created another bug...)

23 years agoifdef all the remaining trig related code
David Schleef [Sun, 27 May 2001 22:35:48 +0000 (22:35 +0000)]
ifdef all the remaining trig related code

23 years agodocs out of date
David Schleef [Sun, 27 May 2001 22:32:51 +0000 (22:32 +0000)]
docs out of date

23 years agoremoved insn emulation using trig[0]
David Schleef [Sun, 27 May 2001 21:48:19 +0000 (21:48 +0000)]
removed insn emulation using trig[0]

23 years agoCleanups, insn migration
David Schleef [Sun, 27 May 2001 21:13:41 +0000 (21:13 +0000)]
Cleanups, insn migration

23 years agoFix a couple checks, add comments
David Schleef [Sun, 27 May 2001 21:13:24 +0000 (21:13 +0000)]
Fix a couple checks, add comments

23 years agofix for EXTRAVERSION
David Schleef [Sun, 27 May 2001 20:23:00 +0000 (20:23 +0000)]
fix for EXTRAVERSION

23 years agoadded pci-das08 and pci-das1200 entries
Frank Mori Hess [Fri, 25 May 2001 22:05:03 +0000 (22:05 +0000)]
added pci-das08 and pci-das1200 entries

23 years agoupdates
Frank Mori Hess [Fri, 25 May 2001 21:59:20 +0000 (21:59 +0000)]
updates

23 years agofix so cards on bus 0 can be chosen through configuration options
Frank Mori Hess [Fri, 25 May 2001 21:43:34 +0000 (21:43 +0000)]
fix so cards on bus 0 can be chosen through configuration options

23 years agoadded support for pci-das08 card
Frank Mori Hess [Fri, 25 May 2001 21:39:54 +0000 (21:39 +0000)]
added support for pci-das08 card

23 years agofixed overwriting of cb_mask.
David Schleef [Fri, 25 May 2001 02:24:22 +0000 (02:24 +0000)]
fixed overwriting of cb_mask.

23 years agoCompilation fixes on powerpc
David Schleef [Fri, 25 May 2001 02:01:45 +0000 (02:01 +0000)]
Compilation fixes on powerpc

23 years agoAdded email from Dan Christian about Red Hat
David Schleef [Thu, 24 May 2001 19:01:54 +0000 (19:01 +0000)]
Added email from Dan Christian about Red Hat

23 years agoremoved di_unpack, do_pack.
David Schleef [Thu, 24 May 2001 01:41:12 +0000 (01:41 +0000)]
removed di_unpack, do_pack.

23 years agoCode cleanup, mainly things noticed by check_driver. A couple
David Schleef [Thu, 24 May 2001 01:28:08 +0000 (01:28 +0000)]
Code cleanup, mainly things noticed by check_driver.  A couple
of the drivers were converted to insn.

23 years agonew tests
David Schleef [Thu, 24 May 2001 00:47:30 +0000 (00:47 +0000)]
new tests

23 years ago*** empty log message ***
David Schleef [Thu, 24 May 2001 00:47:13 +0000 (00:47 +0000)]
*** empty log message ***

23 years agomarked (but did not fix =) a couple bugs
Frank Mori Hess [Mon, 21 May 2001 04:50:42 +0000 (04:50 +0000)]
marked (but did not fix =) a couple bugs

23 years agofixed problem with comedi_switch_to_rt() and irq-less comedi_rt_timer driver
Frank Mori Hess [Sat, 19 May 2001 20:46:29 +0000 (20:46 +0000)]
fixed problem with comedi_switch_to_rt() and irq-less comedi_rt_timer driver

23 years agoexported rt_pend_call() so that comedi_rt_timer can be configured multiple times
Frank Mori Hess [Sat, 19 May 2001 04:15:52 +0000 (04:15 +0000)]
exported rt_pend_call() so that comedi_rt_timer can be configured multiple times

23 years agoMITE DMA data is now unsigned short instead of twos complement. Also fixed
Tim Ousley [Fri, 18 May 2001 19:25:15 +0000 (19:25 +0000)]
MITE DMA data is now unsigned short instead of twos complement.  Also fixed
bug where the ISR would try to poll the STC fifo instead of letting the MITE
retrieve the data.

23 years agoimproved error handling a bit
Frank Mori Hess [Wed, 16 May 2001 04:58:28 +0000 (04:58 +0000)]
improved error handling a bit

23 years agoadded PXI-6533 support.
Tim Ousley [Tue, 15 May 2001 20:07:51 +0000 (20:07 +0000)]
added PXI-6533 support.

23 years agoadded card IDs and descriptions for several PXI cards: PXI-6071, PXI-6070,
Tim Ousley [Mon, 14 May 2001 20:53:42 +0000 (20:53 +0000)]
added card IDs and descriptions for several PXI cards: PXI-6071, PXI-6070,
PXI-6052, PXI-6040, PXI-6030, PXI-6025

23 years agoput start_rt_timer()back for rtai, as it looks like its needed but im not sure, put...
Frank Mori Hess [Mon, 14 May 2001 14:45:16 +0000 (14:45 +0000)]
put start_rt_timer()back for rtai, as it looks like its needed but im not sure, put in some
compatibility defines to reduce number of #ifdef CONFIG_COMEDI* statements

23 years ago602x doesn't have unipolar AI.
David Schleef [Mon, 14 May 2001 12:10:37 +0000 (12:10 +0000)]
602x doesn't have unipolar AI.

23 years agoUpdate from Dan
David Schleef [Mon, 14 May 2001 09:34:08 +0000 (09:34 +0000)]
Update from Dan

23 years agoadded comedi_rt_timer description
Frank Mori Hess [Mon, 14 May 2001 00:12:00 +0000 (00:12 +0000)]
added comedi_rt_timer description

23 years agobug fixes, analog output commands work now! Added scan_begin_src==TRIG_FOLLOW, conve...
Frank Mori Hess [Sun, 13 May 2001 23:41:36 +0000 (23:41 +0000)]
bug fixes, analog output commands work now!  Added scan_begin_src==TRIG_FOLLOW, convert_src==TRIG_TIMER.
TRIG_RT flag was causing null dereferences, that is fixed now from user space, but NOT when command is
called from kernel space.

23 years agofixed bug due to typo
Frank Mori Hess [Sun, 13 May 2001 18:19:19 +0000 (18:19 +0000)]
fixed bug due to typo

23 years agofixed spurious EINVAL errors on read and possibility of never becoming_nonbusy
Frank Mori Hess [Sat, 12 May 2001 00:00:01 +0000 (00:00 +0000)]
fixed spurious EINVAL errors on read and possibility of never becoming_nonbusy

23 years agonow it is fixed for real. Had to redefine rt_get_time() which still called broken...
Frank Mori Hess [Fri, 11 May 2001 23:24:58 +0000 (23:24 +0000)]
now it is fixed for real.  Had to redefine rt_get_time() which still called broken HRT_TO_8254() function.

23 years agoMITE does continuous AI now. Fixed bug so MIO cards can go 1.25MS/s. Fixed
Tim Ousley [Fri, 11 May 2001 20:18:49 +0000 (20:18 +0000)]
MITE does continuous AI now.  Fixed bug so MIO cards can go 1.25MS/s.  Fixed
some assorted MITE bugs.

23 years agonano2tick_hack() now gives exactly correct answer (rounded down to nearest integer)
Frank Mori Hess [Fri, 11 May 2001 16:00:22 +0000 (16:00 +0000)]
nano2tick_hack() now gives exactly correct answer (rounded down to nearest integer)

23 years agorolling back last change
Frank Mori Hess [Fri, 11 May 2001 14:58:41 +0000 (14:58 +0000)]
rolling back last change

23 years agoadded hack to fix broken rtlinux compatibility headers and let driver work for more...
Frank Mori Hess [Fri, 11 May 2001 04:29:11 +0000 (04:29 +0000)]
added hack to fix broken rtlinux compatibility headers and let driver work for more than a half hour

23 years agosome fixes, still gives divide error / segfault on rt_task_make periodic after about...
Frank Mori Hess [Thu, 10 May 2001 23:12:43 +0000 (23:12 +0000)]
some fixes, still gives divide error / segfault on rt_task_make periodic after about a half hour

23 years agochanged order or error check in read_v22() to get rid of spurious EINVAL errors when...
Frank Mori Hess [Thu, 10 May 2001 20:30:46 +0000 (20:30 +0000)]
changed order or error check in read_v22() to get rid of spurious EINVAL errors when using comedi_rt_timer

23 years agofixed dereferencing of chanlist, hopefully this will also fix the occasional segfaults
Frank Mori Hess [Thu, 10 May 2001 17:47:59 +0000 (17:47 +0000)]
fixed dereferencing of chanlist, hopefully this will also fix the occasional segfaults

23 years agofixed clearing of async->events
Frank Mori Hess [Thu, 10 May 2001 16:47:33 +0000 (16:47 +0000)]
fixed clearing of async->events

23 years agoni_ai_setup_MITE_dma() now configures MITE for correct # of bytes. mite
Tim Ousley [Thu, 10 May 2001 16:41:04 +0000 (16:41 +0000)]
ni_ai_setup_MITE_dma() now configures MITE for correct # of bytes. mite
interrupt handler now stops blocking when the MITE transfers a chunk of data.
handle_a_interrupt() does not stop the MITE prematurely (when STC generates
a SC.TC. interrupt)

23 years agofixed a bug I created, noticed that commands only work right the first try. Second...
Frank Mori Hess [Thu, 10 May 2001 15:30:41 +0000 (15:30 +0000)]
fixed a bug I created, noticed that commands only work right the first try.  Second try command seems to
start, then abort after 1 or a few samples then (from /proc/interrupts) start again and finish.

23 years agominor cleanups
David Schleef [Thu, 10 May 2001 10:18:09 +0000 (10:18 +0000)]
minor cleanups

23 years agoMinor cleanups
David Schleef [Thu, 10 May 2001 10:16:21 +0000 (10:16 +0000)]
Minor cleanups
Added ioctl poll support
Fixed AO cmdtest logic bug

23 years agoAdded poll ioctl
David Schleef [Thu, 10 May 2001 10:15:08 +0000 (10:15 +0000)]
Added poll ioctl
Moved checking code into common area
Minor cleanups

23 years agoMigrated from mode0 to insn
David Schleef [Thu, 10 May 2001 10:12:55 +0000 (10:12 +0000)]
Migrated from mode0 to insn

23 years agoadded rtd520 driver
David Schleef [Thu, 10 May 2001 10:09:53 +0000 (10:09 +0000)]
added rtd520 driver

23 years agoadded
David Schleef [Thu, 10 May 2001 10:08:43 +0000 (10:08 +0000)]
added

23 years agoUpdate from Dan
David Schleef [Thu, 10 May 2001 09:59:57 +0000 (09:59 +0000)]
Update from Dan

23 years agoAdded driver from Dan Christian <dac@ptolemy.arc.nasa.gov>
David Schleef [Thu, 10 May 2001 09:57:50 +0000 (09:57 +0000)]
Added driver from Dan Christian <dac@ptolemy.arc.nasa.gov>

23 years agoadded support for analog output commands. Untested except to check that analog input...
Frank Mori Hess [Thu, 10 May 2001 01:36:59 +0000 (01:36 +0000)]
added support for analog output commands.  Untested except to check that analog input still works.

23 years agooops, undid my last change. no more continuous DMA, but much more stable.
Tim Ousley [Mon, 7 May 2001 22:04:13 +0000 (22:04 +0000)]
oops, undid my last change.  no more continuous DMA, but much more stable.

23 years agocontinuous analog acquisition using MITE...
Tim Ousley [Mon, 7 May 2001 20:11:17 +0000 (20:11 +0000)]
continuous analog acquisition using MITE...

23 years agodealt with possible race between interrupt fifio half-full and external stop trigger
Frank Mori Hess [Mon, 7 May 2001 16:48:44 +0000 (16:48 +0000)]
dealt with possible race between interrupt fifio half-full and external stop trigger

23 years agoadded delarations of ret variable in comedi_map and unmap
Frank Mori Hess [Mon, 7 May 2001 15:58:45 +0000 (15:58 +0000)]
added delarations of ret variable in comedi_map and unmap

23 years agoAdded comedi_map, comedi_unmap, comedi_poll
David Schleef [Sat, 5 May 2001 11:35:51 +0000 (11:35 +0000)]
Added comedi_map, comedi_unmap, comedi_poll

23 years agoAdded comedi_map, comedi_unmap
David Schleef [Sat, 5 May 2001 11:35:27 +0000 (11:35 +0000)]
Added comedi_map, comedi_unmap

23 years agoadded entries for das800 and das1800 drivers
Frank Mori Hess [Sat, 5 May 2001 01:06:47 +0000 (01:06 +0000)]
added entries for das800 and das1800 drivers

23 years agofixed null dereference that occured when interrupt was handled before driver was...
Frank Mori Hess [Sat, 5 May 2001 00:51:22 +0000 (00:51 +0000)]
fixed null dereference that occured when interrupt was handled before driver was fully attached

23 years agorestored include of comedidev.h from comedi_rt.h so that spin locks can be used throu...
Frank Mori Hess [Fri, 4 May 2001 23:32:28 +0000 (23:32 +0000)]
restored include of comedidev.h from comedi_rt.h so that spin locks can be used through including comedi_rt.h instead of having to go
through comedidev.h.  This include was originally removed due to circular dependence between comedidev.h and comedi_rt.h
but they're just header files so it doesn't seem to matter.

23 years agobug fixes, seems to work
Frank Mori Hess [Fri, 4 May 2001 22:19:33 +0000 (22:19 +0000)]
bug fixes, seems to work

23 years agofixed bug with innaccurate pulse width measurement, and GPCT_Reset() does not
Tim Ousley [Fri, 4 May 2001 16:24:30 +0000 (16:24 +0000)]
fixed bug with innaccurate pulse width measurement, and GPCT_Reset() does not
affect the other counter now.

23 years agofixed trig modes > 0 for using cur_trig-> instead of async->
Frank Mori Hess [Thu, 3 May 2001 16:58:20 +0000 (16:58 +0000)]
fixed trig modes > 0 for using cur_trig-> instead of async->

23 years agodealt with switch from cur_trig->data, etc to async->data, etc
Frank Mori Hess [Thu, 3 May 2001 16:50:28 +0000 (16:50 +0000)]
dealt with switch from cur_trig->data, etc to async->data, etc

23 years agoadded some comments on what look like bugs
Frank Mori Hess [Thu, 3 May 2001 16:24:20 +0000 (16:24 +0000)]
added some comments on what look like bugs

23 years agofixed bug where pulsewidth meas. armed incorrectly
Tim Ousley [Wed, 2 May 2001 21:50:46 +0000 (21:50 +0000)]
fixed bug where pulsewidth meas. armed incorrectly

23 years agochanged GPCTR to GPCT and gpctr to gpct.
Tim Ousley [Wed, 2 May 2001 19:39:41 +0000 (19:39 +0000)]
changed GPCTR to GPCT and gpctr to gpct.

23 years agocomedi specific error codes to be used in comedilib only so this header unnecessary...
Frank Mori Hess [Wed, 2 May 2001 18:17:54 +0000 (18:17 +0000)]
comedi specific error codes to be used in comedilib only so this header unnecessary here

23 years agoa small step towards standardized comedi error codes
Frank Mori Hess [Wed, 2 May 2001 00:08:28 +0000 (00:08 +0000)]
a small step towards standardized comedi error codes

23 years agoGPCTR compiles by default, #defined insn to get internal gpctr timebase
Tim Ousley [Tue, 1 May 2001 21:53:59 +0000 (21:53 +0000)]
GPCTR compiles by default, #defined insn to get internal gpctr timebase

23 years agorenmaed to COPYING
Frank Mori Hess [Tue, 1 May 2001 20:50:28 +0000 (20:50 +0000)]
renmaed to COPYING

23 years agonamed GPL file COPYING instead of LICENSE
Frank Mori Hess [Tue, 1 May 2001 20:50:01 +0000 (20:50 +0000)]
named GPL file COPYING instead of LICENSE

23 years agoadded copy of GPL
Frank Mori Hess [Tue, 1 May 2001 20:47:35 +0000 (20:47 +0000)]
added copy of GPL

23 years agofixed bug with gating.
Tim Ousley [Tue, 1 May 2001 19:51:05 +0000 (19:51 +0000)]
fixed bug with gating.

23 years agocomedi_command shouldn't set _EOS
David Schleef [Sat, 28 Apr 2001 16:24:50 +0000 (16:24 +0000)]
comedi_command shouldn't set _EOS

23 years agocompiles now with MITE DMA support
Tim Ousley [Fri, 27 Apr 2001 16:16:54 +0000 (16:16 +0000)]
compiles now with MITE DMA support

23 years agoinsn based counter/timer operations now work, including event counting,
Tim Ousley [Fri, 27 Apr 2001 16:00:05 +0000 (16:00 +0000)]
insn based counter/timer operations now work, including event counting,
period and pulse width measurement, single and continuous pulse generation,
and quadrature encoder reading

23 years agouse dev->spinlock now instead of creating my own spinlock in dev->private
Frank Mori Hess [Fri, 27 Apr 2001 15:49:55 +0000 (15:49 +0000)]
use dev->spinlock now instead of creating my own spinlock in dev->private

23 years agoadded single pulse generation using the GPCTRs. almost works, I just need
Tim Ousley [Thu, 26 Apr 2001 21:08:12 +0000 (21:08 +0000)]
added single pulse generation using the GPCTRs.  almost works, I just need
to enable the output signal.

23 years agoPeriod measurement and pulsewidth measurement now work correctly.
Tim Ousley [Wed, 25 Apr 2001 21:03:28 +0000 (21:03 +0000)]
Period measurement and pulsewidth measurement now work correctly.

23 years agoCheck async structure in comedi_unlock
David Schleef [Wed, 25 Apr 2001 09:24:43 +0000 (09:24 +0000)]
Check async structure in comedi_unlock

23 years agofixed compile errors
Frank Mori Hess [Tue, 24 Apr 2001 17:50:06 +0000 (17:50 +0000)]
fixed compile errors

23 years agopatch to make comedi_rt_timer.c compile under rtlinux 3.0
Frank Mori Hess [Tue, 24 Apr 2001 17:34:51 +0000 (17:34 +0000)]
patch to make comedi_rt_timer.c compile under rtlinux 3.0

23 years agoAdded PCI-6713 and PCI-6711 board definitions. Added disable
David Schleef [Mon, 23 Apr 2001 20:23:53 +0000 (20:23 +0000)]
Added PCI-6713 and PCI-6711 board definitions.  Added disable
of AI subdevice if no AI capability.

23 years agochange to make comedi_error() callable from a driver's attach function
Frank Mori Hess [Fri, 20 Apr 2001 23:43:32 +0000 (23:43 +0000)]
change to make comedi_error() callable from a driver's attach function

23 years agoupdate, fixes, cleanup
Frank Mori Hess [Fri, 20 Apr 2001 23:42:36 +0000 (23:42 +0000)]
update, fixes, cleanup

23 years agofixed initialization of comedi_device bug due to sizeof returning size of pointer...
Frank Mori Hess [Fri, 20 Apr 2001 22:43:20 +0000 (22:43 +0000)]
fixed initialization of comedi_device bug due to sizeof returning size of pointer instead of object

23 years agoSimple event counting (and quadrature encoding) works correctly from user
Tim Ousley [Fri, 20 Apr 2001 19:15:20 +0000 (19:15 +0000)]
Simple event counting (and quadrature encoding) works correctly from user
process using insn API.  Added some constants for other GPCTR operations.
GPCTR constants now are XORable for debugging purposes.

23 years agoadded first draft of insn API for GPCTRs
Tim Ousley [Thu, 19 Apr 2001 21:36:28 +0000 (21:36 +0000)]
added first draft of insn API for GPCTRs

23 years agoMajor fixes. Updates for cmd/insn, compiles for RTAI, fails strangely.
David Schleef [Thu, 19 Apr 2001 07:29:57 +0000 (07:29 +0000)]
Major fixes.  Updates for cmd/insn, compiles for RTAI, fails strangely.

23 years agoremove dependency on bc
David Schleef [Thu, 19 Apr 2001 07:28:53 +0000 (07:28 +0000)]
remove dependency on bc

23 years agoSpecs for new card
David Schleef [Thu, 19 Apr 2001 07:27:53 +0000 (07:27 +0000)]
Specs for new card

23 years agoLogic error
David Schleef [Thu, 19 Apr 2001 07:27:33 +0000 (07:27 +0000)]
Logic error

23 years agochange 2.3 to 2.4
David Schleef [Thu, 19 Apr 2001 07:21:54 +0000 (07:21 +0000)]
change 2.3 to 2.4

23 years agostarted adding an insn interface to GPCTRs.
Tim Ousley [Wed, 18 Apr 2001 20:57:09 +0000 (20:57 +0000)]
started adding an insn interface to GPCTRs.

23 years agoGPCTR_Begin_Event_Counting() functions now, although it isn't very flexible.
Tim Ousley [Tue, 17 Apr 2001 21:47:02 +0000 (21:47 +0000)]
GPCTR_Begin_Event_Counting() functions now, although it isn't very flexible.

23 years agofixed some problems with last change trying to dereferency s->async in cmdtest, and...
Frank Mori Hess [Tue, 17 Apr 2001 21:24:24 +0000 (21:24 +0000)]
fixed some problems with last change trying to dereferency s->async in cmdtest, and merged gain lookup tables into board struct

23 years agoadded checking of chanlist against limitations of das800 autoscan mode
Frank Mori Hess [Tue, 17 Apr 2001 20:53:49 +0000 (20:53 +0000)]
added checking of chanlist against limitations of das800 autoscan mode

23 years agoadded ni_set_bits(dev,register,bits, value) to share access to interrupt and
Tim Ousley [Tue, 17 Apr 2001 20:52:04 +0000 (20:52 +0000)]
added ni_set_bits(dev,register,bits, value) to share access to interrupt and
pfi registers.  This should let AI, AO, and CTR code all share the interrupts.
Some of the GPCTR functions appear to work now in kernel tests.