ts-7000
[Top] [All Lists]

Re: [ts-7000] usleep < 10 msec

To:
Subject: Re: [ts-7000] usleep < 10 msec
From: David Hawkins <>
Date: Fri, 07 Sep 2007 16:07:10 -0700
Yan Seiner wrote:
> Has anyone come up with a way to sleep less than 10 msec with the
> standard 2.4 kernel?
> 
> both usleep and select sleep a min. of 10 msec.  Any portable way to
> do so?
> 
> I would guess going to the 1000 Hz kernel clock would work but I'm a
> bit leery of screwing up stability....

Have you tried nanosleep, or select() with a < 10ms timeout?

If neither method works, then I think you have to
resort to a custom driver. The TS-7300 FPGA, or an
EP9301 timer (if there is a spare one) can be setup to
generate your delay, and select() can unblock the
file descriptor.

However, even in that case, you may get stuck with the
scheduler scheduling your process in the next 10ms
time-slice.

The 2.6 kernel uses a pre-emptive approach, so its
more responsive.

I've sent you some timer tests I ran a while back on a
2.4 kernel.

Cheers,
Dave


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU