]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usart/HplMsp430Usart0P.nc
Update to centralize inside one module where all interrupt handlers are signaled...
[tinyos-2.x.git] / tos / chips / msp430 / usart / HplMsp430Usart0P.nc
index cf618bfbbdba8cc75855497c1102b256380c6293..228e2b14e85c823081bba0414e9c8a4f77b5ee8b 100644 (file)
@@ -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