watchdog: shell: adopt SHELL_HELP
have wdt shell commands use the new SHELL_HELP macro Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
b84294c156
commit
3096ea0216
1 changed files with 4 additions and 8 deletions
|
@ -9,20 +9,16 @@
|
|||
#include <zephyr/drivers/watchdog.h>
|
||||
|
||||
#define WDT_SETUP_HELP \
|
||||
"Set up watchdog instance. Syntax:\n" \
|
||||
"<device>"
|
||||
SHELL_HELP("Set up watchdog instance", "<device>")
|
||||
|
||||
#define WDT_DISABLE_HELP \
|
||||
"Disable watchdog instance. Syntax:\n" \
|
||||
"<device>"
|
||||
SHELL_HELP("Disable watchdog instance", "<device>")
|
||||
|
||||
#define WDT_TIMEOUT_HELP \
|
||||
"Install a new timeout. Syntax:\n" \
|
||||
"<device> <none|cpu|soc> <min_ms> <max_ms>"
|
||||
SHELL_HELP("Install a new timeout", "<device> <none|cpu|soc> <min_ms> <max_ms>")
|
||||
|
||||
#define WDT_FEED_HELP \
|
||||
"Feed specified watchdog timeout. Syntax:\n" \
|
||||
"<device> <channel_id>"
|
||||
SHELL_HELP("Feed specified watchdog timeout", "<device> <channel_id>")
|
||||
|
||||
static const char *const wdt_reset_name[] = {
|
||||
[WDT_FLAG_RESET_NONE] = "none",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue