summaryrefslogtreecommitdiff
path: root/firmware/export/system.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2013-12-04 17:06:17 +0100
committerThomas Martitz <kugel@rockbox.org>2014-03-03 18:11:57 +0100
commit382d1861af12741af4ff235b9d18f179c0adc4c5 (patch)
tree26166c130d2889bb1ae1082e8f7aba103534f49e /firmware/export/system.h
parent8bae5f2644b5d5759499fbf1066b9c35c6f859ad (diff)
downloadrockbox-382d1861af12741af4ff235b9d18f179c0adc4c5.tar.gz
rockbox-382d1861af12741af4ff235b9d18f179c0adc4c5.zip
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
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r--firmware/export/system.h5
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