patch from beat.zahnd@phim.unibe.ch (Beat ZAHND), he says:
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 6 Feb 2005 16:17:51 +0000 (16:17 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 6 Feb 2005 16:17:51 +0000 (16:17 +0000)
I extendended the SCXI support for the 1122 module and moved the
scxi_boards structure to scxi.c

include/comedilib_scxi.h
scxi/scxi.c

index d30e10766fcb55380582165c78e894447229ab7d..c9fd2d17bf499dc3241614e8b50278ce2ccfebab 100644 (file)
@@ -31,17 +31,6 @@ struct scxi_board_struct {
 
 typedef struct scxi_board_struct scxi_board_t;
 
-const scxi_board_t scxi_boards[] = {
-       { 0, "unknown\0", 2, SLOW_INTERVAL, 0, 0, 0, 0, 0, 0, 0, 0 },
-       { 0xffffffff, "empty\0", 2, SLOW_INTERVAL, 0, 0, 0, 0, 0, 0, 0, 0 },
-       { 0x06, "SCXI-1100\0", 1, FAST_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AI, 32,
-               0x00, 0x00, 0x00, 0x00, 0x00 },
-       { 0x1e, "SCXI-1102\0", 2, FAST_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AI, 32,
-               0x02, 0x05, 0x01, 0x03, 0x04 },
-       //{ 0x14, "SCXI-1124\0", 2, SLOW_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AO, 6,
-       //      0x02, 0x08, 0x00, 0x03, 0x00 },
-};
-
 #define n_scxi_boards ((sizeof(scxi_boards)/sizeof(scxi_boards[0])))
 
 struct scxi_module_struct {
index aea5f3266d04596edeacdde157f6303d04a446f6..3f71e50faf832a4b09b589ce1f8749c1831d34ef 100644 (file)
@@ -3,6 +3,19 @@
 #include <stdlib.h>
 #include <byteswap.h>
 
+const scxi_board_t scxi_boards[] = {
+       { 0, "unknown\0", 2, SLOW_INTERVAL, 0, 0, 0, 0, 0, 0, 0, 0 },
+       { 0xffffffff, "empty\0", 2, SLOW_INTERVAL, 0, 0, 0, 0, 0, 0, 0, 0 },
+       { 0x06, "SCXI-1100\0", 1, FAST_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AI, 32,
+               0x00, 0x00, 0x00, 0x00, 0x00 },
+       { 0x1e, "SCXI-1102\0", 2, FAST_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AI, 32,
+               0x02, 0x05, 0x01, 0x03, 0x04 },
+       { 0x0a, "SCXI-1122\0", 2, FAST_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AI, 16,
+               0x02, 0x01, 0x00, 0x03, 0x00 },
+       //{ 0x14, "SCXI-1124\0", 2, SLOW_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AO, 6,
+       //      0x02, 0x08, 0x00, 0x03, 0x00 },
+};
+
 static int scxi_identify(scxi_mod_t *mod);
 
 static int scxi_serial_config(comedi_t *it, unsigned int clock_interval)