mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 02:30:07 +00:00
Fix LT() crashing some ARM keyboards (#6529)
This commit is contained in:
parent
576b138c6e
commit
d8d2a09674
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ extern "C" {
|
||||||
# define wait_us(us) _delay_us(us)
|
# define wait_us(us) _delay_us(us)
|
||||||
#elif defined PROTOCOL_CHIBIOS
|
#elif defined PROTOCOL_CHIBIOS
|
||||||
# include "ch.h"
|
# include "ch.h"
|
||||||
# define wait_ms(ms) chThdSleepMilliseconds(ms)
|
# define wait_ms(ms) do { if (ms != 0) { chThdSleepMilliseconds(ms); } else { chThdSleepMicroseconds(1); } } while (0)
|
||||||
# define wait_us(us) chThdSleepMicroseconds(us)
|
# define wait_us(us) do { if (us != 0) { chThdSleepMicroseconds(us); } else { chThdSleepMicroseconds(1); } } while (0)
|
||||||
#elif defined PROTOCOL_ARM_ATSAM
|
#elif defined PROTOCOL_ARM_ATSAM
|
||||||
# include "clks.h"
|
# include "clks.h"
|
||||||
# define wait_ms(ms) CLK_delay_ms(ms)
|
# define wait_ms(ms) CLK_delay_ms(ms)
|
||||||
|
|
Loading…
Reference in a new issue