mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
docs: Add new watchdog functionality
The watchdog documentation includes the new functionality of the driver's char device: When reading from it, it emits information about the watchdog status including flags, timeout and timeleft as milliseconds. An example has been included as well. Signed-off-by: Javier Alonso <dev@javinator9889.com>
This commit is contained in:
parent
679c397401
commit
06ca196d56
1 changed files with 12 additions and 0 deletions
|
|
@ -120,6 +120,18 @@ a parameter (where x is the timer number):
|
|||
|
||||
nsh> wdog -i /dev/watchdogx
|
||||
|
||||
Additionally, the watchdog driver can be read by using standard commands such as ``cat``.
|
||||
It will emit relevant information about the watchdog and its current status, including the
|
||||
flags bitset, timeout and timeleft from the current slice as milliseconds:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
nsh> cat /dev/watchdogx
|
||||
Status :
|
||||
flags : 0x00000000
|
||||
timeout : 30000
|
||||
timeleft : 9889
|
||||
|
||||
Application Level Interface
|
||||
----------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue