1.关掉log;2.修复rtos可能读不到启动模式问题
This commit is contained in:
parent
e68537a0d7
commit
2f5aec3f38
|
@ -148,6 +148,8 @@ UINT32 DrvGPIO_GetPhotoMovieModeFromMonitor(void)
|
||||||
//int ret = 1;
|
//int ret = 1;
|
||||||
UINT8 value;
|
UINT8 value;
|
||||||
UIMenuStoreInfo *puiPara = sf_ui_para_get();
|
UIMenuStoreInfo *puiPara = sf_ui_para_get();
|
||||||
|
vos_perf_mark(&t1);
|
||||||
|
value = sf_get_power_on_mode();
|
||||||
|
|
||||||
if(gpio_getIntStatus(GPIO_INT_USBPLUGIN) || FALSE == (gpio_getPin(GPIO_CARD_DETECT) == 0 ? TRUE : FALSE))
|
if(gpio_getIntStatus(GPIO_INT_USBPLUGIN) || FALSE == (gpio_getPin(GPIO_CARD_DETECT) == 0 ? TRUE : FALSE))
|
||||||
{
|
{
|
||||||
|
@ -155,10 +157,8 @@ UINT32 DrvGPIO_GetPhotoMovieModeFromMonitor(void)
|
||||||
Save_MenuInfo();
|
Save_MenuInfo();
|
||||||
return g_uiBootMode;
|
return g_uiBootMode;
|
||||||
}
|
}
|
||||||
vos_perf_mark(&t1);
|
|
||||||
// ret = sf_mod_init();
|
// ret = sf_mod_init();
|
||||||
// printf("%s:%d ret:%d\n", __FUNCTION__, __LINE__,ret);
|
// printf("%s:%d ret:%d\n", __FUNCTION__, __LINE__,ret);
|
||||||
value = sf_get_power_on_mode();
|
|
||||||
//sf_mcu_power_on_para_get(SF_MCU_POWERON);
|
//sf_mcu_power_on_para_get(SF_MCU_POWERON);
|
||||||
//sf_mcu_wdg_set(5);
|
//sf_mcu_wdg_set(5);
|
||||||
//sf_mcu_reg_set(SF_MCU_CTRL_MODULE_PIR, 1);
|
//sf_mcu_reg_set(SF_MCU_CTRL_MODULE_PIR, 1);
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
#define POWERON_TRACE DISABLE //stop and wait for user enter cmd: "dsc boot"
|
#define POWERON_TRACE DISABLE //stop and wait for user enter cmd: "dsc boot"
|
||||||
#define POWERON_BOOT_REPORT ENABLE
|
#define POWERON_BOOT_REPORT ENABLE
|
||||||
#define POWERON_FAST_BOOT DISABLE
|
#define POWERON_FAST_BOOT DISABLE
|
||||||
#define POWERON_FAST_BOOT_MSG ENABLE//DISABLE // disable boot msg for fast boot, but hard to debug
|
#define POWERON_FAST_BOOT_MSG DISABLE // disable boot msg for fast boot, but hard to debug
|
||||||
#define POWERON_FAST_CPU2_BOOT DISABLE
|
#define POWERON_FAST_CPU2_BOOT DISABLE
|
||||||
#define POWERON_FAST_RECORD DISABLE
|
#define POWERON_FAST_RECORD DISABLE
|
||||||
#define POWERON_FAST_WIFI DISABLE //NOTE: need to enable POWERON_FAST_CPU2_BOOT too
|
#define POWERON_FAST_WIFI DISABLE //NOTE: need to enable POWERON_FAST_CPU2_BOOT too
|
||||||
|
|
Loading…
Reference in New Issue
Block a user