- uint8_t counter = 0;
-
- task void signalReadDone()
- {
- atomic uint8_t tmp = counter;
- atomic counter++;
-
- signal Read.readDone(SUCCESS, tmp);
- }
-
- command error_t Read.read()
- {
- return SUCCESS;
- }
- default event void Read.readDone( error_t result, uint16_t val ) {}
+ components new AdcReadClientC(), DemoSensorP,
+ HplM16c62pGeneralIOC as IOs,
+ RealMainP;
+
+ DemoSensorP.Pin -> IOs.PortP100;
+ DemoSensorP.AVcc -> IOs.PortP76;
+
+ Read = AdcReadClientC;
+
+ AdcReadClientC.M16c62pAdcConfig -> DemoSensorP;
+
+ RealMainP.PlatformInit -> DemoSensorP;