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:
Javier Alonso (Javinator9889) 2026-08-01 11:29:17 +02:00 committed by Xiang Xiao
parent 679c397401
commit 06ca196d56

View file

@ -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
----------------------------