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. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
