xiaoxiang781216 commented on code in PR #20782:
URL: https://github.com/apache/nuttx/pull/20782#discussion_r4355873247


##########
drivers/timers/Kconfig:
##########
@@ -579,6 +579,62 @@ endif # !WATCHDOG_AUTOMONITOR_BY_CAPTURE && 
!WATCHDOG_AUTOMONITOR_BY_IDLE
 
 endif # WATCHDOG_AUTOMONITOR
 
+menuconfig TASKWDT
+       bool "Task watchdog supervisor"
+       depends on !WATCHDOG_AUTOMONITOR && SCHED_LPWORK
+       ---help---
+               Multiplex one hardware watchdog among any number of tasks. Each 
task
+               opens CONFIG_TASKWDT_DEVPATH to get its own channel with its own
+               timeout and feeds it with write() or WDIOC_KEEPALIVE, as on the
+               Linux watchdog API. The hardware watchdog is fed by the 
supervisor
+               only while all the armed channels are within their timeouts.
+               See include/nuttx/timers/taskwdt.h.
+
+               This replaces the Auto-monitor, which feeds the watchdog
+               unconditionally.
+
+if TASKWDT
+
+config TASKWDT_DEVPATH

Review Comment:
   let's focus on 
https://github.com/apache/nuttx/pull/20782#discussion_r4354780847 first.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to