summaryrefslogtreecommitdiff
path: root/tmk_core/common/test
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-07-02 01:06:39 +0300
committerJack Humbert <jack.humb@gmail.com>2017-07-08 21:59:51 -0400
commit4087d6da0d60f51735f6ec2c34e5fdabcf9c4447 (patch)
tree7607e45b2259afe96e1f31397f4db28c2060b8ec /tmk_core/common/test
parentfc4bfbe580c520caed5b6682790019658133f74e (diff)
downloadqmk_firmware-4087d6da0d60f51735f6ec2c34e5fdabcf9c4447.tar.gz
qmk_firmware-4087d6da0d60f51735f6ec2c34e5fdabcf9c4447.zip
Add wait support for tests
Diffstat (limited to 'tmk_core/common/test')
-rw-r--r--tmk_core/common/test/timer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tmk_core/common/test/timer.c b/tmk_core/common/test/timer.c
index 49efc1c1e4..19e79e1f54 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