doc: add missing -lm option to command line for compiling tut1
[comedilib.git] / etc / dt282x.conf
1 #!/bin/sh
2 # Configuration for dt282x driver
3 # ds
4
5 ### Device file
6 DEVICE=/dev/comedi0
7
8
9 ### Type of board
10 ###   Choose one
11 BOARD=dt2821            # also for -f-16se, -g-16se, etc.
12 #BOARD=dt2823
13 #BOARD=dt2824-pgh
14 #BOARD=dt2824-pgl
15 #BOARD=dt2825
16 #BOARD=dt2827
17 #BOARD=dt2828
18 #BOARD=dt21-ez
19 #BOARD=dt23-ez
20 #BOARD=dt24-ez
21 #BOARD=dt24-ez-pgl
22
23
24 ### Option 0:   Board base address
25 ###   Depends on jumper settings
26 IOBASE=0x240
27
28
29 ### Option 1:   IRQ
30 ###   Depends on jumper settings
31 ###   Choose one
32 #IRQ=0          # don't use interrupts
33 #IRQ=3
34 #IRQ=5
35 IRQ=7
36 #IRQ=10
37 #IRQ=15
38
39
40 ### Option 2:   first DMA channel
41 ###   Depends on jumper settings
42 ###   Choose one
43 DMA1=0          # don't use DMA
44 #DMA1=5
45 #DMA1=6
46
47
48 ### Option 3:   second DMA channel
49 ###   Depends on jumper settings
50 ###   Choose one
51 DMA2=0          # don't use secondary DMA
52 #DMA2=6
53 #DMA2=7
54
55
56 ### Option 4:   Analog Input reference
57 ###   Depends on jumper settings or type of board
58 ###   Choose one
59 AI_REF=0        # differential
60 #AI_REF=1       # single ended
61
62
63 ### Option 5:   Analog Input encoding
64 ###   Depends on jumper settings
65 ###   Choose one
66 AI_ENCODE=0     # straight binary
67 #AI_ENCODE=1    # two's complement
68
69
70 ### Option 6:   Analog Output 0 encoding
71 ###   Depends on jumper settings
72 ###   Choose one
73 A00_ENCODE=0    # straight binary
74 #AO0_ENCODE=1   # two's complement
75
76
77 ### Option 7:   Analog Output 1 encoding
78 ###   Depends on jumper settings
79 ###   Choose one
80 AO1_ENCODE=0    # straight binary
81 #AO1_ENCODE=1   # two's complement
82
83
84 ### Option 8:   Analog Input Range
85 ###   Depends on jumper settings
86 ###   Choose one
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
91
92
93 ### Option 9:   Analog Output 0 Range
94 ###   Depends on jumper settings
95 ###   Choose one
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
101  
102
103 ### Option 10:  Analog Output 1 Range
104 ###   Depends on jumper settings
105 ###   Choose one
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
111  
112
113 #-----------------------------------------------------------
114 # End of Configuration
115 #-----------------------------------------------------------
116
117
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
119