#include "Msp430Usci.h"
-configuration Msp430UartA1C {
+generic configuration Msp430UartA1C() {
provides {
interface Resource;
interface ResourceRequested;
interface UartByte;
interface ArbiterInfo; /* ??? */
}
- uses interface Msp430UsciConfigure;
+ uses interface AsyncConfigure<const msp430_usci_uart_t*> as Configure;
}
implementation {
enum {
components new Msp430UartP() as UartP;
UartStream = UartP;
UartByte = UartP;
- Msp430UsciConfigure = UartP;
+ Configure = UartP;
- components new Msp430UsciA1C() as UsciC;
+ components Msp430UsciA1C as UsciC;
Resource = UsciC.Resource[CLIENT_ID];
ResourceRequested = UsciC.ResourceRequested[CLIENT_ID];
ArbiterInfo = UsciC.ArbiterInfo;