#include <im2sb.h>
configuration HplSensirionSht11C {
+ provides interface SplitControl;
provides interface Resource[ uint8_t id ];
provides interface GeneralIO as DATA;
provides interface GeneralIO as SCK;
SCK = GeneralIOC.GeneralIO[GPIO_SHT11_CLK];
InterruptDATA = GeneralIOC.GpioInterrupt[GPIO_SHT11_DATA];
+ components HplSensirionSht11P;
+ SplitControl = HplSensirionSht11P;
+
+ components new TimerMilliC();
+ components HplPXA27xGPIOC;
+ HplSensirionSht11P.Timer -> TimerMilliC;
+ HplSensirionSht11P.DATA -> HplPXA27xGPIOC.HplPXA27xGPIOPin[GPIO_SHT11_DATA];
+ HplSensirionSht11P.SCK -> HplPXA27xGPIOC.HplPXA27xGPIOPin[GPIO_SHT11_CLK];
+
components new SimpleFcfsArbiterC( "Sht11.Resource" ) as Arbiter;
Resource = Arbiter;
}