mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-14 12:34:39 +00:00
4f788c2ae9
* Xulkal user changes Xulkal user changes * Reduce code duplication * Massive user code refactor
12 lines
194 B
C
12 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;
|
|
}
|
|
|