2020-11-19 19:41:37 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
config EXAMPLES_WATCHER
|
|
|
|
tristate "Watcher example"
|
|
|
|
default n
|
2023-02-13 18:17:13 +01:00
|
|
|
depends on DRIVERS_NOTERAM
|
2021-02-17 22:36:18 +01:00
|
|
|
depends on FSUTILS_MKFATFS
|
2020-11-19 19:41:37 +01:00
|
|
|
---help---
|
|
|
|
Enable the watcher example. The watcher is a task that will monitor
|
2023-02-25 19:12:10 +01:00
|
|
|
other tasks that have previously subscribed to be watched. If the
|
2020-11-19 19:41:37 +01:00
|
|
|
watched tasks don't signal the watcher during the watchdog time period,
|
|
|
|
the watchdog timer will expire and the watcher will print the tasks that
|
|
|
|
did not signal and the ones that signaled. This example will only be supported
|
|
|
|
by the chips that supports interrupt on timeout, i.e., which have the \"capture\"
|
|
|
|
command implemented.
|
|
|
|
|
|
|
|
if EXAMPLES_WATCHER
|
|
|
|
|
|
|
|
config EXAMPLES_WATCHER_PROGNAME
|
|
|
|
string "Program name"
|
|
|
|
default "watcher"
|
|
|
|
---help---
|
|
|
|
This is the name of the program that will be used when the NSH ELF
|
|
|
|
program is installed.
|
|
|
|
|
|
|
|
config EXAMPLES_WATCHER_PRIORITY
|
|
|
|
int "Watcher task priority"
|
|
|
|
default 100
|
|
|
|
|
|
|
|
config EXAMPLES_WATCHER_STACKSIZE
|
|
|
|
int "Watcher stack size"
|
|
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
|
|
|
|
config EXAMPLES_WATCHER_DEVPATH
|
|
|
|
string "Watchdog device path"
|
|
|
|
default "/dev/watchdog0"
|
|
|
|
|
|
|
|
config EXAMPLES_WATCHER_TIMEOUT
|
|
|
|
int "Watchdog timeout in ms"
|
|
|
|
default 5000
|
|
|
|
|
|
|
|
config EXAMPLES_WATCHER_SIGNAL
|
|
|
|
int "Signal Number for communication"
|
2021-03-08 14:32:13 +01:00
|
|
|
default 18
|
2020-11-19 19:41:37 +01:00
|
|
|
---help---
|
|
|
|
This is the Signal Number used for communication between the watcher task and the watched tasks.
|
|
|
|
|
2021-03-08 14:32:13 +01:00
|
|
|
config EXAMPLES_WATCHER_SIGNAL_LOG
|
|
|
|
int "Signal Number for logging"
|
|
|
|
default 19
|
|
|
|
---help---
|
|
|
|
This is the Signal Number used by the wdt handler to notify the signal handler to log the tasks.
|
2020-11-19 19:41:37 +01:00
|
|
|
endif
|