I'm trying to use the ATM128AdcC component to read multiple ADC channels, one ofter the other.
At compile time i get the following errors

In component `InsoleAppC':
InsoleAppC.nc:19: syntax error before `('
InsoleAppC.nc:26: syntax error before `('
InsoleAppC.nc:27: syntax error before `('

*****************Here is my File***************
configuration    InsoleAppC
    {
    }

implementation {
    components MainC;
    components LedsC;
    components InsoleC;
    components Atm128AdcC as ADC;
    components new TimerMilliC() as Timer;
    components ActiveMessageC as Radio;
   
    InsoleC.Boot        -> MainC;
    InsoleC.Leds        -> LedsC;
    InsoleC.Timer        -> Timer;    //This may be Timer0 , not sure
    InsoleC.Multiple    -> ADC;
    InsoleC.Resource    -> ADC;    //Atm128AdcSingle was not included, I dont think this is required
    InsoleC.Packet        -> Radio;
    InsoleC.AMPacket    -> Radio;
    InsoleC.AMSend        -> Radio;
    InsoleC.SplitControl    -> Radio;
}


I'm also having troubles understanding the Atm128AdcMultiple interface.
1 - How do I stop the free running conversion?
2 - To change the channel do I just set *newchannel = channel+1?

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

Reply via email to