Re: Resetting problem / 'Time interval in the Kernel'

On Tue, 2 Jul 2002, [iso-8859-1] Andrew Mubeezi-Magoola wrote:

> Kindly advise what is the optimal solution to solve a
> time interval problem?
>
> 1. The problem is:
> in the function  ni_ai_insn_readsee which is defined
> in ni_mio_common.c   under
> (usr/local/src/comedi/comedi/drivers)
>
> If the line (introduced in the program by me)
>
> rt_printk("Board_Status =%x
> \n",ni_readb(Status_611x));/* Andrew 100 */
>
> is commented out, I get ni_E: timeout !
>
> But if it is not commented Out, then the program gives
> no errors.
>
>
> 2. The Question:
>
> I am certain that though the DAQ 6111 board now works,
> there should be a better way of regulating this (Time
> interval or delay) What is the optimal way of handling
> this problem? I guess that this might have someting to
> do with jiffies
>
> Kindly advise.
>

Jiffies are a bit long for what you want, I think you are just wanting to
insert a udelay(1), which will cause a busy wait of 1 microsecond.

Frank

Received on 2002-07-03Z02:27:32