On Tue, Sep 12, 2000 at 12:59:17PM +0100, Metalle Gary-GMETALL1 wrote:

> Hello
> 
> Perhaps I should have worded my question better. I don't actually want a
> background task in that sense but rather an application that is always
> running in the background. I want to be able to write a device driver that
> reads the serial port (done all that stuff), processes it and enqueues
> events into the system queue. I can't have the application always running in
> the foreground as I want the user to be able to run up other applications
> such as memopad or whatever (then this user chosen application will pick up
> the system events that I posted from my background application).

There is a call SerSetWakeupHandler or something (it is in the new
serial manager), that you can have it call your code when N characters
are received.  You have to do a SersomethingPrime call to activate it.
It is in an interrupt so you have limited resources, but you can
enqueue key events.  (I don't have the manual in front of me, but this
is where to look).

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to