@@ -255,21 +255,19 @@ static void dsub_device_lookup_0(size_t idx, struct shell_static_entry *entry)
255
255
256
256
SHELL_DYNAMIC_CMD_CREATE (dsub_device_0 , dsub_device_lookup_0 );
257
257
258
- #define GET_OUTPUT_HELP \
259
- ("comp get_output <device>")
258
+ #define GET_OUTPUT_HELP SHELL_HELP("Read comparator output", "<device>")
260
259
261
- #define SET_TRIGGER_HELP \
262
- ("comp set_trigger <device> <NONE | RISING_EDGE | FALLING_EDGE | BOTH_EDGES>")
260
+ #define SET_TRIGGER_HELP \
261
+ SHELL_HELP("Set comparator trigger", \
262
+ "<device> <NONE | RISING_EDGE | FALLING_EDGE | BOTH_EDGES>")
263
263
264
- #define AWAIT_TRIGGER_HELP \
265
- ("comp await_trigger <device> [timeout] (default " \
266
- STRINGIFY(AWAIT_TRIGGER_DEFAULT_TIMEOUT) \
267
- "s, max " \
268
- STRINGIFY(AWAIT_TRIGGER_MAX_TIMEOUT) \
269
- "s)")
264
+ #define AWAIT_TRIGGER_HELP \
265
+ SHELL_HELP("Await comparator trigger", \
266
+ "<device> [timeout]\n" \
267
+ "timeout: default=" STRINGIFY(AWAIT_TRIGGER_DEFAULT_TIMEOUT) "s, " \
268
+ "max=" STRINGIFY(AWAIT_TRIGGER_MAX_TIMEOUT) "s")
270
269
271
- #define TRIGGER_PENDING_HELP \
272
- ("comp trigger_is_pending <device>")
270
+ #define TRIGGER_PENDING_HELP SHELL_HELP("Check comparator trigger status", "<device>")
273
271
274
272
SHELL_STATIC_SUBCMD_SET_CREATE (
275
273
sub_comp ,
0 commit comments