/********************************************************************************/
/* TheSoftwareisproprietary,confidential,andvaluable to Realtek */
/* SemiconductorCorporation("Realtek").Allrights, including but not */
/* limitedtocopyrights,patents,trademarks, trade secrets, mask work */
/* rights, and other similar rights and interests, are reserved to Realtek. */
/* WithoutpriorwrittenconsentfromRealtek,copying, reproduction, */
/* modification,distribution,orotherwiseis strictly prohibited. The */
/* Softwareshallbekeptstrictlyinconfidence,andshallnot be */
/* disclosed to or otherwise accessed by any third party.
*/
/* c -
*/
/* The Software is provided "AS IS" without any warranty of any kind,
*/
/* express, implied, statutory or otherwise.
*/
/********************************************************************************/
//----------------------------------------------------------------------------------------------------
// ID Code
: Int.c No.0000
// Update Note:
//----------------------------------------------------------------------------------------------------
#include "Common\Header\Include.h"
// V011 Modify 20090302 Start
// V011 Patch Note (10) : Update DP Setting
// V011 Modify 20090302 End
//--------------------------------------------------
// Timer0 Interrupt (1ms)
//--------------------------------------------------
void IntProcTimer0(void) interrupt 1
{
TR0 = _ON;
TL0 = _TIMER0_COUNT_LBYTE;
TH0 = _TIMER0_COUNT_HBYTE;
#if(_MCU_TYPE == _REALTEK_EMBEDDED)
MCU_WATCHDOG_TIMER_FFEA |= 0x40;
//clr wdt. V009_20080822
#endif
bNotifyTimer0Int = _TRUE;
if(--ucTimer0Cnt)
{
// V011 Modify 20090619 Start
// V011 Patch Note (46) : Add the Check Time Out function for Debug Tool.
#if(_DEBUG_TOOL == _ISP_FOR_EMBEDDED)
CDebugCheckTimeOut();
#endif
// V011 Modify 20090619 End
}
else
{
if(bTimer0Ctrl == _FALSE)
{
CTimerDecreaseTimerCnt();
}
ucTimer0Cnt = 10;
#if(_DCR_MODE == _DCR_TYPE_3)
g_ucDcrTimer += 1;
// 10msec, add by DCR add 20071219
#endif
}
//Cooriee for second counter
if ((++ucSecondCnt)>=(1000-30))
{
ucSecondCnt=0;
if(GET_DDCPROTECT_ONOFF()&&GET_LIGHTPOWERSTATUS())
{
// modify by cooriee for work time 20100804 start
WorkSec++;
if(WorkSec==60)
{
WorkSec=0;
stOsdUserData.WorkMin++;
if((stOsdUserData.WorkMin%30) == 0)
{
|