]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Temp fix for ADC_VECTOR undefined for msp430f2x1x
authorR. Steve McKown <rsmckown@gmail.com>
Tue, 2 Oct 2012 02:04:06 +0000 (20:04 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 2 Oct 2012 02:04:06 +0000 (20:04 -0600)
tos/chips/msp430/adc12/HplAdc12P.nc

index b8ba9d0dd42c3e1757467f88d8e3476089e576ab..a6c5e1ed4ccd5e71634e427e925f8b0abe822b7e 100644 (file)
@@ -117,6 +117,14 @@ implementation
     
   async command bool HplAdc12.isBusy(){ return (ADC12CTL1 & ADC12BUSY); }
 
+/* TI headers for the msp430f2x1x parts do not define ADC_VECTOR.  In these
+ * cases, the vector is ADC12_VECTOR.  Below is a temporary work-around that
+ * will effectively be a null operation once the headers are fixed.
+ */
+#ifndef ADC_VECTOR
+#define ADC_VECTOR ADC12_VECTOR
+#endif
+
   TOSH_SIGNAL(ADC_VECTOR) {
     signal HplAdc12.conversionDone(ADC12IV);
   }