]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usart/HplMsp430Usart1P.nc
Update to centralize inside one module where all interrupt handlers are signaled...
[tinyos-2.x.git] / tos / chips / msp430 / usart / HplMsp430Usart1P.nc
index d5a8a268b54080e3a95b2a97463a84d77c51ee26..d35e9f502762bc173eceaaaf9a1a7300beb5fc4a 100644 (file)
@@ -80,6 +80,8 @@ module HplMsp430Usart1P {
   uses interface HplMsp430GeneralIO as UCLK;
   uses interface HplMsp430GeneralIO as URXD;
   uses interface HplMsp430GeneralIO as UTXD;
+  uses interface HplMsp430InterruptSig as SIGNAL_UART1RX_VECTOR;
+  uses interface HplMsp430InterruptSig as SIGNAL_UART1TX_VECTOR;
 }
 
 implementation
@@ -91,14 +93,12 @@ implementation
   MSP430REG_NORACE(U1RCTL);
   MSP430REG_NORACE(U1TXBUF);
 
-
-
-  TOSH_SIGNAL(UART1RX_VECTOR) {
+  inline async event void SIGNAL_UART1RX_VECTOR.fired() {
     uint8_t temp = U1RXBUF;
     signal Interrupts.rxDone(temp);
   }
 
-  TOSH_SIGNAL(UART1TX_VECTOR) {
+  inline async event void SIGNAL_UART1TX_VECTOR.fired() {
     signal Interrupts.txDone();
   }