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

[MiNT] function NAP in device-drivers



Hi *!

I'm writing a small device-driver and there are some places where the driver has to wait a certain space of time. I'm using the kernel-function NAP(msecs) for this, but this seems not to work.

NAP(msecs) should cause a wait for at least msecs miliseconds, but it seems, that it only causes a taskswitch. I included a NAP(4000) for testing, and there was no pause to recognice.

On some places I have to wait only a few usec. Using the function NAP(1) in this case will slowdown my driver too much if there are other processes running, because they each will get a whole timeslice - I think. That's why I can't use nap(1) there. Is t
ere a further possibility to wait only a few usec? May I poll the MFP-counter of the system timer?

Thanx!


Holger

BTW:

I'm using MiNT 1.15.1 (beta 7 or 8?). Those things also occure with mint 1.14.