赞助论坛
  • 3569阅读
  • 0回复

Mstar程序是如何响应按键的?我把主函数给出来了。 [复制链接]

楼层直达
5651090  
发帖
75
精华
0
金币
-20
威望
1
贡献
0
好评
0
注册
2010-07-27
楼主    5651090 发表于: 2010-07-30 20:59:49 
void main(void)
{
    Init_MCU();
    StartConfig();

    #if(RM_EEPROM_TYPE==RM_TYPE_PMC010)
    msSPI_CheckWriteProtect();
    #endif

    Load4K();
    WatchDogClear();
    #if(ENABLE_VD_DSP)
    VD_DSP_Init();
    #endif

    WatchDogClear();

    VersionMsg();
    WatchDogClear();

    Init_GlobalVariables();

    ReadSetting();
             Set_PowerOnFlag();

    WatchDogClear();
      msInit();
    WatchDogClear();

    OSDGammaInit();
    WatchDogClear();

      vdInitVariable();
    Init_Device();
    CheckFactoryKeyStatus();

#if ENABLE_DDC2BI
    msDDC2BIInit();
#endif

    #if ENABLE_MCU_USE_INTERNAL_CLOCK
    McuUseInternalClock();
    #endif

    Menu_InitVariable();

    #if(ENABLE_WATCH_DOG)
    McuWatchDogSetTimer(WatchDogTime_5S);
    #endif
    while (1)
          {
           WatchDogClear();
           uartDecodeCommand();

           if(g_bDebugProgStopFlag)
               continue;

           //这块有一部分代码是视频解码,删掉了

           SlowTimeHandler();

           VD_DSP_Processor();
           Menu_OsdHandler();

           #if TV_ENABLE
           if (TV_SearchHandle())
              continue;
           #endif

           #if( ENABLE_PAL_SWITCH_HANDLER )
           //if( g_ucmsVDCtl2&MSVD_CTL2_FLAG_PAL_SWITCH )
           msVDPalSwitchHandler();
           #endif

           SyncModeHandler();
           Power_PowerHandler();

           #if GAME_ENABLE
           GameHandle();
           #endif

           #ifdef IR_DEBUG_EN
           DebugIRHandler();
           #endif
           FlagCheckHandler();
           VD_DSP_Processor();

           #if(ENABLE_CHECK_AUTO_H_TOTAL)
           msCheckBK0_57_Value(0);
           #endif


           #if(ENABLE_DDC2BI)
           msDDC2BICommandHandler();
           #endif
      }
}
应该就while(1)这个死循环里了,具体是哪个函数啊?