summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-06-21 14:17:38 -0700
committerChromeBot <chrome-bot@google.com>2013-06-24 14:03:59 -0700
commit8a66ae3182268d51fe616a71148ccf0091f8005d (patch)
tree11f1b0d3586a6979757410377936339eaeb9a3a7 /include
parentc7e60d03aa4b60122aacaf77e0fd2491771b6662 (diff)
downloadchrome-ec-8a66ae3182268d51fe616a71148ccf0091f8005d.tar.gz
pit: Fix watchdog help for STM32L
Clean up timer initialization code to be more general, so that we can use timer 9 for the LSB on STM32L. Then use timer 4 for the watchdog helper. BUG=chrome-os-partner:18781 BRANCH=none TEST=From EC console: timerinfo -> current time still counts up properly waitms 2000 -> prints watchdog info before rebooting Change-Id: Ib0ba496b0eadb93756dcd1841857546910baf2a9 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/59612 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/hwtimer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hwtimer.h b/include/hwtimer.h
index 06344bbb4b..0b5f4e27df 100644
--- a/include/hwtimer.h
+++ b/include/hwtimer.h
@@ -27,6 +27,13 @@ uint32_t __hw_clock_source_read(void);
void __hw_clock_source_set(uint32_t ts);
/**
+ * Enable clock to a timer.
+ *
+ * @param n Timer number to enable
+ */
+void __hw_timer_enable_clock(int n);
+
+/**
* Initializes the hardware timer used to provide clock services, using the
* specified start timer value.
*