summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/wait.h
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-07-02 00:06:39 +0200
committerJack Humbert <jack.humb@gmail.com>2017-07-09 03:59:51 +0200
commit4087d6da0d60f51735f6ec2c34e5fdabcf9c4447 (patch)
tree7607e45b2259afe96e1f31397f4db28c2060b8ec /tmk_core/common/wait.h
parentfc4bfbe580c520caed5b6682790019658133f74e (diff)
downloadqmk_firmware-4087d6da0d60f51735f6ec2c34e5fdabcf9c4447.tar.gz
qmk_firmware-4087d6da0d60f51735f6ec2c34e5fdabcf9c4447.tar.xz
Add wait support for tests
Diffstat (limited to 'tmk_core/common/wait.h')
-rw-r--r--tmk_core/common/wait.h6
1 files changed, 4 insertions, 2 deletions
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 <inttypes.h>
+
#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