提交 b56c8392 编写于 作者: O openharmony_ci 提交者: Gitee

!135 watchdog没有用宏隔离

Merge pull request !135 from SimonLi/watchdog_bugfix
......@@ -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.
先完成此消息的编辑!
想要评论请 注册