#include "Msp430Usci.h"
-configuration Msp430SpiB1C {
+generic configuration Msp430SpiB1C() {
provides {
interface Resource;
interface ResourceRequested;
interface SpiPacket;
interface ArbiterInfo; /* ??? */
}
- uses interface Msp430UsciSpiConfigure; /* would be nice to use Msp430SpiConfigure, same as USART analog */
+ uses interface Msp430UsciConfigure;
}
implementation {
enum {
CLIENT_ID = unique(MSP430_USCIB1_RESOURCE)
};
- components Msp430SpiP as SpiP;
+ components new Msp430SpiP() as SpiP;
SpiByte = SpiP;
SpiPacket = SpiP;
- Msp430UsciSpiConfigure = SpiP;
+ Msp430UsciConfigure = SpiP;
- components new Msp430UsciA0C() as UsciC;
+ components Msp430UsciA0C as UsciC;
Resource = UsciC.Resource[CLIENT_ID];
ResourceRequested = UsciC.ResourceRequested[CLIENT_ID];
ArbiterInfo = UsciC.ArbiterInfo;