[Tinyos-host-mote-wg] [Tinyos-2.0wg] Interrupt interface
Phil Buonadonna
pbuonadonna at archedrock.com
Thu Oct 20 12:04:44 PDT 2005
The 'enable' function of the interrupt interface
(tos/interfaces/Interrup.nc) takes as an argument a flag to determine wether
it should fire on a rising or falling edge. This implies that the interrupt
is based on a digital signal transition (i.e. a GPIO pin) rather than a
generic peripheral interrupt in which there is no notion of 'edge
transition' but rather just an event.
The docs of the interface say that it is microcontroller independent, but it
really isn't in this case. It is specific to 1) Digital (GPIO) signals and
2) interrupt controllers that can fire on only one type of transition:
rising OR falling BUT NOT both. (As I understand it, this is because the
ATmega128 is limited to this case)
Proposals:
1) Move interrupt to a new interface called GPIOInterrupt and create a new
Interrupt.nc in which there is only an enable feature.
-or- 2) Keep the present interface, but document 'enable()' where the
argument is optional (seems kludgy)
As for the double edge trigger issue, one option is to simply not accomodate
this function in TOS 2.0. That is, in TOS 2.0 you can define a GPIO trigger
on a rising edge XOR falling edge. Which is fine, if that's the consensus.
pb
_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg
More information about the Tinyos-host-mote-wg
mailing list