summaryrefslogtreecommitdiff
path: root/include/hwtimer.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-06-24 14:22:03 -0700
committerChromeBot <chrome-bot@google.com>2013-06-26 09:08:23 -0700
commit8e72f58ac4dd7a19069a58cde3ab1e91e8874091 (patch)
treeeb459655af25b905199e031f3dfeed92349199ff /include/hwtimer.h
parent67c275f849939dfa9993175f1704cb80b11a40b3 (diff)
downloadchrome-ec-8e72f58ac4dd7a19069a58cde3ab1e91e8874091.tar.gz
pit: Clean up timer init code
Power LED PWM now uses the same functions as the hardware timer. BUG=chrome-os-partner:20414 BRANCH=none TEST=Suspend system. Power button LED pulses smoothly still. Change-Id: Ib5ca6655d815462baaf68600ad14c4c0c680a6af Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/59838
Diffstat (limited to 'include/hwtimer.h')
-rw-r--r--include/hwtimer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/hwtimer.h b/include/hwtimer.h
index 0b5f4e27df..e47ac967da 100644
--- a/include/hwtimer.h
+++ b/include/hwtimer.h
@@ -29,9 +29,10 @@ void __hw_clock_source_set(uint32_t ts);
/**
* Enable clock to a timer.
*
- * @param n Timer number to enable
+ * @param n Timer number to enable/disable
+ * @param enable Enable (!=0) or disable (=0) clock to timer
*/
-void __hw_timer_enable_clock(int n);
+void __hw_timer_enable_clock(int n, int enable);
/**
* Initializes the hardware timer used to provide clock services, using the