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
21
twr_tick_t
twr_tick_get
(
void
);
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
twr_tick_wait
void twr_tick_wait(twr_tick_t delay)
Delay execution for specified amount of ticks.
Definition:
twr_tick.c:23
twr_tick_get
twr_tick_t twr_tick_get(void)
Get absolute timestamp since start of program.
Definition:
twr_tick.c:7
twr_tick_t
uint64_t twr_tick_t
Timestamp data type.
Definition:
twr_tick.h:16
twr
inc
twr_tick.h
Generated by
1.9.1