diff options
Diffstat (limited to 'tmk_core/common/wait.h')
| -rw-r--r-- | tmk_core/common/wait.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tmk_core/common/wait.h b/tmk_core/common/wait.h index a7cded942..a77840bce 100644 --- a/tmk_core/common/wait.h +++ b/tmk_core/common/wait.h | |||
| @@ -15,6 +15,10 @@ extern "C" { | |||
| 15 | # include "ch.h" | 15 | # include "ch.h" |
| 16 | # define wait_ms(ms) chThdSleepMilliseconds(ms) | 16 | # define wait_ms(ms) chThdSleepMilliseconds(ms) |
| 17 | # define wait_us(us) chThdSleepMicroseconds(us) | 17 | # define wait_us(us) chThdSleepMicroseconds(us) |
| 18 | #elif defined PROTOCOL_ARM_ATSAM | ||
| 19 | # include "clks.h" | ||
| 20 | # define wait_ms(ms) CLK_delay_ms(ms) | ||
| 21 | # define wait_us(us) CLK_delay_us(us) | ||
| 18 | #elif defined(__arm__) | 22 | #elif defined(__arm__) |
| 19 | # include "wait_api.h" | 23 | # include "wait_api.h" |
| 20 | #else // Unit tests | 24 | #else // Unit tests |
