* An implementation of the UART on USART0 for the MSP430.
* @author Vlado Handziski <handzisk@tkn.tu-berlin.de>
* @author Jonathan Hui <jhui@archedrock.com>
+ * @author Eric B. Decker <cire831@gmail.com>
* @version $Revision$ $Date$
*/
generic configuration Msp430Uart0C() {
provides interface Resource;
+ provides interface ResourceRequested;
provides interface UartStream;
provides interface UartByte;
components Msp430Uart0P as UartP;
Resource = UartP.Resource[ CLIENT_ID ];
- UartStream = UartP.UartStream;
- UartByte = UartP.UartByte;
+ UartStream = UartP.UartStream[ CLIENT_ID ];
+ UartByte = UartP.UartByte[ CLIENT_ID ];
Msp430UartConfigure = UartP.Msp430UartConfigure[ CLIENT_ID ];
components new Msp430Usart0C() as UsartC;
+ ResourceRequested = UsartC;
UartP.ResourceConfigure[ CLIENT_ID ] <- UsartC.ResourceConfigure;
UartP.UsartResource[ CLIENT_ID ] -> UsartC.Resource;
- UartP.UsartInterrupts -> UsartC.HplMsp430UsartInterrupts;
-
+ UartP.UsartInterrupts[ CLIENT_ID ] -> UsartC.HplMsp430UsartInterrupts;
}