Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 93
the application to clean up prior to making another
application the new foreground application.
COREEVENT_PEEK
Sent by the system whenever another application
requests the mode to display its current data set.
For example, the TOD requires an an appointment
and occasion type application to support this
request.
COREEVENT_APP_SHUTDOWN_FOR_COMM
Sent by the system when the watch begins
communications with the PC. This allows the
application to clean up its data and perhaps update
the database header for upload.
The background handler code will be coded into a separate file. This will allow the build scripts to locate
the background handler code to be loaded into the overlay area.
File Description
cntBckHd.asm
Background handler source file.
5.7 Parameter File
The M851 requires information about the wristapp so it can be incorporated into the system. Below is the
parameter file for the counter application:
;============================================================
; ACB offset mask.
;============================================================
; Application System Data is located in heap.
; Other ACB entries are located either in ROM or EEPROM.
db bCOREAppSystemDataOffset
;============================================================
; Number of resources required.
;============================================================
db 00h ; TOD
db 00h ; Backup
db 00h ; Time Zone Check
db 00h ; Timer Resource
db 00h ; Stopwatch Resource
db 00h ; Synchro Timer Resource
;============================================================
; Flag ownership.
;============================================================
db 0 ; LCD Flags 1
db 0 ; LCD Flags 2
;============================================================
; Heap size requirements.
;============================================================
dw 0000H ; Code
dw CNTSYSTEMDATASIZE ; ASD
dw CNTDATABASEDATASIZE ; ADD
;============================================================
; Application Configuration Data Byte.
;============================================================