That's not quite true - sometimes you need them due to hardware limitations. For example, in sleep mode the Atmega128 can only do edge triggering on INT0-3; on INT4-7 it can only do level triggering. However, the GpioInterrupt interface doesn't let you select this, so you can't use those interrupts to wake up the device unless you use the platform dependent HPL interrupt interface. Michiel
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:tinyos-help- > [EMAIL PROTECTED] On Behalf Of Jim Fell > Sent: maandag 22 september 2008 20:34 > To: shan > Cc: tinyos-help@millennium.berkeley.edu > Subject: Re: [Tinyos-help] level trigger for interrupt > > Hello Shan, > > It's my assumption that the reason is because level-triggers are not > practical for most applications. The reason for having an interrupt at > all is to handle some event that happens in the physical (i.e. "real") > world. A level trigger would essentially be the same a polling the > port, which can be easily done in your main program loop. > > Best regards, > > -Jim > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of shan > Sent: Saturday, September 20, 2008 9:13 PM > To: tinyos-help@millennium.berkeley.edu > Subject: [Tinyos-help] level trigger for interrupt > > Hi, > Why does GpioInterrupt not support level trigger, only support edge > trigger ? > Can anyone tell me the internal or reason ? > > Best regards > shan _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help