You return SUCCESS before making the call to turn on the led. It will
never turn on if the function returns before it is executed.
Kevin
On 8/29/07, John Griessen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've made a wrapper program to use Msp430Adc12Multichannel that I'm
> having trouble with. It compiles OK, but the Adc configure doesn't
> return SUCCESS.
>
> Testch12AdcP.nc executes up to before this command OK, (confirmed by an
> led on debug call).
> if ( call ch12Adc.configure(&config, memctl, numMemctl, buffer,
> numSamples, jiffies) == SUCCESS){
>
>
> The above line is in:
> http://ecosensory.com/Testch12AdcP.nc
> http://ecosensory.com/Testch12AdcC.nc
>
> The wrapper modules the above line calls are:
>
> http://ecosensory.com/ch12AdcC.nc
> http://ecosensory.com/ch12AdcP.nc
> http://ecosensory.com/Msp430Adc12.h
>
> This command gets executed, (confirmed by an led on debug call).
> async command error_t ch12Adc.configure(const
> msp430adc12_channel_config_t *config, adc12memctl_t *memctl, uint8_t
> numMemctl, uint16_t *buffer, uint16_t numSamples, uint16_t jiffies)
> {
> if (call multichannel.configure(config, memctl, numMemctl, buffer,
> numSamples, jiffies) == SUCCESS) {
> return SUCCESS;
> call Leds.led2On(); //debug aid
>
> But no led for this last call.
> If your eyes can see a mistake, I'd appreciate hearing about it...
>
> The wrapper code is just to act just like an ordinary use of
> Msp430Adc12Multichannel to start with so I can add a mux function to it.
>
> John Griessen
> --
> Ecosensory
> tinyOS devel on: ubuntu Linux; tinyOS v2.0.2; telosb ecosens1
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
~Kevin
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help