summaryrefslogtreecommitdiff
path: root/include/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/timer.h')
-rw-r--r--include/timer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/timer.h b/include/timer.h
index d8bc252ba0..89a49762ae 100644
--- a/include/timer.h
+++ b/include/timer.h
@@ -178,3 +178,10 @@ static inline int time_after(uint32_t a, uint32_t b)
}
#endif /* __CROS_EC_TIMER_H */
+
+/**
+ * Busy-wait for the given ticks.
+ *
+ * @param ticks Number of ticks to delay.
+ */
+void tick_delay(uint32_t ticks);