Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 102
; Request 2sec timeout.
CORE_REQ_TIMEOUT_HIRES CNTHIRESTO_2SECONDS
LCD_CLR_DISPLAY
LCD_DISP_SMALL_DM_MSG_HOLD_TO_RESET
cntDefaultStopResetDepressExit:
ret
cntDefaultStateModeDepressEvent:
;**************************************************************
; MODE DEPRESS
;**************************************************************
CORE_REQ_MODE_CHANGE_NEXT
ret
cntDefaultStateTimeoutHiResDoneEvent:
;**************************************************************
; TIMEOUT DONE HI-RES
;**************************************************************
; Cancel current switch release. Not needed in this state.
HW_KBD_CANCEL_CURRENT_SWITCH_RELEASE
AUDSTART_SYSTEM_MELODY AUDSWBEEPMELODY, AUDNOMELODYDONEEVENT
; Clear counter data.
ld A, #0
ld [IY + CNTDATALOOFFSET], A
ld [IY + CNTDATAHIOFFSET], A
; Redisplay everything.
jr cntDefaultSubStateEntry
5.10.5 Set Banner State Handler
The core provides a common code for the set banner state handler. It requires application specific code to
handle what to display during state entry. The rest of the code handles the basic requirements for the set
banner state handler.
IF @DEF('SUBROUTINE')
UNDEF SUBROUTINE
ENDIF
DEFINE SUBROUTINE "'cntSetBannerStateManager'"
GLOBAL cntSetBannerStateManager
cntSetBannerStateManager:
; Get the event to be processed.
ld A, [CORECurrentEvent]
; Check if State Entry Event.
cp A, #CNT_STATEENTRY
jr NZ, utlSetBannerStateManager
;**************************************************************
; STATE ENTRY
;**************************************************************
LCD_DISP_SMALL_DM_MSG_SET_COUNTER
jr utlSetBannerStateManager