]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usci/HplMsp430UsciIntP.nc
More work on USCI peripheral support.
[tinyos-2.x.git] / tos / chips / msp430 / usci / HplMsp430UsciIntP.nc
index 257b7a5cc2f986b4868649dd669c8d734e9e88c9..dd17fd3aac9dcbadf0095b2a89b208eaf0f0b0ec 100644 (file)
@@ -40,6 +40,8 @@ generic module HplMsp430UsciIntP(
     uint8_t USCIABxTX_VECTOR,
     uint8_t UCAxRXIFG,
     uint8_t UCAxTXIFG,
+    uint8_t UCBxRXIFG,
+    uint8_t UCBxTXIFG,
     uint8_t Ucaxctl0_addr,
     uint8_t Ucaxctl1_addr,
     uint8_t Ucaxrxbuf_addr,
@@ -49,8 +51,8 @@ generic module HplMsp430UsciIntP(
     uint8_t Ucxifg_addr
     ) @safe() {
   provides {
-    interface HplMsp430UsciIntA as IntA; /* Interrupts for USCI_Ax */
-    interface HplMsp430UsciIntB as IntB; /* Interrupts for USCI_Bx */
+    interface HplMsp430UsciInt as IntA; /* Interrupts for USCI_Ax */
+    interface HplMsp430UsciInt as IntB; /* Interrupts for USCI_Bx */
   }
 }
 
@@ -119,6 +121,11 @@ implementation
   default async event void IntA.brk() {}
   default async event void IntA.rx(char c) {}
   default async event void IntA.tx() {}
+  /* i2c is not available for A devices, so the below are never signalled */
+  default async event void IntA.i2cCal() {}
+  default async event void IntA.i2cNak() {}
+  default async event void IntA.i2cStart() {}
+  default async event void IntA.i2cStop() {}
 
   default async event void IntB.brk() {}
   default async event void IntB.rx(char c) {}