X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=doc%2Fhtml%2Ftep106.html;h=a444e4af0c17a5f92c6a86111940fdd4b470b7af;hb=337d0b13acf569c2640b3ed7b7f5c7cec35d7ddd;hp=d65a035a650aaa60dcb412829da57249881fbd23;hpb=1a329382c4f4556fd52d85f4e3f4a67e54911682;p=tinyos-2.x.git diff --git a/doc/html/tep106.html b/doc/html/tep106.html index d65a035a..a444e4af 100644 --- a/doc/html/tep106.html +++ b/doc/html/tep106.html @@ -303,9 +303,9 @@ ul.auto-toc { Philip Levis and Cory Sharp Draft-Created:10-Dec-2004 -Draft-Version:1.1.2.10 +Draft-Version:1.1.2.11 -Draft-Modified:2006-08-17 +Draft-Modified:2006-11-07 Draft-Discuss:TinyOS Developer List <tinyos-devel at mail.millennium.berkeley.edu> @@ -627,7 +627,12 @@ implementation { TaskEdf interface. Its configuration SHOULD wire it to TinySchedulerC. The key used for task unique identifiers MUST be "TinySchedulerC.TaskInterface", where TaskInterface is the name of the new task interface as presented -by the scheduler. For example, the module SomethingP requires two EDF +by the scheduler. A common way to make sure a consistent string is used +is to #define it. For example, TaskEdf.nc might include:

+
+#define UQ_TASK_EDF "TinySchedulerC.TaskEdf"
+
+

In this example, the module SomethingP requires two EDF tasks:

 configuration SomethingC {
@@ -635,8 +640,8 @@ configuration SomethingC {
 }
 implementation {
   components SomethingP, TinySchedulerC;
-  SomethingP.SendTask -> TinySchedulerC.TaskEdf["TinySchedulerC.TaskEdf"];
-  SomethingP.SenseTask -> TinySchedulerC.TaskEdf["TinySchedulerC.TaskEdf"];
+  SomethingP.SendTask -> TinySchedulerC.TaskEdf[unique(UQ_TASK_EDF)];
+  SomethingP.SenseTask -> TinySchedulerC.TaskEdf[unique(UQ_TASK_EDF)];
 }
 

The module SomethingP also has a basic task. The nesC compiler