Hey everybody,
I want to catch an impulse on the GPIO0 port of the Tmote Sky. I populated the
R14 to enable GPIO0 on the expansion connector and in my program
I am using interface MSP430Interrupt as port20, which is binded to
MSP430InterruptC.Port20 (this should be GPIO0 = port 2, pin 0).
This is a piece of my code:
result_t gpio() {
call port20.makeInput();
atomic edge = TRUE;
call port20.edge(edge);
call port20.enable();
call Leds.greenOff();
call port20.disable();
return SUCCESS;
}
async event void port20.fired()
{
call Leds.greenOn();
}
The green Led switches On and never switches Off. Can you tell me why? I call
gpio() from Timer.Fired event (every 4 seconds) and following command is also
switching off
the Led. But this is not going to happen. I am using Boomerang 2.0.4.
I would appriciate any help. Thanks, Jan.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help