]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/adc12/Msp430Adc12ClientC.nc
Fixed missing include.
[tinyos-2.x.git] / tos / chips / msp430 / adc12 / Msp430Adc12ClientC.nc
index 524344b7b6d42dbd561337489b6705b46f5ebf1a..b2c59751d494a741e48fffe07f288d542eeea4aa 100644 (file)
@@ -1,5 +1,5 @@
 /* \r
- * Copyright (c) 2004, Technische Universitaet Berlin\r
+ * Copyright (c) 2006, Technische Universitaet Berlin\r
  * All rights reserved.\r
  *\r
  * Redistribution and use in source and binary forms, with or without\r
  */\r
 \r
 /** \r
- * This component realizes the HAL1 representation and allows an\r
- * MSP430-specific client to access the MSP430 ADC12 (12-bit analog-to-digital\r
- * converter) via the <code>Msp430Adc12SingleChannel</code> and\r
- * <code>Resource</code> interface.  According to TEP 108 a client must reserve\r
- * the ADC before using it via the <code>Resource</code> interface (otherwise\r
- * the request will fail). In contrast to the\r
- * <code>Msp430Adc12RefVoltAutoClientC</code> the\r
- * <code>Msp430Adc12ClientC</code> does not enable internal reference voltage\r
- * generator.  \r
+ * This component virtualizes access to the HAL of the MSP430 ADC12.  \r
  * \r
- * @author Jan Hauer\r
- * @see  Please refer to TEP 101 for more information about this component and its\r
- *          intended use.\r
+ * @author Jan Hauer \r
+ *\r
+ * @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 Msp430Adc12ClientC()\r
 {\r
-  provides interface Resource;\r
-  provides interface Msp430Adc12SingleChannel;\r
+  provides {\r
+    interface Resource;\r
+    interface Msp430Adc12SingleChannel;\r
+    interface Msp430Adc12MultiChannel;\r
+    interface Msp430Adc12Overflow;\r
+  }\r
 } implementation {\r
-  components Msp430Adc12C;\r
+  components Msp430Adc12P;\r
    \r
   enum {\r
     ID = unique(MSP430ADC12_RESOURCE),\r
   };\r
-  Resource = Msp430Adc12C.Resource[ID];\r
-  Msp430Adc12SingleChannel = Msp430Adc12C.SingleChannel[ID];\r
+  Resource = Msp430Adc12P.Resource[ID];\r
+  Msp430Adc12SingleChannel = Msp430Adc12P.SingleChannel[ID];\r
+  Msp430Adc12MultiChannel = Msp430Adc12P.MultiChannel[ID];\r
+  Msp430Adc12Overflow = Msp430Adc12P.Overflow[ID];\r
 }\r