Changeset 46 in svn


Ignore:
Timestamp:
Sep 15, 2015 10:11:42 AM (10 years ago)
Author:
phkim
Message:
  1. phkim
  2. 서경방송 [릴리즈 1.1.1]
  3. 초기화등 빠른 동기화를 위한 함수 추가및 수정
Location:
trunk/zasc/app_c
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/zasc/app_c/DST_CommonAPI.c

    r2 r46  
    221221        //DHL_DISP_MuteMain(1); 
    222222        DHL_VID_Mute(1); 
    223         DST_DB_Sync(); 
     223        DST_DB_SyncNow(); 
    224224        int i; 
    225225        for ( i = 0; i < 500; i++) 
     
    612612        DST_Printf("%s|%d by %s \n",__func__, __LINE__,function); 
    613613//      DST_FlashSyncStart(); 
    614         DST_DB_Sync(); 
     614        DST_DB_SyncNow(); 
    615615        int i; 
    616616        for ( i = 0; i < 500; i++) 
  • trunk/zasc/app_c/DST_DB.c

    r39 r46  
    504504static DS_U32 g_sync_request_time = 0; 
    505505static DS_U32 g_Sync_finish_time = 0; 
     506static bool s_SyncNow = false; 
    506507 
    507508void DST_DB_Sync() 
     
    510511} 
    511512 
     513void DST_DB_SyncNow() 
     514{ 
     515        DST_DB_Sync(); 
     516        s_SyncNow = true; 
     517} 
    512518bool DST_DB_IsSync() 
    513519{ 
     
    520526        { 
    521527                //T(); 
    522                 DST_OS_Delay(1000); 
    523                 if (DST_g_KeyPressTime > DST_OS_GetTickCount()) DST_g_KeyPressTime = DST_OS_GetTickCount(); 
    524                 if (DST_OS_GetTickCount() - DST_g_KeyPressTime < DST_OS_GetTicksPerSecond()*5) continue; 
    525                 if (DST_DB_IsSync()) continue; 
     528                if(s_SyncNow == false) 
     529                { 
     530                        DST_OS_Delay(1000); 
     531                        if (DST_g_KeyPressTime > DST_OS_GetTickCount()) DST_g_KeyPressTime = DST_OS_GetTickCount(); 
     532                        if (DST_OS_GetTickCount() - DST_g_KeyPressTime < DST_OS_GetTicksPerSecond()*5) continue; 
     533                        if (DST_DB_IsSync()) continue; 
     534                } 
     535                s_SyncNow = false; 
     536 
    526537                //T(); 
    527538                DS_U32 *version = (DS_U32 *)&strFlash[0]; 
  • trunk/zasc/app_c/DST_DB.h

    r38 r46  
    5656bool DST_DB_IsSync(); 
    5757 
     58void DST_DB_SyncNow(); 
     59 
    5860void DST_DB_Open(); 
    5961 
  • trunk/zasc/app_c/DST_WinFactory.c

    r27 r46  
    6464                DST_EEPROM_SetMaxRF(-1); // DST_EEPROM_SetNeedReset¿¡¼­ ÃʱâÈ­ ÇÏÁö ¾Ê±â¶§¹®¿¡ °­Á¦·Î ±âº»°ªÀ» ½áÁØ´Ù. 
    6565                DST_EEPROM_SetNeedReset(1); 
    66                 DST_DB_Sync(); 
     66                DST_DB_SyncNow(); 
    6767                // ä³Î Æ©´× 
    6868                 
  • trunk/zasc/app_c/DST_WinFactoryReset.c

    r43 r46  
    3434                DST_Printf("winParentID : %d , msg : %d\n",CFactoryResetWin_winParentID,CFactoryResetWin_msg); 
    3535                DST_EEPROM_SetNeedReset(1); 
    36                 DST_DB_Sync(); 
     36                DST_DB_SyncNow(); 
    3737 
    3838        } 
  • trunk/zasc/app_c/DST_WinFrequencySetting.c

    r2 r46  
    5353                { 
    5454                        DST_EEPROM_SetNeedReset(1); 
    55                         DST_DB_Sync(); 
    5655                        DST_Reset(__func__); // âÀÌ ´ÝÈ÷¸é¼­ ÀçºÎÆÃ 
    5756                } 
Note: See TracChangeset for help on using the changeset viewer.