This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 06ca196d567e7cd605d53febcff3c63d40f6baf4
Author: Javier Alonso (Javinator9889) <[email protected]>
AuthorDate: Sat Aug 1 11:29:17 2026 +0200

    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 <[email protected]>
---
 .../components/drivers/character/timers/watchdog.rst         | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/Documentation/components/drivers/character/timers/watchdog.rst 
b/Documentation/components/drivers/character/timers/watchdog.rst
index 94b689811df..ffd85385164 100644
--- a/Documentation/components/drivers/character/timers/watchdog.rst
+++ b/Documentation/components/drivers/character/timers/watchdog.rst
@@ -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
 ----------------------------
 

Reply via email to