Hi,
   My application is to enable the Dio pins of MDA320 board at different
timer intervals. My code is as follows:

command result_t StdControl.init() {
        call Leds.init();
        call DioControl.init();
        return SUCCESS;
    }
    command result_t StdControl.start() {
        uint16_t i;
        call DioControl.start();
        i=0;
        while(i<=10){
            call Timer0.start(TIMER_ONE_SHOT, 1000);
            call Timer1.start(TIMER_ONE_SHOT, 5000);
            call Timer3.start(TIMER_ONE_SHOT, 10000);
            call Timer4.start(TIMER_ONE_SHOT, 15000);
            i++;
        }
        return SUCCESS;
    }
    command result_t StdControl.stop() {
        call DioControl.stop();
        return SUCCESS;
    }
    event result_t Timer0.fired(){
        call Dio2.high();
        call Leds.greenToggle();
        return SUCCESS;
    }
    event result_t Timer1.fired(){
        call Dio3.high();
        call Leds.yellowToggle();
        return SUCCESS;
    }
    event result_t Timer3.fired(){
        call Dio2.low();
        call Leds.greenToggle();
        return SUCCESS;
    }
    event result_t Timer4.fired(){
        call Dio3.low();
        call Leds.yellowToggle();
        return SUCCESS;
    }

In this program While loop is executing only once. After that its not
repeating. can anyone help me to solve this problem.

-- 
Thanks & regards,
G.Dhivya
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to