[Tinyos-devel] Changing the TOS scheduler
Kevin Klues
klueska at gmail.com
Thu Dec 20 09:54:22 PST 2007
In order to tell nesC which TOS scheduler it should use when autowiring the
semantics for posting and running a task you can pass the flag '
-fnesc-scheduler ' to the compiler, with a string including the necessary
parameters.
This flag is automatically set up with the default TinyOS scheduler in the
definition of the .platform file for each platform.
My question then is how to change the scheduler without modifying the
.platform file directly.
I originally thought to add ' -fnesc-scheduler= ' to the PFLAGS variable in
my application Makefile, but the one defined in the .platform file simply
overrode it.
Do we maybe need to move fnesc-scheduler out of .platform and into
<platform>.target like so:
NESC_SCHEDULER_FLAG ?= -fnesc-scheduler=TinySchedulerC,
TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask
PFLAGS += NESC_SCHEDULER_FLAG
Or is there some other way to currently achieve the same result that I am
somehow not immediately seeing?
--
~Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20071220/53ce0fc2/attachment.htm
More information about the Tinyos-devel
mailing list