X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fusci%2FMsp430UsciIntDispatchP.nc;h=eaa2129bcf66a19168668cb6df7544951c741043;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=3c776048bdfe6899c9530b45fe105cc8ddfa250c;hpb=76eb4bee32f633c7046716c39fe046f5174aa859;p=tinyos-2.x.git diff --git a/tos/chips/msp430/usci/Msp430UsciIntDispatchP.nc b/tos/chips/msp430/usci/Msp430UsciIntDispatchP.nc index 3c776048..eaa2129b 100644 --- a/tos/chips/msp430/usci/Msp430UsciIntDispatchP.nc +++ b/tos/chips/msp430/usci/Msp430UsciIntDispatchP.nc @@ -26,15 +26,15 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + /** * Interrupt dispatch for USCI_Ax and USCI_Bx devices. - * - * @author R. Steve McKown + * + * @author R. Steve McKown */ - + generic module Msp430UsciIntDispatchP() @safe() { - provides interface HplMsp430UsciIntB as Interrupts[uint8_t id]; + provides interface HplMsp430UsciInt as Interrupts[uint8_t id]; uses { interface HplMsp430UsciInt as RawInt; interface ArbiterInfo; @@ -48,10 +48,10 @@ implementation { signal Interrupts.brk[call ArbiterInfo.userId()](); } - async event void RawInt.rx(char c) + async event void RawInt.rx(uint8_t byte) { if (call ArbiterInfo.inUse()) - signal Interrupts.rx[call ArbiterInfo.userId()](); + signal Interrupts.rx[call ArbiterInfo.userId()](byte); } async event void RawInt.tx() @@ -85,7 +85,7 @@ implementation { } default async event void Interrupts.brk[uint8_t id]() {} - default async event void Interrupts.rx[uint8_t id]() {} + default async event void Interrupts.rx[uint8_t id](uint8_t byte) {} default async event void Interrupts.tx[uint8_t id]() {} default async event void Interrupts.i2cCal[uint8_t id]() {} default async event void Interrupts.i2cNak[uint8_t id]() {}