X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=doc%2Fhtml%2Fporting.html;h=a7f668d8e8030a99493d7c3a13ea1a1dbddb99ea;hb=843be811b125fd0bb60a470c2687dce7e8398471;hp=dfc638f370b4bc6f38d211221277dc4c1346520d;hpb=d56750cc1c9423ffd51150040b12d64b6d2cc0d0;p=tinyos-2.x.git diff --git a/doc/html/porting.html b/doc/html/porting.html index dfc638f3..a7f668d8 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -3,7 +3,7 @@ - + Porting TinyOS 1.x Code to TinyOS 2.0 @@ -42,11 +42,6 @@ blockquote.epigraph { dd { margin-bottom: 0.5em } -/* Uncomment (& remove this text!) to get bold-faced definition list terms -dt { - font-weight: bold } -*/ - div.abstract { margin: 2em 5em } @@ -284,6 +279,7 @@ ul.auto-toc { +

Porting TinyOS 1.x Code to TinyOS 2.0

@@ -295,18 +291,17 @@ ul.auto-toc {
October 26 2006
-

Note

-

This document provides a few important points that describe +

This document provides a few important points that describe major steps required for porting TinyOS 1.x code to TinyOS 2.0. It is based on Tahir Azim's experience porting Beacon Vector Routing (BVR[1]) from TinyOS 1.x to T2. This document is not a complete porting guide, but the hope is that it will provide some help or guidance.

-
-

1. Porting Points

+
+

1. Porting Points

As these observations come from porting a network protocol, they are rather protocol-centric and do not consider other abstractions such as storage. We hope to add such points in the future.

@@ -322,7 +317,7 @@ if (call Packet...) {

In TinyOS 2.x, SUCCESS is equal to a zero error code, while other error codes are non-zero. So calls like this should be changed to make sure they test the result for equality with SUCCESS:

-if (call Packet... () == SUCCESS ) { 
+if (call Packet... () == SUCCESS ) {
       //SUCCESS!: do this...
   }
 
@@ -342,8 +337,8 @@ if (call Packet... () == SUCCESS ) {
-
-

2. Author's Address

+
+

2. Author's Address

Tahir Azim
358 Gates Hall
@@ -364,8 +359,8 @@ if (call Packet... () == SUCCESS ) {
-