summaryrefslogtreecommitdiff
path: root/chip/stm32/watchdog.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-06-01 21:45:36 -0700
committerGerrit <chrome-bot@google.com>2012-06-05 09:30:21 -0700
commit99845e2fd5c89f78f5d34ea5c705e6d55aba5043 (patch)
treeb807d53acbc4b91adf6fd34b7159222930a17bc3 /chip/stm32/watchdog.c
parentfb425cf11f5a0f9ea2a1a7dc19789b328b3bc859 (diff)
downloadchrome-ec-99845e2fd5c89f78f5d34ea5c705e6d55aba5043.tar.gz
Add a common watchdog file
Some things about watchdogs are common across Cortex-M3, so create a common watchdog file to hold these. Put the watchdog task in there as the first customer. BUG=chrome-os-partner:10145 TEST=build for all boards Change-Id: Id55f71a807ee12bae3758afc213c30c731eadc07 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/24395 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/stm32/watchdog.c')
-rw-r--r--chip/stm32/watchdog.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/chip/stm32/watchdog.c b/chip/stm32/watchdog.c
index d23d12edbe..da6079ac29 100644
--- a/chip/stm32/watchdog.c
+++ b/chip/stm32/watchdog.c
@@ -55,15 +55,3 @@ int watchdog_init(void)
return EC_SUCCESS;
}
-
-
-/* Low priority task to reload the watchdog */
-void watchdog_task(void)
-{
- while (1) {
- usleep(500000);
- watchdog_reload();
- usleep(500000);
- watchdog_reload();
- }
-}