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/wait.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tmk_core/common/wait.h') diff --git a/tmk_core/common/wait.h b/tmk_core/common/wait.h index 911c9ddb5..bdcb3f2a4 100644 --- a/tmk_core/common/wait.h +++ b/tmk_core/common/wait.h @@ -1,6 +1,8 @@ #ifndef WAIT_H #define WAIT_H +#include + #ifdef __cplusplus extern "C" { #endif @@ -16,8 +18,8 @@ extern "C" { #elif defined(__arm__) # include "wait_api.h" #else // Unit tests -#define wait_ms(ms) -#define wait_us(us) +void wait_ms(uint32_t ms); +#define wait_us(us) wait_ms(us / 1000) #endif #ifdef __cplusplus -- cgit v1.2.3