At 8:39 AM -0800 2003/02/11, Bill Heidler wrote: >I want to call TimGetTicks() from my wakeup handler routine (the function >set in >the call to SerSetWakeupHandler(), or SrmSetWakeupHandler() for the new >serial interface). However, since the wakeup handler is called directly >from the >Palm's serial port ISR, I need to be very cautious about what I do. >Warnings abound >in the information that is available (for example, Alan J. Weiner >http://www.palmpower.com/issuesprint/issue199903/serial.html ) that only a >few >API's are safe to call from this context.
Yes, TimGetTicks() is safe to call from within a serial wakeup interrupt handler. In Palm OS versions prior to 5.0 it calls an AMX kernel function to atomically read a running counter. Best Regards, Jim Schram PalmSource Inc. Product Engineering -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
