Changeset 46 in svn
- Timestamp:
- Sep 15, 2015 10:11:42 AM (10 years ago)
- Location:
- trunk/zasc/app_c
- Files:
-
- 6 edited
-
DST_CommonAPI.c (modified) (2 diffs)
-
DST_DB.c (modified) (3 diffs)
-
DST_DB.h (modified) (1 diff)
-
DST_WinFactory.c (modified) (1 diff)
-
DST_WinFactoryReset.c (modified) (1 diff)
-
DST_WinFrequencySetting.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/zasc/app_c/DST_CommonAPI.c
r2 r46 221 221 //DHL_DISP_MuteMain(1); 222 222 DHL_VID_Mute(1); 223 DST_DB_Sync ();223 DST_DB_SyncNow(); 224 224 int i; 225 225 for ( i = 0; i < 500; i++) … … 612 612 DST_Printf("%s|%d by %s \n",__func__, __LINE__,function); 613 613 // DST_FlashSyncStart(); 614 DST_DB_Sync ();614 DST_DB_SyncNow(); 615 615 int i; 616 616 for ( i = 0; i < 500; i++) -
trunk/zasc/app_c/DST_DB.c
r39 r46 504 504 static DS_U32 g_sync_request_time = 0; 505 505 static DS_U32 g_Sync_finish_time = 0; 506 static bool s_SyncNow = false; 506 507 507 508 void DST_DB_Sync() … … 510 511 } 511 512 513 void DST_DB_SyncNow() 514 { 515 DST_DB_Sync(); 516 s_SyncNow = true; 517 } 512 518 bool DST_DB_IsSync() 513 519 { … … 520 526 { 521 527 //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 526 537 //T(); 527 538 DS_U32 *version = (DS_U32 *)&strFlash[0]; -
trunk/zasc/app_c/DST_DB.h
r38 r46 56 56 bool DST_DB_IsSync(); 57 57 58 void DST_DB_SyncNow(); 59 58 60 void DST_DB_Open(); 59 61 -
trunk/zasc/app_c/DST_WinFactory.c
r27 r46 64 64 DST_EEPROM_SetMaxRF(-1); // DST_EEPROM_SetNeedReset¿¡¼ ÃʱâÈ ÇÏÁö ¾Ê±â¶§¹®¿¡ °Á¦·Î ±âº»°ªÀ» ½áÁØ´Ù. 65 65 DST_EEPROM_SetNeedReset(1); 66 DST_DB_Sync ();66 DST_DB_SyncNow(); 67 67 // ä³Î Æ©´× 68 68 -
trunk/zasc/app_c/DST_WinFactoryReset.c
r43 r46 34 34 DST_Printf("winParentID : %d , msg : %d\n",CFactoryResetWin_winParentID,CFactoryResetWin_msg); 35 35 DST_EEPROM_SetNeedReset(1); 36 DST_DB_Sync ();36 DST_DB_SyncNow(); 37 37 38 38 } -
trunk/zasc/app_c/DST_WinFrequencySetting.c
r2 r46 53 53 { 54 54 DST_EEPROM_SetNeedReset(1); 55 DST_DB_Sync();56 55 DST_Reset(__func__); // âÀÌ ´ÝÈ÷¸é¼ ÀçºÎÆÃ 57 56 }
Note: See TracChangeset
for help on using the changeset viewer.
