mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-29 06:30:17 +00:00
13 lines
194 B
C
13 lines
194 B
C
|
#include "timer_utils.h"
|
||
|
|
||
|
bool timer_expired(uint16_t last)
|
||
|
{
|
||
|
return timer_read() - last < 0x8000;
|
||
|
}
|
||
|
|
||
|
bool timer_expired32(uint32_t last)
|
||
|
{
|
||
|
return timer_read32() - last < 0x80000000;
|
||
|
}
|
||
|
|