summaryrefslogtreecommitdiff
path: root/chip/lm4/watchdog.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-04-24 16:29:28 -0700
committerRandall Spangler <rspangler@chromium.org>2012-04-24 17:46:54 -0700
commit135f14bf498ab19b6e75efc3a0d18ef7c8a8752d (patch)
tree1dd03ec292b5f9f44a24e045e64e0c10ff58b6a6 /chip/lm4/watchdog.c
parent0d19c59aba807f915f1ea46d273bfebe1ded1db9 (diff)
downloadchrome-ec-135f14bf498ab19b6e75efc3a0d18ef7c8a8752d.tar.gz
Refactor async console output
This adds a 'ch' command which prints/sets which channels are active This handles all the async output; the remaining debug commands will be refactored to use ccprintf() / ccputs() in a followup CL. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:7464 TEST=manual ch --> all channels active ch 0x100 -> just port80 active powerbtn -> system boots; only port 80 codes shown on console Change-Id: I9efc43acec919b62b78c2c82c61946d32380adfe
Diffstat (limited to 'chip/lm4/watchdog.c')
-rw-r--r--chip/lm4/watchdog.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/chip/lm4/watchdog.c b/chip/lm4/watchdog.c
index c13414c20e..ebca3f67d7 100644
--- a/chip/lm4/watchdog.c
+++ b/chip/lm4/watchdog.c
@@ -36,12 +36,10 @@ static uint32_t watchdog_period; /* Watchdog counter initial value */
int command_task_info(int argc, char **argv);
int command_timer_info(int argc, char **argv);
-/**
- * watchdog debug trace.
- *
- * It is triggered if the watchdog has not been reloaded after 1x the timeout
- * period, after 2x the period an hardware reset is triggering.
- */
+
+/* Watchdog debug trace. This is triggered if the watchdog has not been
+ * reloaded after 1x the timeout period, after 2x the period an hardware reset
+ * is triggering. */
void watchdog_trace(uint32_t excep_lr, uint32_t excep_sp)
{
uint32_t psp;
@@ -168,11 +166,6 @@ int watchdog_init(void)
/* Low priority task to reload the watchdog */
void watchdog_task(void)
{
- /* Print when the watchdog task starts. This is the lowest priority
- * task, so this only starts once all other tasks have gotten a chance
- * to do their task inits and have gone to sleep. */
- uart_printf("[watchdog task started at %d us]\n", get_time().le.lo);
-
while (1) {
#ifdef BOARD_bds
gpio_set_level(GPIO_DEBUG_LED, 1);