[Tinyos-help] #ifdef support in nesc.
Dongyan Chen
cdongyan at gmail.com
Sat Jul 1 23:41:35 PDT 2006
You need to also wire the components' interface together. For example,
do you have in your configuration sth like
#ifdef CHIRP_ENABLE
SurgeM.StdControl -> Sounder;
#endif /* CHIRP_ENABLE */
- Dongyan
On 6/29/06, Tehn Yit Chin <tehn-yit.chin at greyinnovation.com> wrote:
>
> Philip Levis wrote:
> > On Jun 29, 2006, at 5:33 PM, Tehn Yit Chin wrote:
> >
> >> Hi,
> >>
> >> Does anyone know if #ifdef is supported in nesc?
> >
> >
> > The full C preprocessor is supported. Your bug is that you are not
> > wiring the Sounder. You need to include it in the configuration.
> >
>
> In Surge.nc, I was wiring Sounder as
>
> implementation {
> components Main, SurgeM, TimerC, LedsC, NoLeds, Photo as Sensor,
> RandomLFSR,
> GenericCommPromiscuous as Comm, Bcast, MultiHopRouter as multihopM,
> QueuedSend;
>
> #ifdef CHIRP_ENABLE
> Components Sounder;
> #endif /* CHIRP_ENABLE */
>
> ....
> }
>
> Is this valid? Must all components be specify in one statement?
>
> thanks,
> tyc
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
More information about the Tinyos-help
mailing list