samples: subsys: task_wdt: Minor corrections in config and doc

Use the actual minimum timeout used by the sample for task watchdog
channels (100 ms) as the configuration value for the fallback hardware
watchdog, to avoid unnecessary executions of the timer handler.

Add missing indentation in the documentation of the sample so that
the console output is rendered correctly.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2021-07-02 09:26:02 +02:00 committed by Maureen Helm
commit ad0e3a40e8
2 changed files with 11 additions and 11 deletions

View file

@ -36,13 +36,13 @@ reset):
.. code-block:: console
Task watchdog sample application.
Main thread still alive...
Control thread started.
Main thread still alive...
Main thread still alive...
Main thread still alive...
Control thread getting stuck...
Main thread still alive...
Task watchdog channel 1 callback, thread: control
Resetting device...
Task watchdog sample application.
Main thread still alive...
Control thread started.
Main thread still alive...
Main thread still alive...
Main thread still alive...
Control thread getting stuck...
Main thread still alive...
Task watchdog channel 1 callback, thread: control
Resetting device...

View file

@ -5,6 +5,6 @@ CONFIG_WDT_LOG_LEVEL_DBG=y
CONFIG_WDT_DISABLE_AT_BOOT=y
CONFIG_TASK_WDT=y
CONFIG_TASK_WDT_MIN_TIMEOUT=50
CONFIG_TASK_WDT_MIN_TIMEOUT=100
CONFIG_THREAD_NAME=y