From: scipio Philip Levis
-Draft-Created: 10-Dec-2004
Draft-Version: 1.7
+
-Draft-Version: 1.9
Draft-Modified: 2007-02-05
+Draft-Modified: 2007-02-10
@@ -483,8 +483,19 @@ operations besides those which are absolutely necessary for further code,
such as scheduler initialization, to execute.
Examples of platform_bootstrap() operations are configuring the memory
system and setting the processor mode. Generally, platform_bootstrap()
-is an empty function. The platform_bootstrap() function SHOULD be
-specified in a platform's hardware.h file.Draft-Discuss: TinyOS Developer List <tinyos-devel at mail.millennium.berkeley.edu>
+/* 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 +
The boot sequence has three separate initializations: Scheduler, PlatformInit, and SoftwareInit. The boot configuration (MainC) wires the first two automatically, to TinySchedulerC (discussed in TEP 106) @@ -519,9 +530,7 @@ initialization order. As these hidden dependencies must be due to hardware, the sequence is platform-specific. A port of TinyOS to a new plaform MUST include a component PlatformC which provides one and only one instance of the Init interface.
-Generally, component intialization occurs through SoftwareInit. -PlatformInit is for a small subset of initializations whose properties -requires that they be performed separately. Initializations invoked +
Initializations invoked through PlatformC meet some or all of the following criteria:
while on a mote with a CC420 radio (e.g., micaZ), TOS_Msg is defined as:
+while on a mote with a CC2420 radio (e.g., micaZ), TOS_Msg is defined as:
typedef struct TOS_Msg { // The following fields are transmitted/received on the radio. @@ -641,7 +633,10 @@ with a command-line option to ncc:Ben Greenstein and Philip Levis - Draft-Created: 11-Jul-2005 Draft-Version: 1.8 +Draft-Version: 1.9 diff --git a/doc/html/tep2.html b/doc/html/tep2.html index 65c420c5..0457e0e6 100644 --- a/doc/html/tep2.html +++ b/doc/html/tep2.html @@ -3,9 +3,9 @@ - + Draft-Modified: 2007-02-06 Hardware Abstraction Architecture - +