From 7973a0f2adcff62c0819c0bbf6ac8f3464e27e0c Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 15 Jul 2001 22:39:54 +0000 Subject: [PATCH] Change prototype of comedi_get_cmd_generic_timed --- demo/cmd.c | 2 +- demo/mmap.c | 2 +- include/comedilib.h | 2 +- testing/cmd_2.c | 2 +- testing/cmd_3.c | 2 +- testing/inttrig.c | 2 +- testing/mmap.c | 2 +- testing/select.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/demo/cmd.c b/demo/cmd.c index d40ff80..b46e7f0 100644 --- a/demo/cmd.c +++ b/demo/cmd.c @@ -186,7 +186,7 @@ int prepare_cmd_lib(comedi_t *dev,int subdevice,comedi_cmd *cmd) /* This comedilib function will get us a generic timed * command for a particular board. If it returns -1, * that's bad. */ - ret = comedi_get_cmd_generic_timed(dev,subdevice,cmd); + ret = comedi_get_cmd_generic_timed(dev,subdevice,cmd,1e9/freq); if(ret<0)return ret; /* Modify parts of the command */ diff --git a/demo/mmap.c b/demo/mmap.c index 719befd..2f18cf4 100644 --- a/demo/mmap.c +++ b/demo/mmap.c @@ -117,7 +117,7 @@ int prepare_cmd_lib(comedi_t *dev,int subdevice,comedi_cmd *cmd) { int ret; - ret = comedi_get_cmd_generic_timed(dev,subdevice,cmd); + ret = comedi_get_cmd_generic_timed(dev,subdevice,cmd,1e9/freq); if(ret<0){ comedi_perror("comedi_get_cmd_generic_timed\n"); return ret; diff --git a/include/comedilib.h b/include/comedilib.h index 095190c..d68fcda 100644 --- a/include/comedilib.h +++ b/include/comedilib.h @@ -139,7 +139,7 @@ int comedi_sv_measure(comedi_sv_t *it,double *data); int comedi_get_cmd_src_mask(comedi_t *dev,unsigned int subdevice, comedi_cmd *cmd); int comedi_get_cmd_generic_timed(comedi_t *dev,unsigned int subdevice, - comedi_cmd *cmd); + comedi_cmd *cmd,unsigned int ns); int comedi_cancel(comedi_t *it,unsigned int subdevice); int comedi_command(comedi_t *it,comedi_cmd *cmd); int comedi_command_test(comedi_t *it,comedi_cmd *cmd); diff --git a/testing/cmd_2.c b/testing/cmd_2.c index 667050a..af6f20e 100644 --- a/testing/cmd_2.c +++ b/testing/cmd_2.c @@ -42,7 +42,7 @@ static int get_chunks_per_length(int length) int ret; int chunks=0; - if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){ + if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){ printf(" not supported\n"); return 0; } diff --git a/testing/cmd_3.c b/testing/cmd_3.c index f17b542..eba5ea0 100644 --- a/testing/cmd_3.c +++ b/testing/cmd_3.c @@ -48,7 +48,7 @@ static int do_continuous(int multiplier) unsigned long total_secs = 0; struct timeval tv,start_tv; - if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){ + if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){ printf(" not supported\n"); return 0; } diff --git a/testing/inttrig.c b/testing/inttrig.c index 8b4ab19..869cb45 100644 --- a/testing/inttrig.c +++ b/testing/inttrig.c @@ -57,7 +57,7 @@ int test_cmd_start_inttrig(void) return 0; } - if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){ + if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){ printf(" not supported\n"); return 0; } diff --git a/testing/mmap.c b/testing/mmap.c index f9e8eca..a859b8f 100644 --- a/testing/mmap.c +++ b/testing/mmap.c @@ -68,7 +68,7 @@ int test_mmap(void) return 0; } - if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){ + if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){ printf("E: comedi_get_cmd_generic_timed failed\n"); return 0; } diff --git a/testing/select.c b/testing/select.c index bd68c20..55e9d2d 100644 --- a/testing/select.c +++ b/testing/select.c @@ -33,7 +33,7 @@ int test_read_select(void) return 0; } - if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){ + if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){ printf("E: comedi_get_cmd_generic_timed failed\n"); return 0; } -- 2.26.2