From 4087d6da0d60f51735f6ec2c34e5fdabcf9c4447 Mon Sep 17 00:00:00 2001 From: Fred Sundvik Date: Sun, 2 Jul 2017 01:06:39 +0300 Subject: Add wait support for tests --- tmk_core/common/test/timer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tmk_core/common/test/timer.c') diff --git a/tmk_core/common/test/timer.c b/tmk_core/common/test/timer.c index 49efc1c1e..19e79e1f5 100644 --- a/tmk_core/common/test/timer.c +++ b/tmk_core/common/test/timer.c @@ -28,4 +28,8 @@ uint16_t timer_elapsed(uint16_t last) { return TIMER_DIFF_16(timer_read(), last) uint32_t timer_elapsed32(uint32_t last) { return TIMER_DIFF_32(timer_read32(), last); } void set_time(uint32_t t) { current_time = t; } -void advance_time(uint32_t ms) { current_time += ms; } \ No newline at end of file +void advance_time(uint32_t ms) { current_time += ms; } + +void wait_ms(uint32_t ms) { + advance_time(ms); +} \ No newline at end of file -- cgit v1.2.3