5 static volatile twr_tick_t _twr_tick_counter = 0;
15 tick = _twr_tick_counter;
35 _twr_tick_counter += delta;
void twr_irq_disable(void)
Disable interrupt requests globally (call can be nested)
void twr_irq_enable(void)
Enable interrupt requests globally (call can be nested)
void twr_tick_wait(twr_tick_t delay)
Delay execution for specified amount of ticks.
twr_tick_t twr_tick_get(void)
Get absolute timestamp since start of program.
uint64_t twr_tick_t
Timestamp data type.