[Tinyos-host-mote-wg] [Tinyos-2.0wg] Re: Bug in nesC 1.2alpha10

David Gay dgay42 at gmail.com
Fri May 20 13:59:51 PDT 2005


On 5/20/05, Joe Polastre <joe.polastre at gmail.com> wrote:
> I believe there is a bug in the new nesC with passing strings into a component.
> 
> I think that if you pass in a string and the string is used in
> "uniqueCount", nesC is evaluating uniqueCount at the time that file is
> processed rather than waiting until the full program is processed and
> then assigning uniqueCount values.
> 
> To see the bug, compile apps/TestSPI for telosb.  You will get the
> "comparison is always false due to limited range of data type" even
> though the uniqueCount value should equal 2!

No bug. The warning is for the HPLUSART1C bus, which appears to have
no user. uniqueCount is returning 1 for HPLUSART0C (check your app.c
file).

[dgay at barnowl 2.x]$ xgrep Bus.HPL
./tos/chips/msp430/bus/HPLUSART0C.nc:  components HPLUSART0M, new
BusArbitrationC("Bus.HPLUSART0") as BA, MSP430GeneralIOC as IO;
./tos/chips/msp430/bus/SPIC.nc:    SPI_BUS_ID = unique("Bus.HPLUSART0"),
./tos/chips/msp430/bus/HPLUSART1C.nc:  components HPLUSART1M, new
BusArbitrationC("Bus.HPLUSART1") as BA, MSP430GeneralIOC as IO;

David

_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg


More information about the Tinyos-host-mote-wg mailing list