Re: [Tinyos-help] #ifdef support in nesc.

2006-07-01 Thread Dongyan Chen
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,

Re: [Tinyos-help] #ifdef support in nesc.

2006-06-29 Thread Tehn Yit Chin
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 Sou

Re: [Tinyos-help] #ifdef support in nesc.

2006-06-29 Thread Philip Levis
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. Phil ___ T

[Tinyos-help] #ifdef support in nesc.

2006-06-29 Thread Tehn Yit Chin
Hi, Does anyone know if #ifdef is supported in nesc? I was experimenting with SurgeM.nc in apps/surge, and the following bit of code is not compiling for me. event result_t Timer.fired() { dbg(DBG_USR1, "SurgeM: Timer fired\n"); timer_ticks++; if (timer_ticks % TIMER_GETADC_COUN