]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/adc12/Msp430Adc12ClientAutoDMA_RVGC.nc
Added a generic that generates a nesC warning if someone wired to RefVolt arbiter
[tinyos-2.x.git] / tos / chips / msp430 / adc12 / Msp430Adc12ClientAutoDMA_RVGC.nc
index 6fea1bd392292ffd520bd45b6c0b06686d4b59b6..7377496e18c158d7e7e7460a1085804e42644b13 100644 (file)
@@ -58,7 +58,10 @@ generic configuration Msp430Adc12ClientAutoDMA_RVGC()
   Resource = Msp430RefVoltArbiterP.ClientResource[ID];\r
   \r
   Msp430RefVoltArbiterP.AdcResource[ID] -> Msp430Adc12P.Resource[ID];\r
-  AdcConfigure = Msp430RefVoltArbiterP.Config[ID]; \r
+\r
+  components new Msp430Adc12ConfAlertC();\r
+  AdcConfigure = Msp430Adc12ConfAlertC.ConfUp;\r
+  Msp430RefVoltArbiterP.Config[ID] -> Msp430Adc12ConfAlertC.ConfSub;   \r
 \r
   components Msp430DmaC, Msp430Adc12DMAP;\r
   \r