diff options
Diffstat (limited to 'tmk_core/common/wait.h')
| -rw-r--r-- | tmk_core/common/wait.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tmk_core/common/wait.h b/tmk_core/common/wait.h index 553f5243f..a7cded942 100644 --- a/tmk_core/common/wait.h +++ b/tmk_core/common/wait.h | |||
| @@ -13,13 +13,8 @@ extern "C" { | |||
| 13 | # define wait_us(us) _delay_us(us) | 13 | # define wait_us(us) _delay_us(us) |
| 14 | #elif defined PROTOCOL_CHIBIOS | 14 | #elif defined PROTOCOL_CHIBIOS |
| 15 | # include "ch.h" | 15 | # include "ch.h" |
| 16 | # if defined(STM32F3xx_MCUCONF) | 16 | # define wait_ms(ms) chThdSleepMilliseconds(ms) |
| 17 | # define wait_ms(ms) chSysPolledDelayX(MS2RTC(STM32_HCLK, (ms))) | 17 | # define wait_us(us) chThdSleepMicroseconds(us) |
| 18 | # define wait_us(us) chSysPolledDelayX(US2RTC(STM32_HCLK, (us))) | ||
| 19 | # else | ||
| 20 | # define wait_ms(ms) chThdSleepMilliseconds(ms) | ||
| 21 | # define wait_us(us) chThdSleepMicroseconds(us) | ||
| 22 | # endif | ||
| 23 | #elif defined(__arm__) | 18 | #elif defined(__arm__) |
| 24 | # include "wait_api.h" | 19 | # include "wait_api.h" |
| 25 | #else // Unit tests | 20 | #else // Unit tests |
