X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=doc%2Ftxt%2Ftep107.txt;h=18465422927bf61197593ea1d222638e682c6809;hb=4f057e14d46beedf64d643bebd06ca3e7e903d1f;hp=7b632f14b4a784bcbf48833c577877a7a0ec81a6;hpb=8e47421ee9f64db03f389e73ecaa93eabed90dfc;p=tinyos-2.x.git diff --git a/doc/txt/tep107.txt b/doc/txt/tep107.txt index 7b632f14..18465422 100644 --- a/doc/txt/tep107.txt +++ b/doc/txt/tep107.txt @@ -5,15 +5,10 @@ TinyOS 2.x Boot Sequence :TEP: 107 :Group: Core Working Group :Type: Documentary -:Status: Draft +:Status: Final :TinyOS-Version: 2.x :Author: Philip Levis -:Draft-Created: 10-Dec-2004 -:Draft-Version: $Revision$ -:Draft-Modified: $Date$ -:Draft-Discuss: TinyOS Developer List - .. Note:: This memo documents a part of TinyOS for the TinyOS Community, and @@ -199,8 +194,18 @@ 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. +is an empty function. TinyOS's top-level include file, ``tos.h``, includes +a default implementation of this function which does nothing. If a platform +needs to replace the default, it SHOULD put it in a platform's +``platform.h`` file as a #define. The implementation of ``tos.h`` +supports this:: + + /* This platform_bootstrap macro exists in accordance with TEP + 107. A platform may override this through a platform.h file. */ + #include + #ifndef platform_bootstrap + #define platform_bootstrap() {} + #endif The boot sequence has three separate initializations: Scheduler, PlatformInit, and SoftwareInit. The boot configuration (MainC) wires