;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Copyright (c) 2002 TIMEX Corporation.
; 
; This document is the property of, and contains information proprietary to
; TIMEX Corporation.  It is to be returned upon request.  Reproduction by any
; means, disclosure, or use of its contents for other than the expressed
; purpose for which it is loaned, without the written consent of TIMEX
; Corporation, is strictly prohibited.
;
; File Name :   syn.h
;
; Purpose   :   Synchro Timer mode application header
;
; File Change History:
;
;               03/11/2002 FSU - Created for M851 development.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


;==============================================================================
;
; STATE REDEFINITIONS
;
;==============================================================================

SYNBANNERSTATE              equ     COREBANNERSTATE 
SYNDEFAULTSTATE             equ     COREDEFAULTSTATE
SYNSETBANNERSTATE           equ     CORESETBANNERSTATE
SYNSETSTATE                 equ     CORESETSTATE      

;==============================================================================
;
; EVENT REDEFINITIONS
;
;==============================================================================

SYN_STATEENTRY              equ     COREEVENT_STATEENTRY
SYN_TIMEOUTDONELOWRES       equ     COREEVENT_TIMEOUTDONE_LOWRES
SYN_TIMEOUTDONEHIGHRES      equ     COREEVENT_TIMEOUTDONE_HIGHRES
SYN_TIMEOUTDONESTICKY       equ     COREEVENT_STICKY_TIMEOUTDONE
SYN_ELDEPRESS               equ     COREEVENT_CROWN_EL_DEPRESS
SYN_ELRELEASE               equ     COREEVENT_CROWN_EL_RELEASE
SYN_CROWNHOME               equ     COREEVENT_CROWN_HOME
SYN_CROWNSET                equ     COREEVENT_CROWN_SET1
SYN_CWPULSES                equ     COREEVENT_CW_PULSES
SYN_CCWPULSES               equ     COREEVENT_CCW_PULSES
SYN_CWEDGE                  equ     COREEVENT_CW_EDGE_TRAILING
SYN_CCWEDGE                 equ     COREEVENT_CCW_EDGE_TRAILING
SYN_MODEDEPRESS             equ     COREEVENT_SWITCH1DEPRESS
SYN_STOPRESETDEPRESS        equ     COREEVENT_SWITCH2DEPRESS
SYN_STARTSPLITDEPRESS       equ     COREEVENT_SWITCH3DEPRESS
SYN_MODERELEASE             equ     COREEVENT_SWITCH1RELEASE
SYN_STOPRESETRELEASE        equ     COREEVENT_SWITCH2RELEASE
SYN_STARTSPLITRELEASE       equ     COREEVENT_SWITCH3RELEASE
SYN_POPUPCANCEL             equ     COREEVENT_MELODYPOPUPCANCEL
SYN_DISPLAYUPDATESYNRES     equ     COREEVENT_DISPLAY_UPDATE_SYNRES
SYN_ICONREFRESH             equ     COREEVENT_ICON_REFRESH 
SYN_ANYSWITCHDEPRESS        equ     COREEVENT_ANYSWITCHDEPRESS
SYN_ANYSWITCHRELEASE        equ     COREEVENT_ANYSWITCHRELEASE

;==============================================================================
;
; SWITCH MASK REDEFINITIONS
;
;==============================================================================

SYNSWITCHMASK_MODE          equ     bCORESwitch1
SYNSWITCHMASK_STOPRESET     equ     bCORESwitch2
SYNSWITCHMASK_STARTSPLIT    equ     bCORESwitch3
SYNSWITCHMASK_CW            equ     bCORECWSwitch
SYNSWITCHMASK_CCW           equ     bCORECCWSwitch
SYNSWITCHMASK_EL            equ     bCOREELSwitch

SYNSWITCHMASK_CW_CCW_EL     equ     (SYNSWITCHMASK_CW | SYNSWITCHMASK_CCW | SYNSWITCHMASK_EL)
        

;==============================================================================
;
; MISCELLANEOUS DEFINITIONS
;
;==============================================================================


;------------------------------------------------------------------------------
; Hi-Res Timeouts
;------------------------------------------------------------------------------

SYNHIRESTO_1P5SECONDS       equ     TIMEOUTHIRES_1P5SEC


;------------------------------------------------------------------------------
; Display format
;------------------------------------------------------------------------------

SYNTOTAL                    equ     0
SYNSTOPTOTAL                equ     1
SYNTOTALSTOP                equ     2

SYNMAXDISPLAYFORMAT         equ     3
SYNLASTDISPLAYFORMAT        equ     SYNTOTALSTOP
SYNFIRSTDISPLAYFORMAT       equ     SYNTOTAL



APPCOMPILEDASROM_SYNCHRO    equ     1
