[Tinyos-devel] SimpleArbiterP bug
Kevin Klues
klueska at gmail.com
Wed Oct 15 17:28:34 PDT 2008
The idea was first brought in for implementing the priority scheme
used to arbitrate access to USART0 between the Tda5250 radio driver
and the flash chip on the eyes platform. I don't remember the
details, and Vlado will have to comment, but I think the
ResourceRequested interface was used to allow the radio to keep
control of the USART while listening for incoming packets, but
optionally allow the flash chip to take control if it had things it
needed to write quickly. Making the radio driver the dfault owner
complicated things because there were times when a normal power
manager would be used to shutdown the USART if neither the radio or
the flash needed access to it.
Kevin
On Wed, Oct 15, 2008 at 5:11 PM, Philip Levis <pal at cs.stanford.edu> wrote:
>
> On Oct 15, 2008, at 11:03 AM, Kevin Klues wrote:
>
>> Nevermind, I see how your code works. I'll look into pushing it into
>> the tree this way in the next couple of days if no one responds saying
>> they require the existing semantics.
>
> Why is there a ResourceRequested interface? Why would a client ever care?
> The idea that a client might sit on the lock when it's unused and it could
> release it is broken in the first place; this is the role of a DefaultOwner.
>
> Phil
>
--
~Kevin
More information about the Tinyos-devel
mailing list