From 46bd0a16bacf94a7e971f5b2a107146290802608 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 28 Jan 2008 20:38:47 +0000 Subject: [PATCH] comedi_internal_trigger is provided by comedilib now. --- testing/comedi_test.h | 3 --- testing/inttrig.c | 19 ------------------- 2 files changed, 22 deletions(-) diff --git a/testing/comedi_test.h b/testing/comedi_test.h index eab6e0a..58f084d 100644 --- a/testing/comedi_test.h +++ b/testing/comedi_test.h @@ -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 diff --git a/testing/inttrig.c b/testing/inttrig.c index 9cced3a..7188b89 100644 --- a/testing/inttrig.c +++ b/testing/inttrig.c @@ -14,25 +14,6 @@ #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; -- 2.26.2