Hi! On Sat, 28 Nov 2009, Vikram vik76 wrote:
> Hello everybody, > > I want to use the CC2420Config interface for setting the channel using > command void setChannel( uint8_t channel ); I also call the sync() and have > implemented syncDone(). > > In my module I included the code > uses interface CC2420Config; > > For wiring I use this code > components CC2420ControlC; > App.CC2420Config -> CC2420ControlC; > > > In makefile I included > PFLAGS += -I$(TOSDIR)/chips/cc2420 -I$(TOSDIR)/chips/cc2420/control > -I$(TOSDIR)/chips/cc2420/interfaces > What platform are you using? If you use one that is using the cc2420 the above includes should already be added by the .platform config file. -- Razvan ME > > After doing the above I get the following errors for CC2420.h > tinyos-2x/tos/chips/cc2420/CC2420.h:120: syntax error before `nx_bool' > tinyos-2x/tos/chips/cc2420/CC2420.h:120: warning: no semicolon at end of > struct or union > tinyos-2x/tos/chips/cc2420/CC2420.h:121: syntax error before `ack' > tinyos-2x/tos/chips/cc2420/CC2420.h:122: syntax error before `timesync' > tinyos-2x/tos/chips/cc2420/CC2420.h:132: syntax error before `}' > tinyos-2x/tos/chips/cc2420/CC2420.h:132: warning: type defaults to `int' in > declaration of `cc2420_metadata_t' > tinyos-2x/tos/chips/cc2420/CC2420.h:132: warning: data definition has notype > or storage class > > Also the following errors > /tinyos-2x/tos/chips/cc2420/control/CC2420ControlC.nc:62: component > AlarmMultiplexC not found > > tinyos-2x/tos/chips/cc2420/control/CC2420ControlC.nc:73: component CC2420SpiC > not found > > Also several other errors which I am not listing. > > I wonder whether I have missed some important step. > Please help. > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
