From c7a45f3edf42f66b09d46b7544c418084b06a005 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 15 Feb 2001 21:01:13 +0000 Subject: [PATCH] added some comments, including advice on how to make interrupt handler run at hard real time priority --- demo/cmd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/demo/cmd.c b/demo/cmd.c index ea544e4..33ddb0f 100644 --- a/demo/cmd.c +++ b/demo/cmd.c @@ -86,6 +86,9 @@ void do_cmd(comedi_t *dev,comedi_cmd *cmd) dump_cmd(cmd); + /* restoring the chanlist stuff in this way is only required + * for comedi versions before 0.7.56 + */ cmd->chanlist = chanlist; cmd->chanlist_len = n_chans; @@ -149,6 +152,10 @@ void do_cmd_1(comedi_t *dev) /* flags */ cmd.flags = 0; + /* the TRIG_RT flag will ask that the driver's interrupt handler be + * run at hard real time priority if you have a real time OS + */ + //cmd.flags |= TRIG_RT; /* each event requires a trigger, which is specified by a source and an argument. For example, to specify -- 2.26.2