]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usart/Msp430Uart0P.nc
Update to include paramaterization of the UartStream interface as well as push Resour...
[tinyos-2.x.git] / tos / chips / msp430 / usart / Msp430Uart0P.nc
index b61f800426253763e9dd09ede913193f241540a6..bce4f7fbfe531d254010de9cc9728694b39e015d 100644 (file)
 /**
  * @author Jonathan Hui <jhui@archedrock.com>
  * @author Vlado Handziski <handzisk@tkn.tu-berlin.de>
+ * @author Eric B. Decker <cire831@gmail.com>
  * @version $Revision$ $Date$
  */
 
 configuration Msp430Uart0P {
 
   provides interface Resource[ uint8_t id ];
-  provides interface ResourceConfigure[uint8_t id ];
-  provides interface UartStream;
-  provides interface UartByte;
+  provides interface ResourceConfigure[ uint8_t id ];
+  provides interface UartStream[ uint8_t id ];
+  provides interface UartByte[ uint8_t id ];
 
   uses interface Resource as UsartResource[ uint8_t id ];
   uses interface Msp430UartConfigure[ uint8_t id ];
-  uses interface HplMsp430UsartInterrupts as UsartInterrupts;
-
+  uses interface HplMsp430UsartInterrupts as UsartInterrupts[ uint8_t id ];
 }
 
 implementation {
-
   components new Msp430UartP() as UartP;
   Resource = UartP.Resource;
   ResourceConfigure = UartP.ResourceConfigure;