Re: Better polling solution in wince driver
- From: shiju <mshiju@xxxxxxxxx>
- Date: Thu, 14 Dec 2006 14:34:37 -0500
Hi,
I am implementing a touchpad driver (that has no interrupts) using polling mechanism. This device is connected to i2c lines. So the only way to get the data is to poll the device every fixed time interval. In our case it should be every 40-50 ms.This is the only pointing device on the system.
Thanks,
Shiju
Henrik Viklund wrote:
shiju skrev:.
Hi,
Sometime back I asked a question regarding implementation of polling in
wince-5 device drivers. The answer to my question was to use Sleep()
function. So I implemented this in my driver by creatiing a thread. In
the thread process I have an infinite while loop with a Sleep()
function. The device I am polling is a pointer device and I need to poll
this device every 40 millisec-50 millisec. Is there a better way to poll
this device.
Um, no? Why do you think you need a better way? Without knowing
anything about your application I'd say that a 40-50ms deadline usually
is no match to meet using Sleep() -provided you've got the thread
priorities set up correctly.
Henrik Viklund
http://www.addlogic.se
Thanks,
Shiju
- Follow-Ups:
- Re: Better polling solution in wince driver
- From: Henrik Viklund
- Re: Better polling solution in wince driver
- References:
- Better polling solution in wince driver
- From: shiju
- Re: Better polling solution in wince driver
- From: Henrik Viklund
- Better polling solution in wince driver
- Prev by Date: Re: TFAT - Usability with XP
- Next by Date: Re: Better polling solution in wince driver
- Previous by thread: Re: Better polling solution in wince driver
- Next by thread: Re: Better polling solution in wince driver
- Index(es):
Relevant Pages
|