📄 main.c
字号:
#include "board.h"
#include "Ir.h"
#include "mcu.h"
#include "misc.h"
#include "power.h"
#include "debug.h"
#include "Isr.h"
#include "Global.h"
#include "Keypad.h"
#include "Gm_rwreg.h"
#include "Security.h"
void main(void)
{
#if 0
DWORD i;
BYTE count;
count = 0;
#endif
Init_MCU();
IR_Init();
gm_init();
{
Clr_gm_Standby();
ForceDelay1ms(1);
Set_PowerOnStatus();
}
//InitTotalEEPROM();
//ReadMonitorSetting();
//Init_GlobalVariables();
// Set_PowerOnFlag();//vick :save power status
//CheckFactoryKeyStatus();
//GreenLedOff();
//GreenLedOn();
#if DebugVersion
printData("the value is %d", cmd_Power_Handler);
#endif
// RedLedOn();
//Menu_InitVariable();
//hwLA7605_AFT = 0;
//Clr_PowerOnFlag();
//cmd_Power_Handler = POWER_ON_SYSTEM;
#if 0
for (i=0; i<=10000;i++)
{
if (gm_readByte()!=0x01)
{
count++;
}
}
printData("the value is %d", count);
#endif
while (1)
{
//printMsg("hello");
//if (Shut_Down_Count!=0)
// printData("the value of shut_down_Count is %d", Shut_Down_Count);
//printData("%d", test);
readStatusHandler();
PowerHandler();
SecurityHandler();
Key_ScanKeypad();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -