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 <[EMAIL PROTECTED]> 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
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to