[Tinyos-devel] Removing useless wrappers from tos/system

Philip Levis pal at cs.stanford.edu
Tue Oct 2 14:22:32 PDT 2007

On Oct 2, 2007, at 2:01 PM, David Gay wrote:

> On 10/2/07, Philip Levis <pal at cs.stanford.edu> wrote:
>> On Oct 2, 2007, at 1:27 PM, David Gay wrote:
>>> In tos/system, the following configurations just wrap a module w/o
>>> doing any interesting wiring:
>>> - NoLedsC
>>> - RandomLfsrC
>>> - RandomMlcgC
>>> They are presumably a left-over from when we required all things
>>> ending in C to be configurations.
>>> Proposal: get rid of these configurations, i.e., rename the *P
>>> module to *C.
>>> I'll do this next week if I hear no screams...
>> I think it was that way for the random number generators because the
>> C's at one point did the autowiring to SoftwareInit. That has since
>> moved into RandomC. To be honest, it should be in the C's, so that
>> you can use them without wiring to SoftwareInit.
> So do the following changes:
> RandomC is just a selection of RandomMlcgC
> RandomLfsrC/RandomMlcgC do the Init auto-wiring
> NoLedsP replaces NoLedsC

Sounds good to me. Yay code refactoring.


More information about the Tinyos-devel mailing list