#include "Msp430Usci.h"
-configuration Msp430UartA0C {
+generic configuration Msp430UartA0C() {
provides {
interface Resource;
interface ResourceRequested;
interface UartByte;
interface ArbiterInfo; /* ??? */
}
- uses interface Msp430UsciUartConfigure; /* would be nice to use Msp430UartConfigure, same as USART analog */
+ uses interface Msp430UsciConfigure;
}
implementation {
enum {
CLIENT_ID = unique(MSP430_USCIA0_RESOURCE)
};
- components Msp430UartP as UartP;
+ components new Msp430UartP() as UartP;
UartStream = UartP;
UartByte = UartP;
- Msp430UsciUartConfigure = UartP;
+ Msp430UsciConfigure = UartP;
- components new Msp430UsciA0C() as UsciC;
+ components Msp430UsciA0C as UsciC;
Resource = UsciC.Resource[CLIENT_ID];
ResourceRequested = UsciC.ResourceRequested[CLIENT_ID];
ArbiterInfo = UsciC.ArbiterInfo;