]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Make USCI interrupt comments more clear and accurate.
authorR. Steve McKown <rsmckown@gmail.com>
Fri, 15 Jan 2010 15:42:58 +0000 (08:42 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Fri, 15 Jan 2010 15:45:34 +0000 (08:45 -0700)
tos/chips/msp430/usci/HplMsp430UsciInt0P.nc
tos/chips/msp430/usci/HplMsp430UsciInt1P.nc

index 65ee5be1494f7c4a4e8269396197e2bd344d8a08..1ba7ef20668adcf4ec1fd65226b53db1a970fc53 100644 (file)
@@ -62,8 +62,9 @@ implementation
   MSP430REG_NORACE(UCB0RXBUF);
 #endif
 
-  /* This USCI_Ax and USCI_Bx interrupt vector signals receive events for UART
-   * and SPI modes, and status events for I2C modes.  Only Bx can do I2C.
+  /* This interrupt vector signals receive events.  USCI_A0 can receive events
+   * for UART and SPI modes, while USCI_B0 can receive events for I2C and SPI
+   * modes.
    */
   TOSH_SIGNAL(USCIAB0RX_VECTOR) {
     if (READ_FLAG(UC0IFG, UCA0RXIFG)) {
@@ -87,8 +88,9 @@ implementation
       signal IntB.i2cStop();
   }
   
-  /* This USCI_Ax and USCI_Bx interrupt vector signals transmit events for UART
-   * and SPI modes, and rx/tx events for I2C modes.  Only Bx can do I2C.
+  /* This interrupt vector signals transmit events.  USCI_A0 can receive events
+   * for UART and SPI modes, while USCI_B0 can receive events for I2C and SPI
+   * modes.
    */
   TOSH_SIGNAL(USCIAB0TX_VECTOR) {
     if (READ_FLAG(UC0IFG, UCB0RXIFG))
@@ -108,6 +110,7 @@ implementation
   default async event void IntA.i2cStart() {}
   default async event void IntA.i2cStop() {}
 
+  /* UART is not available for B devices, so IntB.brk() is never sitnalled */
   default async event void IntB.brk() {}
   default async event void IntB.rx(uint8_t byte) {}
   default async event void IntB.tx() {}
index c083cdb9a637d7dfa4847b11cc78cdfd79713c06..5fa0291ca8255daaa7a2f7fbc11c28afb78b1862 100644 (file)
@@ -55,8 +55,9 @@ implementation
   MSP430REG_NORACE(UCB1RXBUF);
 #endif
 
-  /* This USCI_Ax and USCI_Bx interrupt vector signals receive events for UART
-   * and SPI modes, and status events for I2C modes.  Only Bx can do I2C.
+  /* This interrupt vector signals receive events.  USCI_A1 can receive events
+   * for UART and SPI modes, while USCI_B1 can receive events for I2C and SPI
+   * modes.
    */
   TOSH_SIGNAL(USCIAB1RX_VECTOR) {
     if (READ_FLAG(UC1IFG, UCA1RXIFG)) {
@@ -80,8 +81,9 @@ implementation
       signal IntB.i2cStop();
   }
   
-  /* This USCI_Ax and USCI_Bx interrupt vector signals transmit events for UART
-   * and SPI modes, and rx/tx events for I2C modes.  Only Bx can do I2C.
+  /* This interrupt vector signals transmit events.  USCI_A1 can receive events
+   * for UART and SPI modes, while USCI_B1 can receive events for I2C and SPI
+   * modes.
    */
   TOSH_SIGNAL(USCIAB1TX_VECTOR) {
     if (READ_FLAG(UC1IFG, UCB1RXIFG))
@@ -101,6 +103,7 @@ implementation
   default async event void IntA.i2cStart() {}
   default async event void IntA.i2cStop() {}
 
+  /* UART is not available for B devices, so IntB.brk() is never sitnalled */
   default async event void IntB.brk() {}
   default async event void IntB.rx(uint8_t byte) {}
   default async event void IntB.tx() {}