Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 9
Labels
All in lower case characters and descriptive of its function within the
subroutine or program flow.
Example:
todchecknextevent
Subroutines
Prefix is all in lower case with mix case for descriptive label name.
Example:
todDefaultStateManager
todResourceRefreshHandler
Filenames MSDOS Filename convention. Eight character filename (maximum)
with 3 character extension (maximum). ASM for source code files.
H for header files.
Example:
toddef.asm
tod.h
4.2 Files and Directories
4.2.1 Header Files
Header files are stored under the H directory of an application. They will have the extension *.H.
Generally, applications will have three header files associated with them. Namely:
General header File
Contains application specific equates used by an application as well
as redefinitions of system equates.
Macro File
Contains macro definitions that will be used by the application.
Variable File
Contains the offset definitions for variables as well as definitions for
the application system and application database heap memory
requirements. Bit definitions of application status flags are defined
in this file.
4.2.2 Source Files
Source files are stored under the SRC directory of an application. They will have the extension *.ASM.
Typical source files are for the banner state, default state, set banner state, set state, popup state,
background handler, display routines and utilities.
4.2.3 Build Directory
The build directory is where all outputs of the build scripts will be stored. This will allow the source and
header directory free from the clutter of multiple object and list files. On a successful build of a wristapp,
this directory will contain the parameter and code binary files for download to the watch.