In article news:[EMAIL PROTECTED], Tim Kostka wrote: > Although not very elegant, you could just set up an endless loop that > repeats until a number of ticks have passed. The only difference > between that and SysTaskDelay would be the loop would not put the > device into doze mode, and if that is indeed the problem, it's > solved. If it's only for very brief period, I wouldn't hesitate to > do this. > Yup, I'll try that thanks. It's hard to get out of the multiprocessing way of doing things. :-)
> EvtGetEvent also puts the device into doze mode as well if there is > not an immediate event that occurs and you pass some nonzero timeout > value, so that wouldn't work either (once again if doze mode is the > problem). Hmm. Maybe doze isn't the problem... Does anyone happen to know whether the IrDA stack is fed by the Event loop? If an application is not calling EvtGetEvent, maybe in a blocking TCP/IP call for instance, does IrDA stop?... > "Alan J. McFarlane" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> In article news:[EMAIL PROTECTED], SEAn wrote: >>> ----- Original Message ----- >>> From: "Mark Cameron" <[EMAIL PROTECTED]> >>> To: "Palm Developer Forum" <[email protected]> >>> Sent: Tuesday, April 12, 2005 4:15 PM >>> Subject: RE: one simple question about Delay funcation in Palm OS >>> >>> >>> SysTaskDelay(SysTicksPerSecond()*X); >>> >>> Where X is the number of seconds you wish to delay (or just give it >>> a number of ticks, but the delay will vary by device). >>> >> Hijacking the topic somewhat... Does anyone know of another way? >> I've been playing with IrDA (IrLib) from a shared library, and it >> appears that using SysTaskDelay() causes problems when waiting for >> an IrDA event (and thus a callback) to occur. >> >> When waiting for media quiet, to start another discovery process, the >> media quiet event appears only to occur when I've _stopped_ >> SysTaskDelay-ing! 2cs later, regardless of how long I've set the >> wait, MEDIA_QUIET occurs... I'm presuming that SysTaskDelay putting >> the CPU in doze causes this? >> >> Of course in a application one would just sit at EvtGetEvent when >> waiting for an IrDA callback, but doing that in a shared library >> would be bad, no? >> -- >> Alan J. McFarlane >> http://www.alanjmcf.me.uk/ >> Please follow-up in the newsgroup for the benefit of all. -- Alan J. McFarlane http://www.alanjmcf.me.uk/ Please follow-up in the newsgroup for the benefit of all. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
