Copied the etc/ directory from Comedi
This commit is contained in:
parent
915c97e042
commit
0afe6fffeb
6 changed files with 298 additions and 0 deletions
11
etc/conf.modules
Normal file
11
etc/conf.modules
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
#
|
||||
# add these lines to /etc/conf.modules
|
||||
#
|
||||
|
||||
alias char-major-98 comedi
|
||||
post-install comedi /etc/comedi.conf
|
||||
|
||||
#alias char-major-98-0 your_driver
|
||||
#post-install your_driver /usr/sbin/comedi_config /dev/comedi0 your_driver options
|
||||
|
89
etc/das1600.conf
Executable file
89
etc/das1600.conf
Executable file
|
@ -0,0 +1,89 @@
|
|||
#!/bin/sh
|
||||
# Configuration for das1600 driver
|
||||
# Thomas Henkel and ds
|
||||
|
||||
### Device file
|
||||
DEVICE=/dev/comedi0
|
||||
|
||||
|
||||
### Type of board
|
||||
### Choose one
|
||||
BOARD=das1601/12
|
||||
#BOARD=das1602/12
|
||||
#BOARD=das1602/16
|
||||
|
||||
|
||||
### Option 0: Board base address
|
||||
### Depends on jumper settings
|
||||
IO_BASE=0x320
|
||||
|
||||
|
||||
### Option 1: IRQ
|
||||
### Choose one
|
||||
#IRQ=0 # don't use interrupts
|
||||
#IRQ=3
|
||||
#IRQ=4
|
||||
#IRQ=5
|
||||
#IRQ=6
|
||||
IRQ=7
|
||||
#IRQ=9
|
||||
|
||||
|
||||
### Option 2: DMA channel
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
DMA=0 # don't use DMA
|
||||
#DMA=1
|
||||
#DMA=2
|
||||
#DMA=3
|
||||
|
||||
|
||||
### Option 3: Crystal selection
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
CRYSTAL=0 # 10 Mhz
|
||||
#CRYSTAL=1 # 1 Mhz
|
||||
|
||||
|
||||
### Option 4: Analog Input reference
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
A_INP_TYPE=0 # differential
|
||||
#A_INP_TYPE=1 # single ended
|
||||
|
||||
|
||||
### Option 5: Analog Input range
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
#A_INP_RANGE=0 # bipolar (-10 V -- +10 V)
|
||||
#A_INP_RANGE=1 # unipolar (0 V -- +10 V)
|
||||
|
||||
|
||||
### Option 6: Analog Output 0 Range
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
#A_OUT_0=0 # bipolar +/- 10 V
|
||||
#A_OUT_0=1 # bipolar +/- 5 V
|
||||
#A_OUT_0=2 # bipolar external reference
|
||||
#A_OUT_0=3 # unipolar 0-10 V
|
||||
#A_OUT_0=4 # unipolar 0-5 V
|
||||
#A_OUT_0=5 # unipolar external reference
|
||||
|
||||
|
||||
### Option 7: Analog Output 1 Range
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
#A_OUT_1=0 # bipolar +/- 10 V
|
||||
#A_OUT_1=1 # bipolar +/- 5 V
|
||||
#A_OUT_1=2 # bipolar external reference
|
||||
#A_OUT_1=3 # unipolar 0-10 V
|
||||
#A_OUT_1=4 # unipolar 0-5 V
|
||||
#A_OUT_1=5 # unipolar external reference
|
||||
|
||||
#-----------------------------------------------------------
|
||||
# End of Configuration
|
||||
#-----------------------------------------------------------
|
||||
|
||||
|
||||
/usr/sbin/comedi_config $DEVICE $BOARD $IO_BASE,$IRQ,$DMA,$CRYSTAL,$A_INP_TYPE,$A_INP_RANGE,$A_OUT_0,$A_OUT_1
|
||||
|
119
etc/dt282x.conf
Executable file
119
etc/dt282x.conf
Executable file
|
@ -0,0 +1,119 @@
|
|||
#!/bin/sh
|
||||
# Configuration for dt282x driver
|
||||
# ds
|
||||
|
||||
### Device file
|
||||
DEVICE=/dev/comedi0
|
||||
|
||||
|
||||
### Type of board
|
||||
### Choose one
|
||||
BOARD=dt2821 # also for -f-16se, -g-16se, etc.
|
||||
#BOARD=dt2823
|
||||
#BOARD=dt2824-pgh
|
||||
#BOARD=dt2824-pgl
|
||||
#BOARD=dt2825
|
||||
#BOARD=dt2827
|
||||
#BOARD=dt2828
|
||||
#BOARD=dt21-ez
|
||||
#BOARD=dt23-ez
|
||||
#BOARD=dt24-ez
|
||||
#BOARD=dt24-ez-pgl
|
||||
|
||||
|
||||
### Option 0: Board base address
|
||||
### Depends on jumper settings
|
||||
IOBASE=0x240
|
||||
|
||||
|
||||
### Option 1: IRQ
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
#IRQ=0 # don't use interrupts
|
||||
#IRQ=3
|
||||
#IRQ=5
|
||||
IRQ=7
|
||||
#IRQ=10
|
||||
#IRQ=15
|
||||
|
||||
|
||||
### Option 2: first DMA channel
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
DMA1=0 # don't use DMA
|
||||
#DMA1=5
|
||||
#DMA1=6
|
||||
|
||||
|
||||
### Option 3: second DMA channel
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
DMA2=0 # don't use secondary DMA
|
||||
#DMA2=6
|
||||
#DMA2=7
|
||||
|
||||
|
||||
### Option 4: Analog Input reference
|
||||
### Depends on jumper settings or type of board
|
||||
### Choose one
|
||||
AI_REF=0 # differential
|
||||
#AI_REF=1 # single ended
|
||||
|
||||
|
||||
### Option 5: Analog Input encoding
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
AI_ENCODE=0 # straight binary
|
||||
#AI_ENCODE=1 # two's complement
|
||||
|
||||
|
||||
### Option 6: Analog Output 0 encoding
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
A00_ENCODE=0 # straight binary
|
||||
#AO0_ENCODE=1 # two's complement
|
||||
|
||||
|
||||
### Option 7: Analog Output 1 encoding
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
AO1_ENCODE=0 # straight binary
|
||||
#AO1_ENCODE=1 # two's complement
|
||||
|
||||
|
||||
### Option 8: Analog Input Range
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
#AI_RANGE=0 # bipolar +/- 10 V
|
||||
#AI_RANGE=1 # unipolar 0-10 V
|
||||
#AI_RANGE=2 # bipolar +/- 5 V
|
||||
#AI_RANGE=3 # unipolar 0-5 V
|
||||
|
||||
|
||||
### Option 9: Analog Output 0 Range
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
#AO0_RANGE=0 # bipolar +/- 10 V
|
||||
#AO0_RANGE=1 # unipolar 0-10 V
|
||||
#AO0_RANGE=2 # bipolar +/- 5 V
|
||||
#AO0_RANGE=3 # unipolar 0-5 V
|
||||
#AO0_RANGE=4 # bipolar +/- 2.5 V
|
||||
|
||||
|
||||
### Option 10: Analog Output 1 Range
|
||||
### Depends on jumper settings
|
||||
### Choose one
|
||||
#AO1_RANGE=0 # bipolar +/- 10 V
|
||||
#AO1_RANGE=1 # unipolar 0-10 V
|
||||
#AO1_RANGE=2 # bipolar +/- 5 V
|
||||
#AO1_RANGE=3 # unipolar 0-5 V
|
||||
#AO1_RANGE=4 # bipolar +/- 2.5 V
|
||||
|
||||
|
||||
#-----------------------------------------------------------
|
||||
# End of Configuration
|
||||
#-----------------------------------------------------------
|
||||
|
||||
|
||||
/usr/sbin/comedi_config $DEVICE $BOARD $IOBASE,$IRQ,$DMA1,$DMA2,$AI_REF,$AI_ENCODE,$AO0_ENCODE,$AO1_ENCODE,$AI_REF,$AO0_REF,$AI1_REF
|
||||
|
50
etc/pcmcia/comedi
Executable file
50
etc/pcmcia/comedi
Executable file
|
@ -0,0 +1,50 @@
|
|||
#! /bin/sh
|
||||
|
||||
if [ -r ./shared ] ; then . ./shared ; else . /etc/pcmcia/shared ; fi
|
||||
|
||||
# Get device attributes
|
||||
get_info $DEVICE
|
||||
|
||||
# Load site-specific settings
|
||||
start_fn () { return; }
|
||||
stop_fn () { return; }
|
||||
. $0.opts
|
||||
|
||||
case "$ACTION" in
|
||||
|
||||
'start')
|
||||
|
||||
#echo /usr/sbin/comedi_config /dev/comedi0 $2
|
||||
/usr/sbin/comedi_config /dev/comedi0 $2
|
||||
|
||||
start_fn $DEVICE
|
||||
;;
|
||||
|
||||
'stop')
|
||||
|
||||
stop_fn $DEVICE
|
||||
|
||||
;;
|
||||
|
||||
'check')
|
||||
;;
|
||||
|
||||
'cksum')
|
||||
;;
|
||||
|
||||
'restart')
|
||||
;;
|
||||
|
||||
'suspend'|'resume')
|
||||
;;
|
||||
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
|
27
etc/pcmcia/comedi.conf
Normal file
27
etc/pcmcia/comedi.conf
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
device "ni_mio_cs"
|
||||
class "comedi" module "ni_mio_cs"
|
||||
|
||||
device "quatech_daqp_cs"
|
||||
class "comedi" module "quatech_daqp_cs"
|
||||
|
||||
|
||||
card "National Instruments DAQCard-AI-16XE-50"
|
||||
# version "National Instruments", "*", "DAQCard-AI-16XE-50"
|
||||
manfid 0x10b, 0x010d
|
||||
bind "ni_mio_cs"
|
||||
|
||||
card "National Instruments DAQCard-AI-16E-4"
|
||||
## version "National Instruments", "*", "DAQCard-AI-16E-4"
|
||||
manfid 0x10b, 0x010c
|
||||
bind "ni_mio_cs"
|
||||
|
||||
card "National Instruments DAQCard-6062E"
|
||||
# version "National Instruments", "*", "DAQCard-6062E"
|
||||
manfid 0x10b, 0x02c4
|
||||
bind "ni_mio_cs"
|
||||
|
||||
card "Quatech DAQP-308 16-bit Analog Input/Output"
|
||||
manfid 0x0137, 0x0027
|
||||
bind "quatech_daqp_cs"
|
||||
|
2
etc/pcmcia/comedi.opts
Normal file
2
etc/pcmcia/comedi.opts
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
|
Loading…
Add table
Reference in a new issue