diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-10-30 12:16:54 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-10-30 15:33:24 -0700 |
commit | 8b3a242ff0b8398b37378c67fe2c63beec1fa827 (patch) | |
tree | bb647b1ae48da03ccdb8efb290add7575145f691 /chip/stm32/watchdog.c | |
parent | a21ea56e76ff71849d45f59608c0beb7bede4c02 (diff) | |
download | chrome-ec-8b3a242ff0b8398b37378c67fe2c63beec1fa827.tar.gz |
Watchdog is reloaded by HOOK_TICK, not its own task
This reduces memory footprint.
BUG=chrome-os-partner:15714
BRANCH=none
TEST=system still boots; 'waitms 1500' prints watchdog error dump
Change-Id: Ieb0248a34655514b03d919cc36c2b369691da716
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36937
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'chip/stm32/watchdog.c')
-rw-r--r-- | chip/stm32/watchdog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/stm32/watchdog.c b/chip/stm32/watchdog.c index d93d0a6b96..774768ad36 100644 --- a/chip/stm32/watchdog.c +++ b/chip/stm32/watchdog.c @@ -5,12 +5,11 @@ /* Watchdog driver */ -#include "board.h" #include "common.h" -#include "config.h" -#include "registers.h" #include "gpio.h" +#include "hooks.h" #include "hwtimer.h" +#include "registers.h" #include "task.h" #include "timer.h" #include "util.h" @@ -56,6 +55,7 @@ void watchdog_reload(void) hwtimer_reset_watchdog(); #endif } +DECLARE_HOOK(HOOK_TICK, watchdog_reload, HOOK_PRIO_DEFAULT); int watchdog_init(void) { |