]> 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 ee713db41458eadc332fce3163d5f159871c7bb1..7377496e18c158d7e7e7460a1085804e42644b13 100644 (file)
@@ -41,7 +41,7 @@
  * @see  Please refer to the README.txt and TEP 101 for more information about\r
  * this component and its intended use.\r
  */\r
-\r
+#include <Msp430Adc12.h>\r
 generic configuration Msp430Adc12ClientAutoDMA_RVGC()\r
 {\r
   provides {\r
@@ -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