[Tinyos-devel] Changing the TOS scheduler
Kevin Klues
klueska at gmail.com
Mon Jan 14 13:59:57 PST 2008
Hi all,
I sent this email a while ago, but it was just before Christmas and it
probably slipped past most people's radars. Well I guess I got one
response, but I don't just want to change the implementation of a
component named TinySchedulerC, I want to change the name of this
component too. Here is my question again:
Does it make sense 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
Currently, 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 overrides it.
Is there some other way to currently achieve the same result that I am
somehow not immediately seeing?
Kevin
On Dec 23, 2007 7:04 PM, Federico Spadini <fspadini at arces.unibo.it> wrote:
>
>
>
>
> Kevin,
>
> I don't know if it is exactly what you are looking for but if you look under
> the 2.x-contrib folder in UCC, you'll find the late Cormac Duffy's
> pre-emptive scheduler. He adds
>
> CFLAGS += -I%T/lib/PreemptivePriorityScheduler/Priorities
>
> CFLAGS += -I%T/lib/PreemptivePriorityScheduler
>
> Which if I understood things correctly just adds these to the path, thereby
> hooking his scheduler into the system. However, since he follows the naming
> convention of the other schedulers he never uses the –fnesc-scheduler flag
> to adjust the auto-wiring system. I hope this helps.
>
>
>
> Goodluck!
>
>
>
> Federico Spadini
>
>
>
> <Sorry if you got this twice, my mail server sent me a relaying error>
>
>
>
>
> From: tinyos-devel-bounces at millennium.berkeley.edu
> [mailto:tinyos-devel-bounces at millennium.berkeley.edu] On Behalf Of Kevin
> Klues
> Sent: Thursday, December 20, 2007 6:54 PM
> To: TinyOS Development
> Subject: [Tinyos-devel] Changing the TOS scheduler
>
>
>
>
>
> 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
--
~Kevin
More information about the Tinyos-devel
mailing list