From ed6f67dc47d750d5ff8bea63ae7cbb560689b9b6 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 18 Apr 2009 23:16:01 -0700 Subject: 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. --- ao_cmd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ao_cmd.c') 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 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"); } -- cgit v1.2.3