]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/adc12/Msp430Adc12ClientAutoDMA_RVGC.nc
- bugfix: ReadStream did not work with a "usPeriod" parameter > 0xFFFF (the fix uses...
[tinyos-2.x.git] / tos / chips / msp430 / adc12 / Msp430Adc12ClientAutoDMA_RVGC.nc
index 7377496e18c158d7e7e7460a1085804e42644b13..9d554ee9f20db8cfda757dc27b80eec0063a45c0 100644 (file)
@@ -47,15 +47,17 @@ generic configuration Msp430Adc12ClientAutoDMA_RVGC()
   provides {\r
     interface Resource;\r
     interface Msp430Adc12SingleChannel;\r
+    interface Msp430Adc12Overflow;\r
   }\r
   uses interface AdcConfigure<const msp430adc12_channel_config_t*>;\r
 } implementation {\r
-  components Msp430Adc12P, Msp430RefVoltArbiterP;\r
+  components Msp430Adc12P, Msp430RefVoltArbiterP, Msp430Adc12DMAWireC;\r
 \r
   enum {\r
     ID = unique(MSP430ADC12_RESOURCE),\r
   };\r
   Resource = Msp430RefVoltArbiterP.ClientResource[ID];\r
+  Msp430Adc12Overflow = Msp430Adc12P.Overflow[ID];\r
   \r
   Msp430RefVoltArbiterP.AdcResource[ID] -> Msp430Adc12P.Resource[ID];\r
 \r
@@ -69,8 +71,4 @@ generic configuration Msp430Adc12ClientAutoDMA_RVGC()
   \r
   Msp430Adc12DMAP.SubSingleChannel[ID] -> Msp430Adc12P.SingleChannel[ID];\r
   Msp430Adc12DMAP.AsyncAdcControl[ID] -> Msp430Adc12P.DMAExtension[ID];\r
-\r
-  Msp430Adc12DMAP.DMAControl -> Msp430DmaC.Control;\r
-  Msp430Adc12DMAP.DMAChannel -> Msp430DmaC.Channel0;\r
-  \r
 }\r