1 Star 0 Fork 5.2K

vv_justdoit / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
watchdogoverview.md 5.40 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

Watchdog Overview

Introduction

A watchdog, also called a watchdog timer, is a hardware timing device. If an error occurs in the main program of the system and fails to reset the watchdog timer, the watchdog timer sends a reset signal to restore the system to a normal state.

Available APIs

Table 1 Watchdog APIs

Capability

Function

Description

Open/Close

WatchdogOpen

Opens a watchdog.

WatchdogClose

Closes a watchdog.

Start/Stop

WatchdogStart

Starts a watchdog.

WatchdogStop

Stops a watchdog.

Timeout duration

WatchdogSetTimeout

Sets the watchdog timeout duration.

WatchdogGetTimeout

Obtains the watchdog timeout duration.

Status

WatchdogGetStatus

Obtains the watchdog status.

Feeding

WatchdogFeed

Feeds a watchdog, or resets a watchdog timer.

NOTE: All functions provided in this document can be called only in kernel mode.

1
https://gitee.com/vv-justdoit/docs.git
git@gitee.com:vv-justdoit/docs.git
vv-justdoit
docs
docs
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891