2 # Configuration for dt282x driver
11 BOARD=dt2821 # also for -f-16se, -g-16se, etc.
24 ### Option 0: Board base address
25 ### Depends on jumper settings
30 ### Depends on jumper settings
32 #IRQ=0 # don't use interrupts
40 ### Option 2: first DMA channel
41 ### Depends on jumper settings
43 DMA1=0 # don't use DMA
48 ### Option 3: second DMA channel
49 ### Depends on jumper settings
51 DMA2=0 # don't use secondary DMA
56 ### Option 4: Analog Input reference
57 ### Depends on jumper settings or type of board
59 AI_REF=0 # differential
60 #AI_REF=1 # single ended
63 ### Option 5: Analog Input encoding
64 ### Depends on jumper settings
66 AI_ENCODE=0 # straight binary
67 #AI_ENCODE=1 # two's complement
70 ### Option 6: Analog Output 0 encoding
71 ### Depends on jumper settings
73 A00_ENCODE=0 # straight binary
74 #AO0_ENCODE=1 # two's complement
77 ### Option 7: Analog Output 1 encoding
78 ### Depends on jumper settings
80 AO1_ENCODE=0 # straight binary
81 #AO1_ENCODE=1 # two's complement
84 ### Option 8: Analog Input Range
85 ### Depends on jumper settings
87 #AI_RANGE=0 # bipolar +/- 10 V
88 #AI_RANGE=1 # unipolar 0-10 V
89 #AI_RANGE=2 # bipolar +/- 5 V
90 #AI_RANGE=3 # unipolar 0-5 V
93 ### Option 9: Analog Output 0 Range
94 ### Depends on jumper settings
96 #AO0_RANGE=0 # bipolar +/- 10 V
97 #AO0_RANGE=1 # unipolar 0-10 V
98 #AO0_RANGE=2 # bipolar +/- 5 V
99 #AO0_RANGE=3 # unipolar 0-5 V
100 #AO0_RANGE=4 # bipolar +/- 2.5 V
103 ### Option 10: Analog Output 1 Range
104 ### Depends on jumper settings
106 #AO1_RANGE=0 # bipolar +/- 10 V
107 #AO1_RANGE=1 # unipolar 0-10 V
108 #AO1_RANGE=2 # bipolar +/- 5 V
109 #AO1_RANGE=3 # unipolar 0-5 V
110 #AO1_RANGE=4 # bipolar +/- 2.5 V
113 #-----------------------------------------------------------
114 # End of Configuration
115 #-----------------------------------------------------------
118 /usr/sbin/comedi_config $DEVICE $BOARD $IOBASE,$IRQ,$DMA1,$DMA2,$AI_REF,$AI_ENCODE,$AO0_ENCODE,$AO1_ENCODE,$AI_REF,$AO0_REF,$AI1_REF