]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Include platform_bootstrap call.
authorscipio <scipio>
Thu, 1 Mar 2007 04:21:44 +0000 (04:21 +0000)
committerscipio <scipio>
Thu, 1 Mar 2007 04:21:44 +0000 (04:21 +0000)
14 files changed:
doc/txt/tep107.txt
tos/platforms/btnode3/platform.h [new file with mode: 0644]
tos/platforms/eyesIFX/platform.h [new file with mode: 0644]
tos/platforms/intelmote2/platform.h [new file with mode: 0644]
tos/platforms/mica/platform.h [new file with mode: 0644]
tos/platforms/mica2/platform.h [new file with mode: 0644]
tos/platforms/mica2dot/platform.h [new file with mode: 0644]
tos/platforms/micaz/platform.h [new file with mode: 0644]
tos/platforms/null/platform.h [new file with mode: 0644]
tos/platforms/telosa/platform.h [new file with mode: 0644]
tos/platforms/telosb/platform.h [new file with mode: 0644]
tos/platforms/tinynode/platform.h [new file with mode: 0644]
tos/system/RealMainP.nc
tos/system/tos.h

index c7f651a6db5ad38202761be6e24b49b5782e1001..7b632f14b4a784bcbf48833c577877a7a0ec81a6 100644 (file)
@@ -162,6 +162,7 @@ Layer (TEP 2) SHOULD wire to MainC and not RealMainP::
   implementation {
     int main() __attribute__ ((C, spontaneous)) {
       atomic {
+        platform_bootstrap();
         call Scheduler.init();
         call PlatformInit.init();
         while (call Scheduler.runNextTask());
diff --git a/tos/platforms/btnode3/platform.h b/tos/platforms/btnode3/platform.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tos/platforms/eyesIFX/platform.h b/tos/platforms/eyesIFX/platform.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tos/platforms/intelmote2/platform.h b/tos/platforms/intelmote2/platform.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tos/platforms/mica/platform.h b/tos/platforms/mica/platform.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tos/platforms/mica2/platform.h b/tos/platforms/mica2/platform.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tos/platforms/mica2dot/platform.h b/tos/platforms/mica2dot/platform.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tos/platforms/micaz/platform.h b/tos/platforms/micaz/platform.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tos/platforms/null/platform.h b/tos/platforms/null/platform.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tos/platforms/telosa/platform.h b/tos/platforms/telosa/platform.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tos/platforms/telosb/platform.h b/tos/platforms/telosb/platform.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tos/platforms/tinynode/platform.h b/tos/platforms/tinynode/platform.h
new file mode 100644 (file)
index 0000000..e69de29
index 6ea0e8035588600f866dcef2ecaaaf8d949336e8..22e77d31eb69efc3c76c4d3d47dfaf4fb70da6a9 100644 (file)
@@ -57,7 +57,8 @@ implementation {
           as CPU settings, counters, etc. After the hardware is ready,
           initialize the requisite software components and start
           execution.*/
-    
+       platform_bootstrap();
+       
        call Scheduler.init(); 
     
        /* Initialize the platform. Then spin on the Scheduler, passing
index 18d8bb4c18f921594679153670c65c40ac9ad8de..9b9a17dbed06bbb3b3a4a542f1248132d1e18488 100644 (file)
@@ -16,6 +16,7 @@
 #include <stddef.h>
 #include <ctype.h>
 
+
 typedef uint8_t bool;
 enum { FALSE = 0, TRUE = 1 };
 
@@ -30,9 +31,17 @@ struct @atmostonce { };
 struct @atleastonce { };
 struct @exactlyonce { };
 
+/* 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, ...) 
 #define dbgerror(s, ...) 
 #define dbg_clear(s, ...) 
 #define dbgerror_clear(s, ...) 
 #endif
+