[Keymap] Xulkal user changes (#6044)
* Xulkal user changes Xulkal user changes * Reduce code duplication * Massive user code refactor
This commit is contained in:
parent
02b3fadbac
commit
4f788c2ae9
18 changed files with 334 additions and 260 deletions
12
users/xulkal/timer_utils.c
Normal file
12
users/xulkal/timer_utils.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
#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;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue