diff options
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r-- | firmware/export/system.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index 25f9287618..1dab352071 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -24,7 +24,6 @@ | |||
24 | 24 | ||
25 | #include <stdbool.h> | 25 | #include <stdbool.h> |
26 | #include <stdint.h> | 26 | #include <stdint.h> |
27 | |||
28 | #include "cpu.h" | 27 | #include "cpu.h" |
29 | #include "gcc_extensions.h" /* for LIKELY/UNLIKELY */ | 28 | #include "gcc_extensions.h" /* for LIKELY/UNLIKELY */ |
30 | 29 | ||
@@ -86,6 +85,10 @@ int get_cpu_boost_counter(void); | |||
86 | 85 | ||
87 | #define BAUDRATE 9600 | 86 | #define BAUDRATE 9600 |
88 | 87 | ||
88 | /* wrap-safe macros for tick comparison */ | ||
89 | #define TIME_AFTER(a,b) ((long)(b) - (long)(a) < 0) | ||
90 | #define TIME_BEFORE(a,b) TIME_AFTER(b,a) | ||
91 | |||
89 | #ifndef NULL | 92 | #ifndef NULL |
90 | #define NULL ((void*)0) | 93 | #define NULL ((void*)0) |
91 | #endif | 94 | #endif |