]> oss.titaniummirror.com Git - tinyos-2.x.git/commit
Improve interrupt handling for USCI.
authorR. Steve McKown <rsmckown@gmail.com>
Thu, 8 Apr 2010 00:02:56 +0000 (18:02 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 13 Apr 2010 20:18:26 +0000 (14:18 -0600)
commit59a38cc43b09cc83e1a414ec0531588abab72cc9
tree94a240c453e338dd8d8b4fb9876104bc1ad56efe
parent01fbb19513c5581165fde6910631f7b100657a7c
Improve interrupt handling for USCI.

Because some interrupts share an interrupt vector, we use the relevant interrupt
enable bit to decide if any user is interested in the interrupt.  If not, that
interrupt is skipped so that another interrupt in the if/then/elseif chain can
be taken.  We also defensively try to prevent I2C interrupts from being a
problem if not used, although no I2C code using these interrupts has yet been
written.
tos/chips/msp430/usci/HplMsp430UsciInt0P.nc
tos/chips/msp430/usci/HplMsp430UsciInt1P.nc