Firmware SDK
twr_tick.h
1 #ifndef _TWR_TICK_H
2 #define _TWR_TICK_H
3 
4 #include <twr_common.h>
5 
9 
11 
12 #define TWR_TICK_INFINITY UINT64_C(0xffffffffffffffff)
13 
15 
16 typedef uint64_t twr_tick_t;
17 
20 
22 
25 
26 void twr_tick_wait(twr_tick_t delay);
27 
28 void twr_tick_increment_irq(twr_tick_t delta);
29 
31 
32 #endif // _TWR_TICK_H
void twr_tick_wait(twr_tick_t delay)
Delay execution for specified amount of ticks.
Definition: twr_tick.c:23
uint64_t twr_tick_t
Timestamp data type.
Definition: twr_tick.h:16
twr_tick_t twr_tick_get(void)
Get absolute timestamp since start of program.
Definition: twr_tick.c:7