1.修复启动方式获取慢导致启动异常
This commit is contained in:
parent
9045cdecd6
commit
19cda6b921
1
code/application/source/sf_app/code/include/sf_system.h
Normal file → Executable file
1
code/application/source/sf_app/code/include/sf_system.h
Normal file → Executable file
|
@ -61,6 +61,7 @@ UINT32 sf_4g_update(UINT8 *upFname);
|
||||||
SINT32 sf_app_load_ko_start(void);
|
SINT32 sf_app_load_ko_start(void);
|
||||||
SINT32 sf_app_mcu_para_start(void);
|
SINT32 sf_app_mcu_para_start(void);
|
||||||
SINT32 app_auto_poweroff_start(void);
|
SINT32 app_auto_poweroff_start(void);
|
||||||
|
UINT8 sf_check_power_on_mode(void);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#if __cplusplus
|
#if __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,6 +117,7 @@ int main(int argc, char *argv[])
|
||||||
SF_MUTEX_INIT_LOCK(GPIO_mutexLock);
|
SF_MUTEX_INIT_LOCK(GPIO_mutexLock);
|
||||||
//test_sd_free();
|
//test_sd_free();
|
||||||
//return 0;
|
//return 0;
|
||||||
|
sf_poweron_type_set(sf_check_power_on_mode());
|
||||||
|
|
||||||
sf_app_mcu_para_start();
|
sf_app_mcu_para_start();
|
||||||
|
|
||||||
|
|
|
@ -1368,8 +1368,6 @@ void* sf_app_mcu_para_thread(void *arg)
|
||||||
SLOGI("thread run\n");
|
SLOGI("thread run\n");
|
||||||
McuParaTskCfg.IsRun = 1;
|
McuParaTskCfg.IsRun = 1;
|
||||||
SINT32 isUsb = sf_usb_IsInsert();
|
SINT32 isUsb = sf_usb_IsInsert();
|
||||||
|
|
||||||
sf_poweron_type_set(sf_check_power_on_mode());
|
|
||||||
sf_mcu_flag_init();
|
sf_mcu_flag_init();
|
||||||
sf_mcu_init();
|
sf_mcu_init();
|
||||||
if((SF_MCU_STARTUP_NORMAL != sf_poweron_type_get()) && (!isUsb)){
|
if((SF_MCU_STARTUP_NORMAL != sf_poweron_type_get()) && (!isUsb)){
|
||||||
|
|
|
@ -60,7 +60,7 @@ extern UIMenuStoreInfo origInfo_check; /* backup */
|
||||||
//BOOL bAutoSystemReset = FALSE;
|
//BOOL bAutoSystemReset = FALSE;
|
||||||
|
|
||||||
UINT8 isCapRunning = 0;
|
UINT8 isCapRunning = 0;
|
||||||
static SF_STARTUP_TYPE_E StartMode = SF_MCU_STARTUP_ONKEY;
|
static SF_STARTUP_TYPE_E StartMode = SF_MCU_STARTUP_OFF;
|
||||||
|
|
||||||
SF_URL_S sfStOtaUrl = {0};
|
SF_URL_S sfStOtaUrl = {0};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user