drivers: comparator: adopt SHELL_HELP
Adopt SHELL_HELP macro for comparator_shell Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
ab750eab5f
commit
d7c0244487
1 changed files with 10 additions and 12 deletions
|
@ -255,21 +255,19 @@ static void dsub_device_lookup_0(size_t idx, struct shell_static_entry *entry)
|
||||||
|
|
||||||
SHELL_DYNAMIC_CMD_CREATE(dsub_device_0, dsub_device_lookup_0);
|
SHELL_DYNAMIC_CMD_CREATE(dsub_device_0, dsub_device_lookup_0);
|
||||||
|
|
||||||
#define GET_OUTPUT_HELP \
|
#define GET_OUTPUT_HELP SHELL_HELP("Read comparator output", "<device>")
|
||||||
("comp get_output <device>")
|
|
||||||
|
|
||||||
#define SET_TRIGGER_HELP \
|
#define SET_TRIGGER_HELP \
|
||||||
("comp set_trigger <device> <NONE | RISING_EDGE | FALLING_EDGE | BOTH_EDGES>")
|
SHELL_HELP("Set comparator trigger", \
|
||||||
|
"<device> <NONE | RISING_EDGE | FALLING_EDGE | BOTH_EDGES>")
|
||||||
|
|
||||||
#define AWAIT_TRIGGER_HELP \
|
#define AWAIT_TRIGGER_HELP \
|
||||||
("comp await_trigger <device> [timeout] (default " \
|
SHELL_HELP("Await comparator trigger", \
|
||||||
STRINGIFY(AWAIT_TRIGGER_DEFAULT_TIMEOUT) \
|
"<device> [timeout]\n" \
|
||||||
"s, max " \
|
"timeout: default=" STRINGIFY(AWAIT_TRIGGER_DEFAULT_TIMEOUT) "s, " \
|
||||||
STRINGIFY(AWAIT_TRIGGER_MAX_TIMEOUT) \
|
"max=" STRINGIFY(AWAIT_TRIGGER_MAX_TIMEOUT) "s")
|
||||||
"s)")
|
|
||||||
|
|
||||||
#define TRIGGER_PENDING_HELP \
|
#define TRIGGER_PENDING_HELP SHELL_HELP("Check comparator trigger status", "<device>")
|
||||||
("comp trigger_is_pending <device>")
|
|
||||||
|
|
||||||
SHELL_STATIC_SUBCMD_SET_CREATE(
|
SHELL_STATIC_SUBCMD_SET_CREATE(
|
||||||
sub_comp,
|
sub_comp,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue