zooltheno1 ha scritto: > > > Hi > I want to use RC-Servos with the Foxboard, the normal interfall is > 1-2ms and 20ms pause. > I tried to use udelay for the delay, put the minimum is 40ms, > which is far to slow, even normal AC is faster. > How could I get the nesasery delay without 100% CPU load ?
you could sleep for 1-2 ms at 100% of CPU but if you will sleep for 20ms it possible kernel will reschedule/preempt your proccess/task and if it would not do it the system will hang. The document linked is in italian but you should found some keyword to looking for within google. http://www.linux.it/~rubini/docs/time/time.html Cheers, -- Roberto A. Foglietta http://roberto.foglietta.name http://linux.genova.it
