提交 fdae5089 编写于 作者: L likailong

Issue: #I3I8MT

Description: Fix watchdog macro bug
Sig:kernel
Feature or Bugfix: Bugfix
Binary Source: No
上级 b9a4f8b3
......@@ -46,6 +46,12 @@ extern "C" {
#ifdef LOSCFG_SHELL_CMD_DEBUG
STATIC BOOL systemExcReset = FALSE;
LITE_OS_SEC_TEXT_MINOR BOOL OsSystemExcIsReset(VOID)
{
return systemExcReset;
}
#ifdef LOSCFG_DRIVERS_HDF_PLATFORM_WATCHDOG
#define WATCHDOG_TIMER_INTERVAL 5 // 5 seconds
#define WATCHDOG_TIMER_INTERVAL_HALF (WATCHDOG_TIMER_INTERVAL / 2)
......@@ -91,11 +97,6 @@ STATIC void StopWatchdog(void)
g_wdStarted = FALSE;
}
LITE_OS_SEC_TEXT_MINOR BOOL OsSystemExcIsReset(VOID)
{
return systemExcReset;
}
LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdSystemExcReset(INT32 argc, const CHAR **argv)
{
if (argc != 1) {
......@@ -123,6 +124,7 @@ EXC_RESET_HELP:
SHELLCMD_ENTRY(panic_reset_shellcmd, CMD_TYPE_EX, "panicreset", 1, (CmdCallBackFunc)OsShellCmdSystemExcReset);
#endif
#endif
#ifdef __cplusplus
#if __cplusplus
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册