summaryrefslogtreecommitdiff
path: root/ao_cmd.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-18 23:16:01 -0700
committerKeith Packard <keithp@keithp.com>2009-04-18 23:16:01 -0700
commited6f67dc47d750d5ff8bea63ae7cbb560689b9b6 (patch)
tree124f29a6d86e47ff9b16f2608b225270651f5903 /ao_cmd.c
parent3d5a5fc4db5f681e848202c4ee4099d2879677d6 (diff)
Add task names and 'T' command to show task status.
The T command shows the current wchan and PC for each task in the system.
Diffstat (limited to 'ao_cmd.c')
-rw-r--r--ao_cmd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ao_cmd.c b/ao_cmd.c
index 49efb05e..575ed69a 100644
--- a/ao_cmd.c
+++ b/ao_cmd.c
@@ -494,6 +494,7 @@ static const uint8_t help_txt[] =
"l Dump last flight log\n"
"E <0 off, 1 on> Set command echo mode\n"
"S<data> Send data to serial line\n"
+ "T Show task states\n"
"\n"
"Target debug commands:\n"
"D Enable debug mode\n"
@@ -554,6 +555,9 @@ ao_cmd(void *parameters)
case 'l':
dump_log();
break;
+ case 'T':
+ ao_task_info();
+ break;
case 'S':
send_serial();
break;
@@ -595,5 +599,5 @@ __xdata struct ao_task ao_cmd_task;
void
ao_cmd_init(void)
{
- ao_add_task(&ao_cmd_task, ao_cmd);
+ ao_add_task(&ao_cmd_task, ao_cmd, "cmd");
}