[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] usleep



At Mon, 25 Oct 2004 13:53:44 -0600,
Jay Norrish wrote:
[...]
> I am trying to use the usleep() function to
> put my application to sleep while my peripherals
> do data acquisition but, I have not been able to get
> the function to have a resolution of less than 10ms
> which is the tick rate. I know I could change the tick rate
> with the #define HZ in the mb_vannilla.h file but I am worried that it will
> break other programs.

I wouldn't recommend to change HZ for 2.4, if you don't know the
kernel internal.  it might or might not work.

> Is there another function or way to do this ?

use bigger fifo and/or interrupt.  even with those, timing is not
guaranteed.  Linux is not a realtime os after all.

my 2 cents.

best,
--
            yashi
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/