do_tmereven.c
上传用户:shyuanyi
上传日期:2008-05-24
资源大小:69k
文件大小:1k
- #include "My_head.h"
- /***********************************************
- #define SEND_CARD_LED P1_1
- /***********************************************/
- BYTE Do_DisClockEvent_0(BYTE Tevent)
- {
- switch(Tevent)
- {
- case WAIT_CARD_Tevent:
- Set_TimerEvent(WAIT_CARD_Tevent,WAIT_CARDCONSUME_TIME);//(1)
- Check_Card_Event(0);//(2) Idle card
- break;
- case DIS_CLOCKEVENT_Tevent:
- DisplayClock(); //(0)
- Set_TimerEvent(DIS_CLOCKEVENT_Tevent,DIS_CLOCKEVENT_TIME);//(1)
- //SEND_CARD_LED ^= 1;
- break;
- case DISPLAY_DELAYEVENT_Tevent:
- //Save_My_All_Data();//因为可能在没电池时不正常拔电。
- Renew_To_AllInit();
- break;
- case SETDEL_PASSWORD_Tevent:
- //set_del_enble_flag=my_for_test_bit=FALSE;
- break;
- default:return(Tevent);
- }
- return(0);
- }
- BYTE Do_KeyTmierEvent_3(BYTE Tevent)
- {
- switch(Tevent)
- {
- case WAIT_PRESSKEY_Tevent:
- Renew_To_AllInit();
- break;
- case SETDEL_PASSWORD_Tevent:
- //set_del_enble_flag=my_for_test_bit=FALSE;
- break;
- default:return(Tevent);
- }
- return(0);
- }
- BYTE Do_WaitCardTmier_Event_5(BYTE Tevent)
- {
- switch(Tevent)
- {
- case WAIT_CARD_Tevent:
- do_buzzer(BUZZER_WAIT);
- Set_TimerEvent(WAIT_CARD_Tevent,WAIT_CARDCONSUME_TIME);
- Check_Card_Event(0); //1--all card:for test!.
- break;
- case WAIT_EXIT_Tevent:
- Renew_To_AllInit();
- break;
- default:return(Tevent);
- }
- return(0);
- }
- /*********************************************/