]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/system/tos.h
Update to allow header files to be processed via standard gcc and not have to run...
[tinyos-2.x.git] / tos / system / tos.h
index 18d8bb4c18f921594679153670c65c40ac9ad8de..ec49a208ff0ca21128e40fec961b742e75d031a7 100644 (file)
 #include <stddef.h>
 #include <ctype.h>
 
+/* TEMPORARY: include the Safe TinyOS macros so that annotations get
+ * defined away for non-safe users */
+#include "../lib/safe/include/annots_stage1.h"
+
 typedef uint8_t bool;
 enum { FALSE = 0, TRUE = 1 };
 
@@ -26,9 +30,18 @@ uint16_t TOS_NODE_ID = 1;
    transfer in interfaces. See TEP 3 for more discussion. */
 #define PASS
 
+#ifdef NESC
 struct @atmostonce { };
 struct @atleastonce { };
 struct @exactlyonce { };
+#endif
+
+/* This platform_bootstrap macro exists in accordance with TEP
+   107. A platform may override this through a platform.h file. */
+#include <platform.h>
+#ifndef platform_bootstrap
+#define platform_bootstrap() {}
+#endif
 
 #ifndef TOSSIM
 #define dbg(s, ...) 
@@ -36,3 +49,4 @@ struct @exactlyonce { };
 #define dbg_clear(s, ...) 
 #define dbgerror_clear(s, ...) 
 #endif
+