提交 1e875d92 编写于 作者: O openharmony_ci 提交者: Gitee

!734 fix: Watchdog test case repair

Merge pull request !734 from 尹树清/master
......@@ -56,11 +56,15 @@ STATIC DevHandle g_wdHandle;
STATIC void StartWatchdog(void)
{
int32_t ret;
if (g_wdStarted) {
return;
}
g_wdHandle = WatchdogOpen(0);
ret = WatchdogOpen(0, &g_wdHandle);
if (ret != HDF_SUCCESS) {
return;
}
WatchdogSetTimeout(g_wdHandle, WATCHDOG_TIMER_INTERVAL);
if (LOS_SwtmrCreate(LOSCFG_BASE_CORE_TICK_PER_SECOND * WATCHDOG_TIMER_INTERVAL_HALF, LOS_SWTMR_MODE_PERIOD,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册