From 699e6b229bbc760cbea5acbcc4361d850a6e7204 Mon Sep 17 00:00:00 2001 From: skullydazed Date: Wed, 23 Oct 2019 13:35:39 -0700 Subject: [PATCH] Update tmk_core/common/wait.h Co-Authored-By: Joel Challis --- tmk_core/common/wait.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tmk_core/common/wait.h b/tmk_core/common/wait.h index 8c4e6b0692b..469670fd10f 100644 --- a/tmk_core/common/wait.h +++ b/tmk_core/common/wait.h @@ -13,6 +13,7 @@ extern "C" { # define wait_us(us) _delay_us(us) #elif defined PROTOCOL_CHIBIOS # include "ch.h" +# include "hal.h" // FIXME: This doesn't compile if `NKRO_ENABLED = no` # define wait_ms(ms) chSysPolledDelayX(MS2RTC(STM32_SYSCLK, ms)) # define wait_us(us) chSysPolledDelayX(US2RTC(STM32_SYSCLK, us))