comedi_internal_trigger is provided by comedilib now.
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 28 Jan 2008 20:38:47 +0000 (20:38 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 28 Jan 2008 20:38:47 +0000 (20:38 +0000)
testing/comedi_test.h
testing/inttrig.c

index eab6e0aabe19495980a502556398fadf515b5014..58f084d3ff382415100a3ddea7e74dff40fb8658 100644 (file)
@@ -13,8 +13,5 @@ extern unsigned int capabilities;
 
 extern int realtime;
 
-extern int comedi_internal_trigger(comedi_t *device,unsigned int subdevice,
-       unsigned int trignum);
-
 #endif
 
index 9cced3a1af7cc76dbd5b23fd5ccd64e47975b756..7188b894cd979244bc38e132c2ba543e64b1232e 100644 (file)
 
 #define BUFSZ 2000
 
-int comedi_internal_trigger(comedi_t *device,unsigned int subdevice,
-       unsigned int trignum)
-{
-       comedi_insn insn;
-       lsampl_t data = 0;
-
-#ifndef INSN_INTTRIG
-#define INSN_INTTRIG           ( 6 | INSN_MASK_WRITE|INSN_MASK_SPECIAL)
-#endif
-       memset(&insn,0,sizeof(insn));
-       insn.subdev = subdevice;
-       insn.insn = INSN_INTTRIG;
-       insn.n = 1;
-       insn.data = &data;
-
-       return comedi_do_insn(device,&insn);
-}
-
-
 int test_cmd_start_inttrig(void)
 {
        comedi_cmd cmd;