Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 92
5.5 State Files
The state handlers are to be coded in different files. This will allow the build scripts to properly place the
correct state handler code to be loaded from eeprom during execution. In this example, we have the
following files:
File Description
cntban.asm
Banner state source file.
cntdef.asm
Default state source file.
cntsetbn.asm
Set banner state source file.
cntset.asm
Set state source file.
5.6 Background Handler
All WristApps are required to handle these system events. In the counter application, most of these
required system events are coded with just RET (RETurn from Subroutine) instructions. The background
handler will be located at the start of the common section.
Event Description
COREEVENT_INIT
Sent by the system to initialize the application data
after a communication session.
COREEVENT_TASKEXIT
Sent by the system whenever a voluntary or
involuntary (i.e. popup) mode change. This allows