diff options
author | Keith Packard <keithp@keithp.com> | 2009-04-18 23:16:01 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-04-18 23:16:01 -0700 |
commit | ed6f67dc47d750d5ff8bea63ae7cbb560689b9b6 (patch) | |
tree | 124f29a6d86e47ff9b16f2608b225270651f5903 /ao_log.c | |
parent | 3d5a5fc4db5f681e848202c4ee4099d2879677d6 (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_log.c')
-rw-r--r-- | ao_log.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -17,10 +17,10 @@ #include "ao.h" -__data uint32_t ao_log_current_pos; -__data uint32_t ao_log_start_pos; -__xdata uint8_t ao_log_running; -__xdata uint8_t ao_log_mutex; +static __pdata uint32_t ao_log_current_pos; +static __pdata uint32_t ao_log_start_pos; +static __xdata uint8_t ao_log_running; +static __xdata uint8_t ao_log_mutex; static uint8_t ao_log_csum(uint8_t *b) @@ -191,5 +191,5 @@ ao_log_init(void) ao_log_state = ao_flight_invalid; /* Create a task to log events to eeprom */ - ao_add_task(&ao_log_task, ao_log); + ao_add_task(&ao_log_task, ao_log, "log"); } |