📄 isr.h
字号:
/**************************************************************************
(C)Copyright Cheertek Inc. 2002-2003,
D300, all right reserved.
Product : WinAV Firmware
Date : 1999.08.25.
Author : Cheertek (D300 TCH)
Purpose : Interrupt Service Routine module
The moudle will receive internal Timer and external INT
Sources : isr.h/ isr.c
****************************************************************************/
#ifndef __ISR_H__
#define __ISR_H__
//brian.276-4th, Watchdog control
#ifdef SYSTEM_8051
// wyc1.11a, support watch dog timer
// Brian1.10-3, timed access macro for Watchdog
#define TIMED_ACCESS()\
{\
TA = 0xAA;\
TA = 0x55;\
}
sfr WTCON = 0xD8; // Watchdog control register
sfr CKCON = 0x8E; // Clock control register(bit 4, 5, 6) for Watchdog
sbit CLRWT = 0xD8; // Bit 0 of WTCON: Clear Watchdog Timer
#endif
extern DWORD __dwTimeHang; // in isr.c
extern DWORD __dwIER; // record now IER Value
// wyc1.07a. remove this variale.
//extern BYTE __bKeyRepeat; // in isr.c
// LLY2.37p, remove __bISRKeyRead, because we will split IR and F/W key to __bISRKey and __bFWKey
// So, it's un-necessary to reference it to decide input key source
//extern BYTE __bISRKeyRead;
extern BYTE IDATA __bISRKey; // The key value comes from Key-Scan or IR
extern BIT __btAutoConcealment; // enable/ disable auto-concealment
//DVD_037RECOVER
extern WORD __wMonitorLackIFD; // in isr.c
extern WORD __wMonitorIFDCount; // in isr.c
extern BYTE __bResetRecover;
extern BYTE __bRecoverStage;
// wyc1.25, add two variable to force reset DSP.
// wyc2.31, remove this variable.
//extern BYTE __bNeedResetAudio;
extern WORD __wAudioResetCount;
// The four interrupts in 8031; T0, T1, INT0, INT1
void ISR_Timer0 (void);
void ISR_Timer1 (void);
// wyc.278-3, for 28C_MSDAV panel 臂п.
#ifdef SUPPORT_AV_SYSTEM
#ifndef SERIAL_DEBUG
void ISR_Timer2(void);
// wyc.278-3, for 28C_MSDAV panel 臂п.
#endif // #ifdef SUPPORT_AV_SYSTEM
#endif // #ifndef SERIAL_DEBUG
void ISR_INT0 (void);
void ISR_INT1 (void);
// wyc1.10, modify value to 30 to avoid error entering recover stage.
#define MONITOR_PREPARERECOVER 30
// The recovery time is 100* 100mSec= 10 Seconds
#define MONITOR_COUNT 100 // the unit is 100 msec
// wyc1.07, redefine the entering error concealment condition.
#define MONITOR_HANGKICK 50
#define MONITOR_ENTERRECOVER 55
#define MONITOR_RESETCHIP 100 // 10 sec.
#define HANG_RESET_LIMIT 2 // 2*40 seconds
#endif // __ISR_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -