1.rtos增加log cmd
This commit is contained in:
parent
f8ef234da9
commit
70dbaaad79
|
@ -12,7 +12,9 @@
|
||||||
#endif
|
#endif
|
||||||
#include <gsensor.h>
|
#include <gsensor.h>
|
||||||
#include "UIApp/AppDisp_PipView.h"
|
#include "UIApp/AppDisp_PipView.h"
|
||||||
|
#if HUNTING_CAMERA_MCU == ENABLE
|
||||||
|
#include "sys_fastboot.h"
|
||||||
|
#endif
|
||||||
#define THIS_DBGLVL 2 // 0=FATAL, 1=ERR, 2=WRN, 3=UNIT, 4=FUNC, 5=IND, 6=MSG, 7=VALUE, 8=USER
|
#define THIS_DBGLVL 2 // 0=FATAL, 1=ERR, 2=WRN, 3=UNIT, 4=FUNC, 5=IND, 6=MSG, 7=VALUE, 8=USER
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
#define __MODULE__ SysMainCmd
|
#define __MODULE__ SysMainCmd
|
||||||
|
@ -201,6 +203,15 @@ static BOOL Cmd_PowerOff_Test(unsigned char argc, char **argv)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HUNTING_CAMERA_MCU == ENABLE
|
||||||
|
static BOOL sf_log_fastboot_msg_en(unsigned char argc, char **argv)
|
||||||
|
{
|
||||||
|
fastboot_msg_en(ENABLE);
|
||||||
|
DBG_DUMP("log ENABLE\r\n");
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
SXCMD_BEGIN(sys_cmd_tbl, "system command")
|
SXCMD_BEGIN(sys_cmd_tbl, "system command")
|
||||||
SXCMD_ITEM("mem %", cmd_sys_mem, "system memory layout")
|
SXCMD_ITEM("mem %", cmd_sys_mem, "system memory layout")
|
||||||
SXCMD_ITEM("pip %", Cmd_user_pip, "pip view style")
|
SXCMD_ITEM("pip %", Cmd_user_pip, "pip view style")
|
||||||
|
@ -214,7 +225,9 @@ SXCMD_ITEM("curl", Cmd_user_CurlTest, "curl command test")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SXCMD_ITEM("power_off %", Cmd_PowerOff_Test, "flowpreview power off test")
|
SXCMD_ITEM("power_off %", Cmd_PowerOff_Test, "flowpreview power off test")
|
||||||
|
#if HUNTING_CAMERA_MCU == ENABLE
|
||||||
|
SXCMD_ITEM("log %", sf_log_fastboot_msg_en, "log on")
|
||||||
|
#endif
|
||||||
SXCMD_END()
|
SXCMD_END()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user