summaryrefslogtreecommitdiff
path: root/include/arch/posix
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-04 15:31:21 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-04 15:31:21 +0100
commitf0c087f4ab3cae2d8da65cf51bb5b0e69fe72a76 (patch)
treed25c48766a295311c1f451dd26f5626d842c1ddb /include/arch/posix
parent6fd09b2bb22f70b429b53a1205ced2487324fdd4 (diff)
counter: Provide typedefs fore value/overflow type
Diffstat (limited to 'include/arch/posix')
-rw-r--r--include/arch/posix/driver/counter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/arch/posix/driver/counter.h b/include/arch/posix/driver/counter.h
index 6390d14..4f575a8 100644
--- a/include/arch/posix/driver/counter.h
+++ b/include/arch/posix/driver/counter.h
@@ -1,6 +1,9 @@
#include <stdint.h>
#include <time.h>
+typedef uint64_t counter_value_t;
+typedef uint8_t counter_overflowed_t;
+
class Counter {
private:
Counter(const Counter &copy);