Hello again ,
I try all ways for test INT0 1 2 3 , here is my code
module BlinkM {
provides {
interface StdControl;
}
uses {
interface Timer;
interface Leds;
}
}
implementation {
command result_t StdControl.init() {
call Leds.init();
return SUCCESS;
}
command result_t StdControl.start() {
call Leds.greenOn();
sbi(EIMSK,INT4);
return SUCCESS;
}
command result_t StdControl.stop() {
return call Timer.stop();
}
event result_t Timer.fired()
{
//call Leds.redToggle();
return SUCCESS;
}
TOSH_SIGNAL(SIG_INTERRUPT4)
{
call Leds.yellowToggle();
cbi(EIMSK, INT4);
}
}
in AVR , Interrupt4 = Int0 on mcia2 ??
I still have problem on thie code , when i trun on the mica2 ,
green and yellow leds all on , but i do not rise the edge of INT0 ,
anyone knows what is my problem ?
thanks.
--
Open WebMail Project (http://openwebmail.org)
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help