From 382d1861af12741af4ff235b9d18f179c0adc4c5 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 4 Dec 2013 17:06:17 +0100 Subject: kernel: Break out kernel primitives into separate files and move to separate dir. No code changed, just shuffling stuff around. This should make it easier to build only select parts kernel and use different implementations. Change-Id: Ie1f00f93008833ce38419d760afd70062c5e22b5 --- firmware/export/system.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'firmware/export/system.h') 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 @@ #include #include - #include "cpu.h" #include "gcc_extensions.h" /* for LIKELY/UNLIKELY */ @@ -86,6 +85,10 @@ int get_cpu_boost_counter(void); #define BAUDRATE 9600 +/* wrap-safe macros for tick comparison */ +#define TIME_AFTER(a,b) ((long)(b) - (long)(a) < 0) +#define TIME_BEFORE(a,b) TIME_AFTER(b,a) + #ifndef NULL #define NULL ((void*)0) #endif -- cgit v1.2.3