X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fusart%2FHplMsp430Usart0P.nc;h=228e2b14e85c823081bba0414e9c8a4f77b5ee8b;hb=26d7f5a6239a0f8fbb76588b3562654823acd43f;hp=cf618bfbbdba8cc75855497c1102b256380c6293;hpb=944bc0204b7ce507a6e3fc46fb845f55545b237b;p=tinyos-2.x.git diff --git a/tos/chips/msp430/usart/HplMsp430Usart0P.nc b/tos/chips/msp430/usart/HplMsp430Usart0P.nc index cf618bfb..228e2b14 100644 --- a/tos/chips/msp430/usart/HplMsp430Usart0P.nc +++ b/tos/chips/msp430/usart/HplMsp430Usart0P.nc @@ -82,6 +82,8 @@ module HplMsp430Usart0P { uses interface HplMsp430GeneralIO as UCLK; uses interface HplMsp430GeneralIO as URXD; uses interface HplMsp430GeneralIO as UTXD; + uses interface HplMsp430InterruptSig as SIGNAL_UART0RX_VECTOR; + uses interface HplMsp430InterruptSig as SIGNAL_UART0TX_VECTOR; } implementation @@ -93,12 +95,12 @@ implementation MSP430REG_NORACE(U0RCTL); MSP430REG_NORACE(U0TXBUF); - TOSH_SIGNAL(UART0RX_VECTOR) { + inline async event void SIGNAL_UART0RX_VECTOR.fired() { uint8_t temp = U0RXBUF; signal Interrupts.rxDone(temp); } - TOSH_SIGNAL(UART0TX_VECTOR) { + inline async event void SIGNAL_UART0TX_VECTOR.fired() { if ( call HplI2C.isI2C() ) signal I2CInterrupts.fired(); else