diff options
Diffstat (limited to 'tmk_core/common/wait.h')
| -rw-r--r-- | tmk_core/common/wait.h | 6 |
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 @@ | |||
| 1 | #ifndef WAIT_H | 1 | #ifndef WAIT_H |
| 2 | #define WAIT_H | 2 | #define WAIT_H |
| 3 | 3 | ||
| 4 | #include <inttypes.h> | ||
| 5 | |||
| 4 | #ifdef __cplusplus | 6 | #ifdef __cplusplus |
| 5 | extern "C" { | 7 | extern "C" { |
| 6 | #endif | 8 | #endif |
| @@ -16,8 +18,8 @@ extern "C" { | |||
| 16 | #elif defined(__arm__) | 18 | #elif defined(__arm__) |
| 17 | # include "wait_api.h" | 19 | # include "wait_api.h" |
| 18 | #else // Unit tests | 20 | #else // Unit tests |
| 19 | #define wait_ms(ms) | 21 | void wait_ms(uint32_t ms); |
| 20 | #define wait_us(us) | 22 | #define wait_us(us) wait_ms(us / 1000) |
| 21 | #endif | 23 | #endif |
| 22 | 24 | ||
| 23 | #ifdef __cplusplus | 25 | #ifdef __cplusplus |
